scieee AI-readable full text Open interactive document viewer

Improved constructions of nested code pairs

Galindo, Carlos,Geil, Olav,Hernando, Fernando,Ruano Benito, Diego

Abstract

Producción Científica

Full text

1 Improved constructions of nested code pairs Carlos Galindo, Olav Geil, Fernando Hernando and Diego Ruano Abstract Two new constructions of linear code pairs C2⊂C1are given for which the codimension and the relative minimum distances M1(C1, C2),M1(C⊥ 2, C⊥ 1)are good. By this we mean that for any two out of the three parameters the third parameter of the constructed code pair is large. Such pairs of nested codes are indispensable for the determination of good linear ramp secret sharing schemes [40]. They can also be used to ensure reliable communication over asymmetric quantum channels [54]. The new constructions result from carefully applying the Feng-Rao bounds [21], [31] to a family of codes defined from multivariate polynomials and Cartesian product point sets. Index Terms asymmetric quantum code, CSS construction, Feng-Rao bound, nested codes, ramp secret sharing, relative generalized Hamming weight, relative minimum distance, wiretap channel of type II. I. INTRODUCTION In this paper we consider pairs of linear codes C2⊂C1⊆Fn qwhere Fqis the finite field with q elements. We are interested in the codimension `= dim C1−dim C2and the relative minimum distances M1(C1, C2) = min{wH(~c)|~c ∈C1\C2}, M1(C⊥ 2, C⊥ 1) = min{wH(~c)|~c ∈C⊥ 2\C⊥ 1}. Here wH(~c)means the Hamming weight of ~c. For any two out of three parameters we aim to construct code pairs such that the two parameters are equal to some prescribed values, whereas the last parameter is as large as possible. Our motivation for studying the above problem is applications in ramp secret sharing, communication over wiretap channels of type II, and asymmetric quantum coding. We first explain the application in secret sharing. The application to wiretap channels of type II is analogue. A secret sharing scheme is a cryptographic method to encode a secret into a set of shares, later to be distributed among participants, so that only specified subsets of the participants can reconstruct the secret. The first secret sharing scheme, proposed by Shamir [52], was a perfect scheme, meaning that a set of participants unable to reconstruct the secret has no information on the secret. Later non-perfect secret sharing schemes were proposed [7], [56] in which there are sets of participants that have some information about the secret, but cannot fully reconstruct it. In this paper we use the term ramp secret sharing schemes for the general class of perfect or non-perfect schemes. Secret sharing has been applied, for example, to store confidential information at multiple locations that are placed geographically apart. When we use secret sharing schemes in such a scenario, the likelihoods of both data loss and data theft are decreased. As far as we know, in many applications both perfect and non-perfect ramp secret sharing schemes are useful. In the perfect scheme the size of a share must be greater than or equal to that of the Published in IEEE Transactions on Information Theory. Volume 64, Issue 4, pages 2444-2459 (2018). . The authors gratefully acknowledge the support from The Danish Council for Independent Research (Grant No. DFF–4002-00367), the support from the Spanish MINECO/FEDER (Grants No. MTM2015-65764-C3-2-P and MTM2015-69138-REDT), and the support from University Jaume I (Grant No. P1-1B2015-02). C. Galindo and F. Hernando are with Instituto Universitario de Matem´ aticas y Aplicaciones de Castell´ on, and Departamento de Matem´ aticas, Jaume I University, Spain. e-mail: [email protected], [email protected]. O. Geil and D. Ruano are with the Department of Mathematical Sciences, Aalborg University, Denmark. e-mail: [email protected], [email protected] 2 secret [11]. In contrast ramp secret sharing schemes allow shares to be smaller than the secret which for instance is useful for storing bulk data [14]. A linear ramp secret sharing scheme can be described as a coset construction C1/C2where C2⊂C1 are linear codes [12]. More precisely, let dim C2=k2,dim C1=k1and `=k1−k2. Given a basis {~ b1,...,~ bk2}for C2as a vector space over Fqand a corresponding basis {~ b1,...,~ bk2,~ bk2+1,...,~ bk1=k2+`} for C1the encoding of a secret (s1, . . . , s`)∈F` qis done by choosing a1, . . . , ak2∈Fqrandomly from a uniform distribution and then constructing the codeword ~c =a1~ b1+· · · +ak2~ bk2+s1~ bk2+1 +· · · +s`~ bk1. The shares are the entries of ~c. Definition 1. Given a ramp secret sharing scheme C1/C2with `= dim C1−dim C2we say that it has (t1, . . . , t`)-privacy and (r1, . . . , r`)-reconstruction if the positive integers t1, . . . , t`are chosen as large as possible and the positive integers r1, . . . , r`are chosen as small as possible such that •for 1≤v≤`, an adversary cannot obtain vlog2(q)bits of information about ~s with any tvshares, •for 1≤v≤`, it is possible to recover vlog2(q)bits of information about ~s with any collection of rvshares. We shall refer to the numbers r1, . . . , r`as reconstruction numbers and similarly call the numbers t1, . . . , t`privacy numbers. These parameters are motivated by the fact that the amount of information which an adversary can obtain is always an integer times log2(q)bits and similar for the reconstruction. Of particular interest are the first privacy number t=t1and the last reconstruction number r=r`, as t is the maximal number such that no set of this size leaks any information about the secret, and requals the smallest number such that any set of this size can recover the entire secret. It was demonstrated in [5], [55], [40], [30] that the above numbers can be uniquely determined from the relative generalized Hamming weights, that we shall define now. For v= 1, . . . , ` Mv(C1, C2) = min{#Supp U|Uis a subspace of C1 of dimension v, U ∩C2={~ 0}} (and similar for the dual codes). Here, Supp Uis the set of entries where some codeword in Uis nonzero and #is the cardinality. In our paper we shall adopt the tradition of sometimes referring to relative generalized Hamming weights M1(C1, C2)and M1(C⊥ 2, C⊥ 1)simply as relative minimum distances. Note that the relative minimum distance M1(C1, C2)can be lower bounded by the minimum distance of C1. Similarly, the relative minimum distance M1(C⊥ 2, C⊥ 1)is greater than or equal to the minimum distance of C⊥ 2. The following theorem corresponds to [30, Theorem 3]. Theorem 2. Let C2⊂C1⊆Fn qwith `= dim C1−dim C2and consider the corresponding ramp secret sharing scheme C1/C2. Then the reconstruction numbers and privacy numbers satisfy rv=n−M`−v+1(C1, C2)+1, tv=Mv(C⊥ 2, C⊥ 1)−1, for v= 1, . . . , `. Hence, if for instance we want to construct a ramp secret sharing scheme over Fqwith nparticipants, secrets of length `, first privacy number equal to some t, and last reconstruction number ras small as possible, what we need is exactly a pair of nested codes C2⊂C1⊆Fn qof codimension `with M1(C⊥ 2, C⊥ 1) = t+ 1, and M1(C1, C2) = n−r+ 1 as large as possible. Finally we explain in brief the use of nested codes in connection with asymmetric quantum errorcorrecting codes, introduced in [54]. The study of good quantum codes is by now a well-established research area. Some classical and recent references are [10], [8], [9], [4], [6], [3], [47], [39]. Recently, such theory has been extended to asymmetric quantum error-correcting codes which are useful in a model where the probabilities of qubit-flip and phase-shift errors are different [38], [51], [19], [42], [41], [16], [17], 3 [43], [44]. This generalization is motivated by the argument that dephasing will happen more frequently than relaxation [38]. A linear q-ary asymmetric quantum error-correcting code Cis a qkdimensional subspace of the Hilbert space Cqnwhose error basis is defined by unitary operators usually denoted by Xand Z. It is customary to write the parameters of Cas [[n, k, dz/dx]]qwhich means that Ccorrects all phase-shift errors up to bdz−1 2c, and all qudit-flip errors up to bdx−1 2c. In the present paper we concentrate on the Calderbank-Shor-Steane (CSS) construction of asymmetric quantum codes from a pair of nested linear codes C2⊂C1⊆Fn q. We leave it for the reader to inspect [9], [39] for the actual construction. Here, we only give the following important result on the parameters of the resulting asymmetric quantum code (see [51, Lemma 3.1]). Theorem 3. Consider linear codes C2⊂C1⊆Fn q. Then the asymmetric quantum code defined using the CSS construction has parameters [[n, ` = dim C1−dim C2, dz/dx]]q where dz=M1(C1, C2)and dx=M1(C⊥ 2, C⊥ 1). Recall, that a stabilizer (symmetric) quantum code is the common eigenspace of a commutative subgroup of the error group associated to the error basis (see [9], [39] for details). The quantum codes in Theorem 3 can be considered as stabilizer asymmetric quantum codes [51, Lemma 3.1]. Studying asymmetric quantum codes rather than only symmetric codes is an important problem. For instance, already in [38] it was identified that large ratios dz/dxare relevant – phase-flip errors occurring tens, hundreds, or even thousands times more likely than bit-flips. From Theorem 3 it is clear that dz≥d(C1)and dx≥d(C⊥ 2)where the expressions on the right sides are the minimum distance of the classical code. There is a clear physical significance of cases where strict inequality holds in at least one of these expressions. Such (asymmetric) quantum codes are called impure (or degenerate) [1], [35] and it is known that the impureness can be employed to obtain improved decoding. As a measure for goodness of asymmetric quantum codes we shall use the Gilbert-Varshamov bound from [45, Theorem 4] which we now recall: Theorem 4. If 1−q−2` 1−q−2n·1 qn−` dx−1 X i=1 n i(q−1)i· dz−1 X i=1 n i(q−1)i<1 then there exists an [[n, `, dz/dx]]qasymmetric quantum code. The literature only reports few families of long asymmetric quantum codes, an exception being La Guardia’s construction II in [44, Theorem 7.1] which we shall compare our codes with. In another direction Ezerman et al’s works in [17], [18] explain how to derive good asymmetric quantum codes with dxbeing very small and `being moderate. As our constructions do not seem to generally compare well with these codes in the case of dx∈ {2,3}we omit such cases in our tables. Having discussed both ramp secret sharing schemes and asymmetric quantum codes we include a remark relating them to each other. Remark 5. There exists an asymmetric quantum code based on the CSS construction with parameters [[n, `, dz/dx]]qif and only there exists a linear ramp secret sharing scheme over Fqwith secrets in F` q, with r=r`=n−dz+ 1 and t=t1=dx−1. As the tradition for reporting numerical data on parameters of (asymmetric) quantum codes seems stronger than the tradition for reporting corresponding parameters of ramp secret sharing schemes, throughout this paper we shall often report our findings in the first setting. In such cases we leave it for the reader to apply Remark 5 to make the translation to secret sharing. On the other hand, higher relative weights give information on ramp secret sharing schemes, whereas no implication for asymmetric quantum codes 4 seems to be known. Hence, when treating them we shall do it in the setting of secret sharing. In this paper we present two new families of long nested codes C2⊂C1with M1(C1, C2)+M1(C⊥ 2, C⊥ 1) high. Such codes give rise to ramp secret sharing schemes with r−tclose to `, and give rise to asymmetric quantum codes with dz+dxclose to n−`+ 2. The code pairs are defined by evaluating multivariate polynomials at the points of Cartesian products of subsets of finite fields, and the above mentioned two families are found by carefully applying Feng-Rao theory [30]. Our first family is made by combining, for the first time in the literature, the Feng-Rao improved code constructions for dual and primary codes. This leads to good pairs of codes, however, it only works for relatively high codimension `. The asymmetric quantum codes related to this first family of nested codes compare very favorably with known asymmetric quantum codes of similar length as well as the Gilbert-Varshamov bound. Moreover, the construction is very flexible and we can choose dz/dxvery large, which as already mentioned can be desirable. Our second family is a completely new construction which produces very good parameters in the case of relatively small codimension `. Again the corresponding asymmetric quantum codes compare favorably with the known codes of similar length and similarly with the Gilbert-Varshamov bound. Even more, we demonstrate a strong advantage of using our estimates on the relative minimum distances M1(C1, C2)and M1(C⊥ 2, C⊥ 1); rather than just using information on the minimum distances d(C1)and d(C⊥ 2). Actually, using only information on the minimum distances d(C1)and d(C⊥ 2)– which is often done in the literature – it seems in many cases impossible to establish the code parameters for asymmetric quantum codes, which we are able to obtain. These reflections are closely related to the fact that the corresponding asymmetric quantum codes of relatively small dimension are almost always impure, which as already mentioned is desirable. Again the construction is quite flexible in the sense that we can choose the ratio dz/dxvery high if requested. For both families of codes we provide generator matrices, and we also describe a method for estimating higher relative weights Mv(C1, C2),Mv(C⊥ 2, C⊥ 1),v= 2, . . . , `, which sometimes leads to closed formula expressions. Recall, that such parameters express the information leakage and message recovery in connection with ramp secret sharing. As a result it is shown that for our second family of nested codes, the security of the related secret sharing schemes is much better than expected from studying only t=t1. Furthermore, for certain choices of Cartesian product point sets also parity check matrices can easily be obtained, namely for the particular cases where the considered codes satisfy the conditions for being so-called J-affine variety codes [26]. Finally, all considered codes in this paper can be decoded up to half their designed minimum distance by applying known decoding algorithms. The dual codes can furthermore be decoded up to half the designed relative minimum distance. These observations lead to decoding algorithms for the corresponding asymmetric quantum codes. The paper is organized as follows. In Section II we start by recalling the Feng-Rao bounds for primary and dual linear codes and we apply them to the general class of codes derived by evaluating multivariate polynomials at Cartesian product point sets. In this section we provide all needed background on Feng-Rao theory – for basic results on multivariate polynomials and related concepts we refer the reader to [13]. The section concludes with a discussion on how to decode the related asymmetric quantum codes. Then, in Section III, we explain how to employ the Feng-Rao improved code constructions for primary and dual codes simultaneously to obtain good families of nested codes with relatively high codimension. We then study the corresponding ramp secret sharing schemes and asymmetric quantum codes. In Section IV we present the new good construction of nested codes with relatively small codimension and we study the corresponding ramp secret sharing schemes and asymmetric quantum codes. Section V gives concluding remarks on the connection to J-affine variety codes. The paper contains a number of examples, the end of which we indicate by ♦s. II. CODES DEFINED FROM CARTESIAN PRODUCT POINT SETS In this paper we consider families of code pairs C2⊂C1defined by evaluating multivariate polynomials at the points of Cartesian products of subsets of finite fields. For the applications described in the previous 5 section, we are interested in the parameters Mv(C1, C2)(the primary case) as well as Mv(C⊥ 2, C⊥ 1)(the dual case) – with a special focus on the relative minimum distances M1(C1, C2)and M1(C⊥ 2, C⊥ 1). To handle the primary case only it would be natural to use the language of Gr¨ obner basis theory and to apply the so-called footprint bound [50], [36], [28]. However, in this language it is more difficult to treat the dual case and we therefore give a coherent description of both cases using the Feng-Rao bounds for general linear codes instead. The Feng-Rao bounds come in two versions, namely one for primary codes [2], [32], [31], [30] and another for dual codes [20], [21], [22], [48], [37], [46], [30]. Our exposition follows the presentation in [30, Section IV] and is illustrated with a continued example. This continued example, at the end of the present section, leads to the introduction of a general class of code pairs for which we have a simple description of generator matrices, where we know the codimension, and where we can easily estimate the relative minimum distances and also the higher relative weights (Theorem 16). It is from this class of code pairs we, in the following sections, show how to choose optimal pairs when the codimension is relatively large (Section III), and when it is relatively small (Section IV). Consider a fixed basis B={~ b1,...,~ bn}for Fn qas a vector space over Fqand let I={1, . . . , n}. Definition 6. Define ¯ρ:Fn q→ I ∪ {0}to be the function given as follows. For non-zero ~c we have ¯ρ(~c) = iwhere iis the unique integer such that ~c ∈Span{~ b1,...,~ bi}\Span{~ b1,...,~ bi−1}. Here we use the convention that Span ∅={~ 0}. Finally, let ¯ρ(~ 0) = 0. Throughout the paper by ≺deg we shall always mean the degree lexicographic ordering given by the rule that for two different monomials we have Xi1 1· · · Xim m≺deg Xj1 1· · · Xjm mif one of the following conditions holds: 1) i1+· · · +im< j1+· · · +jm 2) i1+· · · +im=j1+· · · +jm, but the rightmost non-zero entry of (j1−i1, . . . , jm−im)is positive. In case of two variables Xand Y, we shall always think of Xas X1and Yas X2. In the paper we shall also need other monomial orderings ≺, however, the degree lexicographic ordering will play a particular important role. Example 1. Consider the ideal I=hX6−1, Y 6−1i ⊂ F7[X, Y ]and the residue class ring R= F7[X, Y ]/I. We have that the corresponding variety consists of all pairs of non-zero elements of F7, hence we may write VFq(I) = {P1, . . . , P36}. Let ev :R→F36 7be the vector space homomorphism given by ev(F+I) = (F(P1), . . . , F(P36)). Therefore, the set B={ev(XiYj+I)|0≤i, j < 6}constitutes a basis for F36 7as a vector space over F7. To see this, we first observe that evF(X, Y ) + I=evF(X, Y )−A(X, Y )(X6−1) −B(X, Y )(Y6−1) + I for any A(X, Y ), B(X, Y )∈F7[X, Y ], which implies that we may, without loss of generality, assume that degXF, degYF < 6. Using Lagrange interpolation it holds that ev is surjective, and as #Bequals the dimension of the image F36 7Bis indeed a basis – and consequently ev is an isomorphism. We next enumerate Baccording to the degree lexicographic ordering ≺deg. The enumeration is illustrated in Fig. 1. As an example we obtain ¯ρ(ev(2X5Y4+ 5X3Y2+4+I)) = 34.♦ Recall, that the component wise product of two vectors in Fn qis given by (α1, . . . , αn)∗(β1, . . . , βn) = (α1β1, . . . , αnβn). Using this product we can now introduce the concept of one-way well-behaving pairs. 6 Y5XY 5X2Y5X3Y5X4Y5X5Y5 Y4XY 4X2Y4X3Y4X4Y4X5Y4 Y3XY 3X2Y3X3Y3X4Y3X5Y3 Y2XY 2X2Y2X3Y2X4Y2X5Y2 Y XY X2Y X3Y X4Y X5Y 1X X2X3X4X5 ~ b21 ~ b26 ~ b30 ~ b33 ~ b35 ~ b36 ~ b15 ~ b20 ~ b25 ~ b29 ~ b32 ~ b34 ~ b10 ~ b14 ~ b19 ~ b24 ~ b28 ~ b31 ~ b6~ b9~ b13 ~ b18 ~ b23 ~ b27 ~ b3~ b5~ b8~ b12 ~ b17 ~ b22 ~ b1~ b2~ b4~ b7~ b11 ~ b16 Fig. 1. The enumeration of Bin Example 1 Definition 7. An ordered pair (i, j)∈ I × I is said to be one-way well-behaving (OWB) if ¯ρ(~ bi0∗~ bj)< ¯ρ(~ bi∗~ bj)holds true for all i0∈ I with i0< i. Example 2. This is a continuation of Example 1. Consider ~ bi=ev(XαYβ+I)and ~ bj=ev(XγYδ+I) (where, by assumption, 0≤α, β, γ, δ < 6). The pair (i, j)is OWB if and only if α+γ < 6and β+δ < 6 hold simultaneously. To see the “if” part note that if XηYλ≺deg XαYβthen the leading monomial M of the remainder of Xη+γYλ+δafter division with {X6−1, Y 6−1}satisfies Mdeg Xη+γYλ+δ≺deg Xα+γYβ+δwhich follows from the properties of a monomial ordering and those of the division algorithm. The “only if” part has to do with the special form of the ideal Icoming from a variety which is a Cartesian product. If for instance, α+γ≥6then letting η= 6 −γ−1we obtain XηYβ≺deg XαYβ, but the leading monomial Nof Xη+γYβ+δafter division with {X6−1, Y 6−1}has the same Y-part as the leading monomial of Xα+γYβ+δafter division with {X6−1, Y 6−1}, but higher X-part. ♦ To formulate the Feng-Rao bound for primary codes we shall need the following set. Definition 8. For i∈ I define Λi={l∈ I | ∃ j∈ I s.t. (i, j)is OWB and ¯ρ(~ bi∗~ bj) = l}. Given a v-dimensional vector space U⊆Fn qthen ¯ρ(U\{~ 0})is of size v. The following proposition, known as the Feng-Rao bound for primary codes [30, Proposition 8], therefore is operational. Proposition 9. Let U⊆Fn qbe a vector space of dimension at least 1. The support size of Usatisfies #Supp (U)≥#∪i∈¯ρ(U\{~ 0})Λi.(1) Example 3. This is a continuation of the previous examples. We have ~ b28 =ev(X4Y3+I)and therefore #Λ28 = #{X4Y3, X5Y3, X4Y4, X5Y4, X4Y5, X5Y5}= 6. In general, for ~ bi=ev(XαYβ+I)(with 0≤α, β < 6) we have #Λi= (6 −α)(6 −β). The situation is depicted in Fig. 2. 654321 12 10 8 6 4 2 18 15 12 9 6 3 24 20 16 12 8 4 30 25 20 15 10 5 36 30 24 18 12 6 Fig. 2. #Λifrom Example 1 (enumeration with respect to Fig. 1) 7 Let F(X, Y )be a polynomial whose leading monomial with respect to ≺deg is XαYβfor some 0≤ α, β < 6. Consider ~c =ev(F+I), then, by Proposition 9, wH(~c)≥(6 −α)(6 −β). In general, Fig. 2 gives upper bounds on the Hamming weights of all possible words in F36 7.♦ We now turn to relative generalized Hamming weights. Note that although C2⊂C1implies ¯ρ(C2)⊂ ¯ρ(C1), it does not always hold that ~c ∈C1\C2implies ¯ρ(~c)∈¯ρ(C1)\¯ρ(C2). Nevertheless, the Feng-Rao bound for primary codes [30, Theorem 9] still gives us useful information. Theorem 10. Consider two linear codes C2⊂C1⊆Fn qwith dim(C1) = k1and dim(C2) = k2. Let ube the smallest element in ¯ρ(C1)that is not in ¯ρ(C2). For v= 1, . . . , ` =k1−k2we have Mv(C1, C2)≥min #∪v s=1 Λis|u≤i1<· · · < ivand i1, . . . , iv∈¯ρ(C1\{~ 0}). Example 4. This is a continuation of the previous examples. If C2=Span{~ b1,~ b2,~ b3,~ b5}and C1= Span{~ b1,~ b2,~ b3,~ b4,~ b5}then M1(C1, C2)≥min{#Λ4,#Λ5}= min{24,25}= 24. However, if C2=Span{~ b1,~ b2,~ b3,~ b4}, while C1is unchanged, then M1(C1, C2)≥#Λ5= 25.♦ To treat dual codes we shall need the following definitions, where the first can be considered as the counterpart of Definition 8, and the last as the counterpart of Definition 6. Definition 11. For l∈ I define Vl={i∈ I | ¯ρ(~ bi∗~ bj) = lfor some ~ bj∈ B with (i, j)OWB}. Definition 12. For ~c ∈Fn q\{~ 0}define η(~c)to be the smallest number l∈ I such that ~c ·~ bl6= 0. Here ~a ·~ b means the Euclidean inner product between ~a and ~ b. Given a v-dimensional space U,η(U\{~ 0})is of size v. The following proposition, known as the Feng- Rao bound for dual codes [30, Proposition 13], therefore is operational. Proposition 13. Let U⊆Fn qbe a space of dimension at least 1. We have #Supp(U)≥#∪l∈η(U\{~ 0})Vl. Example 5. This is a continuation of the previous examples. For ~ bl=ev(XαYβ+I)(with 0≤α, β < 6) we have #Vl= (α+ 1)(β+ 1). Given ~c with η(~c) = l, from Proposition 13 we obtain wH(~c)≥ (α+ 1)(β+ 1). By Proposition 13, Fig. 3 gives upper bounds on the Hamming weights of all possible words in F36 7.♦ 6 12 18 24 30 36 5 10 15 20 25 30 4 8 12 16 20 24 3 6 9 12 15 18 2 4 6 8 10 12 123456 Fig. 3. #Vlfrom Example 4 (enumeration with respect to Fig. 1) We next treat relative generalized Hamming weights. Note that for C2⊂C1it does not in general hold that ~c ∈C⊥ 2\C⊥ 1implies η(~c)∈¯ρ(C1\{~ 0}). Nevertheless, the Feng-Rao bound for dual codes [30, Theorem 14] still gives us useful information. 8 Theorem 14. Consider linear codes C2⊂C1⊆Fn q. Let u⊥be the largest element in ¯ρ(C1\{~ 0}). For v= 1,...,dim(C1)−dim(C2) = dim(C⊥ 2)−dim(C⊥ 1)we have Mv(C⊥ 2, C⊥ 1)≥min{#∪v s=1 Vis|1≤i1<· · · < iv≤u⊥, i1, . . . , iv/∈¯ρ(C2)}. Example 6. This is a continuation of the previous examples. If C2=Span{~ b1,~ b2,~ b3,~ b4}and C1= Span{~ b1,~ b2,~ b3,~ b4,~ b6}, then M1(C⊥ 2, C⊥ 1)≥min{#V5,#V6}= min{4,3}= 3. However, if C1=Span{~ b1,~ b2,~ b3,~ b4,~ b5}while C2is unchanged then M1(C⊥ 2, C⊥ 1)≥#V5= 4.♦ The above theorems and examples lead us to consider the following family of codes, which have a good behavior with respect to the applications described in the introduction. Consider a Cartesian product S=S1× · · · × Sm⊆Fm q. For i= 1, . . . , m define the one-variable polynomial Fi(Xi) = Y α∈Si (Xi−α),(2) and consider the vanishing ideal of S,I=hF1(X1), . . . , Fm(Xm)i ⊂ Fq[X1, . . . , Xm]. We write R= Fq[X1, . . . , Xm]/I and enumerate Sas S={α1,...αn}, where n= #S=Qm i=1 si. Here, we use the notation si= #Si. As in the above examples we then obtain a vector space homomorphism ev :R→Fn q defined by ev(F+I)=(F(α1), . . . , F(αn)). Now let ∆(s1, . . . , sm) = {Xi1 1· · · Xim m|0≤it< st, t = 1, . . . , m} ={N1, . . . , Nn}, where the enumeration of the Ni’s is with respect to an arbitrary (but fixed) monomial ordering ≺. For general L⊆∆(s1, . . . , sm)define C(L) = Span{ev(Xi1 1· · · Xim m+I)|Xi1 1· · · Xim m∈L}, which is clearly a code of length n. For the purpose of applying the Feng-Rao bounds to the codes C(L) and C(L)⊥we introduce functions Dand D⊥. Definition 15. Given Xi1 1· · · Xim m∈∆(s1, . . . , sm), define D(Xi1 1· · · Xim m) = m Y t=1 (st−it)and D⊥(Xi1 1· · · Xim m) = m Y t=1 (it+ 1). More generally, for K⊆∆(s1, . . . , sm)let D(K) = #{N∈∆(s1, . . . , sm)| Nis divisible by some M∈K}, D⊥(K) = #{N∈∆(s1, . . . , sm)| Ndivides some M∈K}. Observe that D(Xi1 1, . . . , Xim m) = D({Xi1 1, . . . , Xim m})and D⊥(Xi1 1, . . . , Xim m) = D⊥({Xi1 1, . . . , Xim m}). We are now ready to describe the relative parameters of the evaluation codes introduced above. Theorem 16. Consider S=S1× · · · × Sm⊆Fm qand L2⊂L1⊆∆(s1, . . . , sm) = {N1, . . . , Nn}where the enumeration of the Ni’s is with respect to an arbitrary (but fixed) monomial ordering ≺. Then the 9 codes C(L1)and C(L2)are of length nand their codimension equals #L1−#L2. Furthermore, for v= 1,...,#L1−#L2we have Mv(C(L1), C(L2)) ≥min{D(K)| K⊆ {Nu, . . . , Nn} ∩ L1,#K=v},(3) Mv(C(L2)⊥, C(L1)⊥)≥min{D⊥(K)| K⊆ {N1,...Nu⊥}\L2,#K=v},(4) where u= min{i|Ni∈L1\L2}and u⊥= max{i|Ni∈L1}. Proof. We start by proving that {ev(N1+I),...,ev(Nn+I)}is a basis for Fn qas a vector space over Fq. This fact implies that the dimension of C(Li)equals #Li, i = 1,2, and the formula for the codimension follows. Observe that ev(F(X1, . . . , Xm) + I)is equal to evF(X1, . . . , Xm)−A1(X1, . . . , Xm)F1(X1)− · · · −Am(X1, . . . , Xm)Fm(X1, . . . , Xm) + I for any polynomials A1, . . . , Amin the variables X1,...Xmwith coefficients in Fq. Hence, we may assume that degX1F < deg F1=s1, . . .,degXmF < deg Fm=sm. Using Lagrange-interpolation we next see that ev is surjective and, as ∆(s1, . . . , sm)is of the same size as the image Fn q, the considered set is indeed a basis for Fn q. As in the above examples we enumerate the basis elements {~ b1=ev(N1+I),...,~ bn= ev(Nn+I)}(meaning that we order it according to the monomial ordering ≺). Notice that, regardless of the choice of monomial ordering ≺,D(Ni)≤#Λi, and that in larger generality1 D({Ni1, . . . , Nim})≤#∪m t=1 Λit. Therefore (3) follows from Theorem 10. Similarly, regardless of the choice of monomial ordering ≺,D⊥(Ni)≤#Viand in larger generality2D⊥({Ni1, . . . , Nim})≤#∪m t=1 Vit. Hence, (4) follows from Theorem 14. In the next two sections we show a way to choose L2⊂L1such that the parameters `= dim C(L1)− dim C(L2)=#L1−#L2,M1(C(L1), C(L2)), and M1(C(L2)⊥, C(L1)⊥)are good. We study two separate cases. The first case, which we treat in Section III, deals with relatively large codimension. The second case, which we treat in Section IV, concerns relatively small codimensions. Before studying these two families of codes we briefly discuss the decoding of the related asymmetric quantum codes. Observe that the decoding algorithm for order domain codes described in [37, Section 6.3] can be applied in the more general setting of linear codes with Feng-Rao designed minimum distance. Hence, it can be applied to all codes of the present paper. This holds both for dual codes [46] and primary codes [31]. The decoding algorithm which corrects errors up to half the designed minimum distance uses O(n3)operations, where nis the length of the code. In [15, Appendix A] Duursma and Park provided a similar algorithm correcting errors up to half the designed relative minimum distance. This was done at the general level of linear codes described by means of their parity check matrix. The application in connection with decoding of asymmetric quantum codes is as follows. To decode both phase-shift and qudit-flip errors up to half the designed values of dzand dxone will need two decoding algorithms, namely one which decodes up to b(M1(C1, C2)−1)/2cerrors in connection with C2⊂C1, and another which corrects up to b(M1(C⊥ 2, C⊥ 1)−1)/2cerrors in connection with C⊥ 1⊂C⊥ 2[10], [9]. Duursma and Park’s algorithm applies to the last task, but not to the first in its present form. It is an open research problem to modify the decoding algorithm from [15] for general nested dual codes, so that it also works for nested primary codes. This probably could be done using the material in [31]. In the absence of such a translation one may instead apply the algorithm from [31] to correct only up to b(d(C1)−1)/1cerrors in connection with the primary nested codes. 1Actually equalities hold – which can be seen by applying similar arguments as in Example 2 – but we shall not need this fact. 2Actually again equalities hold, but we shall not need this fact. 16 v1 2 3 Mv(C(L1), C(L2)) ≥15 19 22 Mv(C(L2)⊥, C(L1)⊥)≥8 11 13 TABLE VII ESTIMATED RELATIVE GENERALIZED HAMMING WEIGHTS OF THE FIRST CODE PAIR IN EXAMPLE 12 `= #L1−#L21 2 3 1 4 2 M1(C(L1), C(L2)) ≥25 20 15 16 10 12 d(C(L1)) ≥24 18 12 12 6 6 M1(C(L2)⊥, C(L1))⊥≥4 6 8 9 10 12 d(C(L2)⊥)≥3 4 5 5 6 6 TABLE VIII THE FIRST WEIGHTS IN EXAMPLE 12. The situation is described in Fig. 5 N21 N26 N30 N33 N35 N36 N15 N20 N25 N29 N32 N34 N10 N14 N19 N24 N28 N31 N6N9N13 N18 N23 N27 N3N5N8N12 N17 N22 N1N2N4N7N11 N15 Fig. 5. The situation in Example 12: The circled monomials correspond to L2. The circled and the boxed monomials correspond to L1. The codimension is 3and the values of uand u⊥in Theorem 16 become u= min{i|Ni∈L1\L2}= 12 (corresponding to Nu=X3Y), and u⊥= max{i|Ni∈L1}= 14 (corresponding to Nu⊥=XY 3). By inspection we see that, due to the particular choice of L1and L2, in (3) and (4) of Theorem 16 we need only to consider monomials in L1\L2. That is, we obtain Mv(C(L1), C(L2)) ≥min{D(K)| K⊆ {X3Y, X2Y2, XY 3},#K=v}, Mv(C(L2)⊥, C(L1)⊥)≥min{D⊥(K)| K⊆ {X3Y, X2Y2, XY 3},#K=v}, for v= 1,2,3. From this we easily obtain the parameters in Table VII. In a similar way we have in (3) and (4) only monomials from L1\L2, if in (13) and (14) we replace (XY 3, X3Y)with (XY, XY ),(XY 2, X2Y),(X2Y2, X2Y2),(XY 4, X4Y),(X2Y3, X3Y2),(X2Y4, X4Y2), (X3Y3, X3Y3),(X3Y4, X4Y3), or (X4Y4, X4Y4). However, due to symmetry, we only need to consider the first five cases (in addition to the case that we have already considered). For instance from (X4Y4, X4Y4)we derive the same estimates for Mv(C(L1), C(L2)) and Mv(C(L2)⊥, C(L1)⊥), respectively, as we would derive from (XY, XY )for Mv(C(L2)⊥, C(L1)⊥)and Mv(C(L1), C(L2)), respectively (the order of parameters being reversed). In Table VIII we list our estimates of relative minimum distances and these are compared to the estimates of minimum distances to demonstrate the advantage of the proposed code construction. In this example we did in (13) and (14), not consider replacing XY 3and X3Y, respectively, with Yaand Xa, respectively. The arguments of the example surely would apply also in this case, however, the corresponding nested codes are of Reed-Muller type, and such codes do not have impressive parameters. ♦ 17 The method of Example 12 can be applied to any point set S1×S2with s= #S1= #S2. The idea is to consider the intersection of a line with slope −1and the lattice ∆(s, s). From either direction, both values D(XiYj)and D⊥(XiYj)strictly increase, while moving on the line segment toward its middle. Hence, choosing L2⊂L1in such a way that L1\L2is equal to a center part of a line segment of slope −1produces good relative minimum distances. Theorem 27. Consider S1, S2⊆Fqwith s= #S1= #S2. Let I=hF1(X), F2(Y)i ⊂ Fq[X, Y ], where F1and F2are as in (2). Consider XiYj∈∆(s, s)with i≤jand let L1={N∈∆(s, s)|Ndeg XiYj},(15) L2={N∈∆(s, s)|N≺deg XjYi}.(16) The codes C(L1)and C(L2)are of length n=s2and their codimension equals `=j−i+1. The relative minimum distances satisfy M1(C(L1), C(L2)) = (s−i)(s−j),(17) M1(C(L2)⊥, C(L1)⊥≥(i+ 1)(j+ 1),(18) and for v= 2, . . . , ` Mv(C(L1), C(L2)) = (s−i)(s−j) + v X t=2 (s−i)−(t−1)(19) = (s−i)(s−j+v−1) −v(v−1) 2, Mv(C(L2)⊥, C(L1)⊥)≥(i+ 1)(j+ 1) + v X t=2 (j+ 1) −(t−1)(20) = (i+v)(j+ 1) −v(v−1) 2. Proof. We first establish the bounds Mv(C(L1), C(L2)) ≥min D(K)| K⊆ {XjYi, Xj−1Yi+1, . . . , XiYj},#K=v,(21) Mv(C(L2)⊥, C(L1)⊥)≥min D⊥(K)| K⊆ {XjYi, Xj−1Yi+1, . . . , XiYj},#K=v.(22) We do this by applying Theorem 16 with ≺deg as the chosen monomial ordering. In particular ∆(s, s) = {N1, . . . , Ns2}where the enumeration of the Nis is with respect to ≺deg. Consider u= min{i|Ni∈ L1\L2}and u⊥= max{i|Ni∈L1}. The uth element of ∆(s, s)now is Nu=XjYiand the u⊥th element is Nu⊥=XiYj. By (3) and (4) the right-hand sides of (21) and (22) therefore serve as lower bounds on their respective left-hand sides. We next prove (17) and (18). From (21) we have M1(C(L1), C(L2)) ≥min{D(XjYi), D(Xj−1Yi+1), . . . , D(XiYj)} = min{(s−(i+v))(s−(j−v)) | v= 0, . . . , ` −1 = j−i} = (s−i)(s−j) 18 (equality of the convex function is attained for v= 0 and v=`−1). This proves that the right-hand side of (17) is larger than or equal to the left-hand side. In a similar fashion we establish the inequality (18). To establish equality in (17) we only need to find a codeword in C(L1)\C(L2)with (s−i)(s−j)non-zeros. To this end, write S1={α1, . . . , αs}and S2={β1, . . . , βs}and consider F(X, Y ) = i Y w=1 (X−αw) j Y r=1 (Y−βr) which has exactly the prescribed number of non-zeros in S1×S2. The codeword ~c =ev(F(X, Y ) + I) clearly belongs to C(L1)\C(L2)and therefore we have established equality in (17). In a similar way we can show that equality actually holds in (21). This is done by considering for each possible set K⊆ {XjYi, Xj−1Yi+1, . . . , XiYj}the corresponding set of #Kpolynomials as above. The number of elements in S1×S2, that are non-zeros of at least one of these polynomials, equals D(K). It remains to show that the right-hand side of (21) equals the right-hand side of (19), and that the righthand side of (22) equals the right-hand side of (20). For convenience, we will explain the case in (19) for v= 2. The cases v≥3can be proved with the same reasoning by using the principle of inclusion and exclusion. A similar and straightforward reasoning, where one should replace (s−i)(s−j)with (i+ 1)(j+ 1) gives the corresponding formula for the case in (20). Indeed, note that we are considering sets K={Xj−xYi+x, Xj−yYi+y}, where one can assume 0≤x < y≤j−i=`−1. Then D(K)equals the cardinality of the set of monomials which are divisible by either Xj−xYi+xor Xj−yYi+y. So, we have to compute the sum of the cardinalities of the set of monomials divisible by Xj−xYi+xplus that of the set of monomials divisible by Xj−yYi+yminus that of the set of monomials divisible by both of them. Therefore, D(K) = (s−j) + x(s−i)−x +(s−j) + y(s−i)−y −(s−j) + x(s−i)−y. We are looking for the minimum of that function within the above mentioned region. Derivatives show that the minimum will appear on the boundary. As a consequence we find it for the values x= 0 and y= 1 which give the value (s−i)(s−j)+(s−i−1) in the statement. This concludes the proof. Proposition 28. Let the notation be as in Theorem 27 and consider σ∈ {0, . . . , s −1}. Then for any positive integer `≤σ+ 1 such that `is even if and only if σis odd we obtain nested code pairs C(L2)⊂C(L1)of codimension `with M1(C(L1), C(L2))= s−σ−`+ 1 2s−σ+`−1 2(23) M1(C(L2)⊥, C(L1)⊥)≥ σ−`+ 3 2σ+`+ 1 2(24) and if `≤σ−1then d(C(L1)) = s(s−σ)< M1(C(L1), C(L2)).(25) Similarly we obtain code pairs of codimension `with M1(C(L1), C(L2))= σ−`+ 3 2σ+`+ 1 2(26) M1(C(L2)⊥, C(L1)⊥) ≥s−σ−`+1 2s−σ+`−1 2(27) 19 and if `≤σ−1then d(C(L1)) = σ+ 1 < M1(C(L1), C(L2)). Proof. We only prove (23), (24) and (25). The other results follow by symmetry. Choose 0≤i≤j < s with i+j=σ < s and `=j−i+ 1. Then i=σ−`+1 2,j=σ+`−1 2and the first two results follow from Theorem 27. Finally, d(C(L1)) = M1(C(L1),{~ 0}) = D(Xσ) = s(s−σ). Corollary 29. Consider integers 1< s ≤q, where qis a prime power and let σ∈ {0, . . . , s −1}. Then for any `≤σ+ 1 such that `is even if and only if σis odd we obtain from Proposition 28 ramp secret sharing schemes over Fqwith n=s2participants, shares in F` qand either t=t1≥σ−`+ 3 2σ+`+ 1 2−1 r=r`=s2−s−σ−`+ 1 2s−σ+`−1 2+ 1 or t=t1≥s−σ−`+ 1 2s−σ+`−1 2−1 r=r`=s2−σ−`+ 3 2σ+`+ 1 2+ 1. Similarly we obtain asymmetric quantum codes with parameters [[n=s2, `, dz/dx]]q where dzequals the right hand side of (23) and dxis greater than or equal to the right hand side of (24) (and similarly with (26) and (27)). If `≤σ−1then the asymmetric quantum codes are impure. Remark 30. As mentioned in the introduction it is often desirable to have asymmetric quantum codes with dzmuch larger than dx. One such family is obtained from Corollary 29 with parameters [[n= s2, `, dz≥s(s−`+1)/dx=`]]qfor any `∈ {1, . . . , s−1}. For q= 7,8,9and `= 1,2,3,4,5these codes strictly exceed the Gilbert-Varshamov bound (Theorem 4). Similarly for q= 5,11,13,16,17,19,23,25 and `= 1,2,3,4. Example 13. In this example we consider asymmetric quantum codes as in Corollary 29 with dz=δ being equal to the right hand side of (23) and dxbeing greater than or equal to δ⊥which we define as the right hand side of (24). We treat the cases n=q2, where q= 3,4,5,7,8,9. In the literature e.g. [42], [17], [44] one can find extensive tables of quantum stabilizer code parameters derived by applying Theorem 3, however, they only use the bound dz≥d(C1)and dx≥d(C⊥ 2), where d(C1)and d(C⊥ 2)are the minimum distances of concrete code pairs with C2⊂C1. The present example illustrates the huge advantage of using instead the relative minimum distances (which is what is behind the bounds in Corollary 29). This is done by investigating for each `and δwhat is the highest value g(`, δ)such that the tables of best known linear codes in [34] guarantee the existence of linear code pairs A, B⊥satisfying dim A−dim B=`, d(A)≥δ, and d(B⊥)≥g(`, δ)(this is in the spirit of [18, Theorem 2]). Observe, that we make no assumption whatsoever that B⊂A. Actually, such inclusion is very unlikely to hold when one chooses two codes Aand B⊥which are optimal with respect to the tables of best known linear codes in [34]. In Table IX we list values of (`, δ, δ⊥, g(`, δ)). The many cases where δ⊥is close to g(`, δ)illustrate the huge advantage of using the construction in Theorem 27 and taking into account the relative minimum distances. Note that, there are even two cases where δ⊥exceeds the corresponding g(`, δ), namely for q= 7 and (`, δ, δ⊥, g(`, δ)) equal to (3,15,15,14) or (2,30,6,5). All displayed code parameters coming from Theorem 27 strictly exceed the Gilbert-Varshamov bound (Theorem 4). ♦ 20 q(`, δ, δ⊥, g(`, δ)) 3 (1,4,4,4) 4 (2,6,6,6) (1,9,4,4) 5 (3,8,9,9) (1,9,9,9) (2,12,6,6) (1,16,4,4) 7 (5,12,12,18) (3,15,15,14) (1,16,16,17) (4,18,10,13) (2,20,12,12) (3,24,8,9) (1,25,9,10) (2,30,6,5) (1,36,4,4) 8 (5,21,12,19) (3,24,15,16) (1,25,16,16) (4,18,18,21) (2,20,20,22) (4,28,10,13) (2,30,12,13) (3,35,8,8) (1,36,9,10) (2,42,6,6) (1,49,4,4) 9 (3,24,24,26) (1,25,25,26) (5,21,21,27) (4,28,18,21) (2,30,20,22) (5,32,12,18) (3,35,15,16) (1,36,16,16) (4,40,10,13) (2,42,12,14) (3,48,8,8) (1,49,9,9) (2,56,6,6) (1,64,4,4) TABLE IX CORRESPONDING VALUES OF (`, δ, δ⊥, g(`, δ)) FROM EXAMPLE 13. THE MANY CASES WITH δ⊥CLOSE TO g(`, δ)(AND EVEN TWO CASES WITH δ⊥> g(`, δ))DEMONSTRATE THE ADVANTAGE OF THE CONSTRUCTION IN THEOREM 27 AND OF USING RELATIVE MINIMUM DISTANCES. 87654321 16 14 12 10 8 6 4 2 24 21 18 15 12 9 6 3 32 28 24 20 16 12 8 4 40 35 30 25 20 15 10 5 5 10 15 20 25 30 35 40 4 8 12 16 20 24 28 32 3 6 9 12 15 18 21 24 2 4 6 8 10 12 14 16 12345678 Fig. 6. Example 14: D(N)to the left, and D⊥(N)to the right It is not straightforward to generalize Theorem 27 to point ensembles S1×S2with #S1not necessarily equal to #S2. The problem lies in the choice of monomial ordering (and the corresponding definition of L1and L2). More concretely, for #S16= #S2there simply is no monomial ordering which simultaneously optimizes the relative minimum distance of the corresponding primary codes and the relative minimum distance of the corresponding dual codes. However, our method can still be applied as the following example illustrates. Example 14. In this example we consider S1, S2⊆Fqwith s1= #S1= 8,s2= #S2= 5 and consider codes defined from S1×S2. Here qis any prime power greater than or equal to 8. In Fig. 6 we depict on the left D(∆(s1, s2)) and on the right D⊥(∆(s1, s2)). Concentrating first on the lower left corner of ∆(s1, s2)we see that on a line segment of slope −1 the values D⊥(XiYj)indeed still increase when moving from either direction toward the middle of the segment. This, however, does not at all hold for D(XiYj). For instance if we choose L1={N∈∆(s1, s2)|Ndeg XY 2}, L2={N∈∆(s1, s2)|N≺deg X2Y}, then in (3) and (4) of Theorem 16 we only need to consider monomials in L1\L2={X2Y, XY 2}. Hence, we obtain the estimates M1(C(L1), C(L2)) ≥min{21,24}= 21 and M1(C(L2)⊥, C(L1)⊥)≥6. But this seems somewhat not a perfect choice of L2⊂L1as now min{D(M)|M∈L1}= min{D(M)|M∈ L1\L2}. Hence, we optimized the relative minimum distance of the dual codes, but did not obtain any improvement for the primary codes. Turning to the right upper corner of ∆(s1, s2)the situation is similar, however, with the role of the primary and dual codes interchanged. We finally consider the remaining 21 middle part of ∆(s1, s2). We first choose as monomial ordering the weighted degree lexicographic ordering ≺wdefined by the rule that Xi1Yi2≺wXj1Yj2if either i1+ 2i2< j1+ 2j2, or i1+ 2i2=j1+ 2j2with i2< j2. Then define L1={N∈∆(s1, s2)|NwX2Y2}, L2={N∈∆(s1, s2)|N≺wX4Y}. Again this renders the nice property that in (3) and (4) we only need to consider the monomials of L1\L2, which in this case becomes {X4Y, X2Y2}. We obtain M1(C(L1), C(L2)) ≥min{16,18}= 16, M1(C(L2)⊥, C(L1)⊥)≥min{9,10}= 9. Choosing on the other hand the degree lexicographic ordering and defining L1={N∈∆(s1, s2)|Ndeg X2Y2}, L2={N∈∆(s1, s2)|N≺deg X3Y}, we only need to consider monomials in L1\L2={X3Y, X2Y2}, from which we obtain M1(C(L1), C(L2)) ≥ min{18,20}= 18 and M1(C(L2)⊥, C(L1)⊥)≥min{8,9}= 8. As a consequence, there seems to be no general rule for which (weighted) degree lexicographic ordering to choose. ♦ We now return to the case of the point set being a Cartesian product of subsets Si⊆Fqof the same size. Theorem 27 treated the two-dimensional case, the theorem below treats higher dimensions. Theorem 31. Consider S1, . . . , Sm⊆Fqwith s= #S1=· · · = #Smand let hF1(X1), . . . , Fm(Xm)i ⊂ Fq[X1, . . . , Xm], where F1,...Fmare as in (2). Consider Xi1 1Xi2 2· · · Xim m∈ ∆(s, . . . , s)with i1≤i2and let L1={N∈∆(s, . . . , s)|Ndeg Xi1 1Xi2 2· · · Xim m}, L2={N∈∆(s, . . . , s)|N≺deg Xi2 1Xi1 2Xi3 3· · · , Xim m}. The codes C(L1)and C(L2)are of length n=smand their codimension equals `=i2−i1+ 1. The relative minimum distances satisfy M1(C(L1), C(L2)) = (s−i1)· · · (s−im) M1(C(L2)⊥, C(L1)⊥≥(i1+ 1) · · · (im+ 1), and for v= 2, . . . , ` Mv(C(L1), C(L2)) = min D(K)| K⊆ {Xi2 1Xi1 2Xi3 3· · · Xim m, . . . , Xi1 1Xi2 2· · · Xim m}, #K=v, Mv(C(L2)⊥, C(L1)⊥)≥min D⊥(K)| K⊆ {Xi2 1Xi1 2Xi3 3· · · Xim m, . . . , Xi1 1Xi2 2· · · Xim m}, #K=v. Proof. The proof is similar to that of Theorem 27. The details are left for the reader. We next return to the two-dimensional case, comparing in an example asymmetric quantum codes from Corollary 29 with La Guardia’s Construction II of asymmetric quantum generalized Reed-Solomon codes (Theorem 26). Recall from Remark 5 that parameters of asymmetric quantum codes based on the CSS construction can be directly translated into parameters of ramp secret sharing schemes. 22 Theorem 26 ([44, Theorem 7.1]) Theorem 27 —– [[49,1,31/4]]7 —– [[49,2,30/6]]7 —– [[49,1,25/9]]7 [[49,2,23/2]]7[[49,3,24/8]]7 [[49,2,20/5]]7[[49,2,20/12]]7 [[49,2,18/7]]7[[49,4,18/10]]7 [[49,2,16/9]]7[[49,1,16/16]]7 [[49,2,15/10]]7[[49,3,15/15]]7 [[49,6,12/11]]7[[49,5,12/12]]7 TABLE X COMPARISON OF CODE PARAMETERS IN EXAMPLE 15. TO THE RIGHT ALL POSSIBLE PARAMETERS DERIVED USING THEOREM 27. TO THE LEFT A SELECTION OF PARAMETERS DERIVED BY APPLYING THEOREM 26 TO CODES OF LENGTH 48. AN EMPTY ENTRY MEANS THAT THERE ARE NO COMPARABLE PARAMETER. Theorem 26 ([44, Theorem 7.1]) Theorem 27 —– [[64,1,49/4]]8 —– [[64,2,42/6]]8 —– [[64,1,36/9]]8 —– [[64,3,35/8]]8 [[64,2,30/3]]8[[64,2,30/12]]8 [[64,4,28/4]]8[[64,4,28/10]]8 [[64,2,25/8]]8[[64,1,25/16]]8 [[64,2,24/9]]8[[64,3,24/15]]8 [[64,2,21/12]]8[[64,5,21/12]]8 [[64,2,20/13]]8[[64,2,20/20]]8 [[64,4,18/14]]8[[64,4,18/18]]8 TABLE XI COMPARISON OF CODE PARAMETERS IN EXAMPLE 15. TO THE RIGHT ALL POSSIBLE PARAMETERS FROM THEOREM 27. TO THE LEFT A SELECTION OF PARAMETERS RESULTING FROM THEOREM 26. Example 15. We first consider the case of asymmetric quantum codes with q= 7 and of length 49. The parameters produced by Theorem 26 for the code length 49 all satisfy that dz, dx≤6. To produce higher values of dz(as usual we shall assume dz≥dx), we can instead apply Theorem 26 to codes of length 48 and thereby derive information on codes of length 49. We then compare these values with what is produced from Theorem 27 in combination with Theorem 3 for codes of length 49. As is seen in Table X, most often Theorem 27 produces the best results. All displayed codes coming from Theorem 27 strictly exceed the Gilbert-Varshamov bound (Theorem 4). We next consider asymmetric quantum codes with q= 8 and of length 64. In Table XI we compare representative examples of what can be derived from Theorem 26 with what can be obtained from Theorem 27 in combination with Theorem 3. Again the advantage of our method is distinct in most cases, however, with a clear exception when dz= 14. For dz>31, Theorem 26 does not produce any information, which in Table XI is marked with “—–”. All displayed codes coming from Theorem 27 strictly exceed the Gilbert-Varshamov bound (Theorem 4). ♦ We conclude this section with discussing higher weights and their use in secret sharing. Remark 32. Inspecting (19) and (20) it is clear that the (v+ 1)th relative weights are typically much larger than the vth relative weights, for v∈ {1, . . . , ` −1}. In particular the second relative weights are often much larger than the first relative weights. The consequence for the related ramp secret sharing schemes is that the security is much better than what is reflected only by the parameter t=t1, in that tv+1 is much larger than tvfor v∈ {1, . . . , ` −1}. Hence, if a small amount of information leakage can be accepted, then one can tolerate many more leaked symbols. In the other direction, reconstruction corresponds to solving a system of linear equations. Hence, the fact that rvis much smaller than rv+1 for 23 ` t1t2t3t4r1r2r3r4 1 24 - - - 33 - - - 2 19 23 - - 29 31 - - 3 14 18 21 - 24 26 29 - 1 15 - - - 28 - - - 4 9 13 16 18 18 20 23 27 1 8 - - - 21 - - - 3 7 10 12 - 15 18 22 - 2 5 7 - - 13 17 - - 1 3 - - - 12 - - - TABLE XII RAMP SECRET SHARING SCHEMES FROM EXAMPLE 16 v∈ {1, . . . , ` −1}, and in particular that r`−1is much smaller than r=r`, means that if one is willing to guess some of the indeterminates of the system then one needs much fewer shares to reconstruct the secret. We illustrate Remark 32 with an example. Example 16. This is a continuation of Example 12. Applying Theorem 27 we obtain ramp secret sharing schemes with n= 36 participants, with secrets in F` qwhere `and the privacy and reconstruction numbers are as in Table XII. ♦ V. CONCLUDING REMARKS In a series of works [26], [24], [27], [25], [23] the authors of the present paper investigated linear codes over Fqdefined by evaluating multivariate polynomials at Cartesian products S1× · · · × Sm, where for i= 1, . . . , m,Siis the set of roots of XNi i−Xior XNi−1 i−1.(28) Here Ni>1satisfies that Ni−1divides q−1. Such codes were then used in [26], [24], [27], [25], [23] for the construction of symmetric quantum codes. In the terminology used in these papers a set J⊆ {1, . . . , m}indicates for which indices the second case in (28) occurs – and the corresponding codes are called J-affine variety codes, and if Ni−1 = q−1,J={1, . . . , m}generalized toric codes [49]. One of the advantages of such codes is that they come with an efficient method for finding parity check matrices. More precisely, when each row in the generator matrix is made by evaluating a monomial at the points of the point set, then [27, Proposition 1] provides a description of a corresponding parity check matrix. The codes of the present paper clearly are J-affine variety codes when Si,i= 1, . . . , m is of the form (28). This is in particular the case in all the examples we have given, implying that for these codes we can easily establish parity check matrices. Another advantage of J-affine variety codes is that they are suited for the construction of subfield subcodes. It is an interesting topic of future research to investigate if the method from the present paper can be successfully combined with such subfield subcode construction. For qan even power of a prime, Theorem 3 is also true if one replaces the Euclidean duality with the Hermitian duality [19, Theorem 4.5]. It is also an interesting research problem to investigate if this product can be successfully combined with the methods of the present paper. APPENDIX A PROOF OF LEMMA 21 Proof. Let m≥2be an arbitrary integer. The proof is by induction on i=m, . . . , 1. For i=mthe formula reduces to Zs−τ (s−x1)···(s−xm−1) 0 dxm=s−τ (s−x1)· · · (s−xm−1) 24 which is indeed true. Next let 1≤i<mand assume that the formula in the lemma holds when iis substituted with i+ 1. We must show that it also holds for i. The left hand side becomes Zs−τ sm−i(s−x1)···(s−xi−1) 0 sm−i −Pm−i−1 t=0 1 t! τ (s−x1)···(s−xi) ·ln (s−x1)· · · (s−xi)sm−i τtdxi =sm−i+1 −τ (s−x1)···(s−xi−1) + m−i−1 X t=0 Zs−τ sm−i(s−x1)···(s−xi−1) 0 1 t! τ (s−x1)· · · (s−xi−1) −1 (s−xi) ·ln (s−x1)· · · (s−xi)sm−i τt dxi.(29) We continue with the last term, which after the substitution, u= ln((s−x1)· · · (s−xi)sm−i/τ), becomes m−i−1 X t=0 Z0 ln (s−x1)···(s−xi−1)sm−i+1 τ 1 t! τ (s−x1)· · · (s−xi−1)utdu =− m−i−1 X t=0 1 (t+ 1)! τ (s−x1)· · · (s−xi−1) ·ln (s−x1)· · · (s−xi−1)sm−i+1 τt+1. Shifting the index by 1in the last sum and collecting terms in (29) prove the lemma. ACKNOWLEDGMENT The authors thank Ryutaroh Matsumoto for pleasant discussions and the anonymous reviewers for insightful comments and suggestions. REFERENCES [1] S. A. Aly, A. Klappenecker, and P. K. Sarvepalli. Remarkable degenerate quantum stabilizer codes derived from duadic codes. Information Theory, 2006 IEEE International Symposium on, IEEE: 1105–1108, 2006. [2] H. E. Andersen and O. Geil. Evaluation codes from order domain theory. Finite Fields Appl., 14(1):92–123, 2008. [3] A. Ashikhmin and E. Knill. Non-binary quantum stabilizer codes. IEEE Trans. Inform. Theory, 47(7):3065–3072, 2001. [4] A. E. Ashikhmin, A. M. Barg, E. Knill, and S. N. Litsyn. Quantum error detection. I. Statement of the problem. IEEE Trans. Inform. Theory, 46(3):778–788, 2000. [5] T. Bains. Generalized Hamming weights and their applications to secret sharing schemes. Master’s thesis, Univ. Amsterdam, 2008. [6] J. Bierbrauer and Y. Edel. Quantum twisted codes. J. Combin. Des., 8(3):174–188, 2000. 25 [7] G. R. Blakley and C. Meadows. Security of ramp schemes. In Advances in cryptology (Santa Barbara, Calif., 1984), volume 196 of Lecture Notes in Comput. Sci., pages 242–268. Springer, Berlin, 1985. [8] A. R. Calderbank, E. M. Rains, P. W. Shor, and N. J. A. Sloane. Quantum error correction and orthogonal geometry. Phys. Rev. Lett., 78(3):405, 1997. [9] A. R. Calderbank, E. M. Rains, P. W. Shor, and N. J. A. Sloane. Quantum error correction via codes over GF(4). IEEE Trans. Inform. Theory, 44(4):1369–1387, 1998. [10] A. R. Calderbank and P. W. Shor. Good quantum error-correcting codes exist. Phys. Rev. A, 54(2):1098, 1996. [11] R. M. Capocelli, A. De Santis, L. Gargano, and U. Vaccaro. On the size of shares for secret sharing schemes. J. Cryptology, 6(3):157–167, 1993. [12] H. Chen, R. Cramer, S. Goldwasser, R. de Haan, and V. Vaikuntanathan. Secure computation from random error correcting codes. In Advances in cryptology—EUROCRYPT 2007, volume 4515 of Lecture Notes in Comput. Sci., pages 291–310. Springer, Berlin, 2007. [13] D. A. Cox, J. Little, and D. O’Shea. Ideals, varieties, and algorithms: an introduction to computational algebraic geometry and commutative algebra, volume 10. Springer, 1997. [14] L. Csirmaz. Ramp secret sharing and secure information storage. Preprint, 2009. [15] I. M. Duursma and S. Park. Coset bounds for algebraic geometric codes. Finite Fields Appl., 16(1):36–55, 2010. [16] M. F. Ezerman, S. Jitman, H. M. Kiah, and S. Ling. Pure asymmetric quantum MDS codes from CSS construction: A complete characterization. Int. J. Quantum Inf., 11(03): 1350027, 2013. [17] M. F. Ezerman, S. Jitman, S. Ling, and D. V. Pasechnik. CSS-like constructions of asymmetric quantum codes. IEEE Trans. Inform. Theory, 59(10):6732–6754, 2013. [18] M. F. Ezerman, S. Jitman, and P. Sole. Xing-Ling codes, duals of their subcodes, and good asymmetric quantum codes. Des. Codes Cryptogr., 75(1):21–42, 2015. [19] M. F. Ezerman, S. Ling, and P. Sole. Additive asymmetric quantum codes. IEEE Trans. Inform. Theory, 57(8):5536–5550, 2011. [20] G. L. Feng and T. R. N. Rao. Decoding algebraic-geometric codes up to the designed minimum distance. IEEE Trans. Inform. Theory, 39(1):37–45, 1993. [21] G. L. Feng and T. R. N. Rao. A simple approach for construction of algebraic-geometric codes from affine plane curves. IEEE Trans. Inform. Theory, 40(4):1003–1012, 1994. [22] G. L. Feng and T. R. N. Rao. Improved geometric Goppa codes part I: Basic theory. IEEE Trans. Inform. Theory, 41(6):1678–1693, 1995. [23] C. Galindo, O. Geil, F. Hernando, and D. Ruano. On the distance of stabilizer quantum codes from J-affine variety codes. Quantum Inf. Process., 14(4):111, 2017. [24] C. Galindo and F. Hernando. Quantum codes from affine variety codes and their subfield-subcodes. Des. Codes Cryptogr., 76(1):89–100, 2015. [25] C. Galindo, F. Hernando, and D. Ruano. New quantum codes from evaluation and matrix-product codes. Finite Fields Appl., 36:98–120, 2015. [26] C. Galindo, F. Hernando, and D. Ruano. Quantum codes with bounded minimum distance. In 21st Conference on Applications of Computer Algebra, 2015. [27] C. Galindo, F. Hernando, and D. Ruano. Stabilizer quantum codes from J-affine variety codes and a new Steane-like enlargement. Quantum Inf. Process., 14(9):3211–3231, 2015. [28] O. Geil and T. Høholdt. Footprints or generalized Bezout’s theorem. IEEE Trans. Inform. Theory, 46(2):635–641, 2000. [29] O. Geil, and T. Høholdt. On hyperbolic type codes. Information Theory, 2003. Proceedings. IEEE International Symposium on, 331–331, 2003. [30] O. Geil, S. Martin, R. Matsumoto, D. Ruano, and Y. Luo. Relative generalized Hamming weights of one-point algebraic geometric codes. IEEE Trans. Inform. Theory, 60(10):5938–5949, 2014. [31] O. Geil, R. Matsumoto, and D. Ruano. Feng-Rao decoding of primary codes. Finite Fields Appl., 23:35–52, 2013. [32] O. Geil, C. Munuera, D. Ruano, and F. Torres. On the order bounds for one-point AG codes. Adv. Math. Commun., 5(3):489–504, 2011. [33] O. Geil and C. Thomsen. Weighted Reed-Muller codes revisited. Des. Codes Cryptogr., 66(1-3):195–220, 2013. [34] M. Grassl. Bounds on the minimum distance of linear codes and quantum codes. Online available at http://www.codetables.de, 2007. Accessed on 2016-09-15. [35] M. Grassl, S. Lu, and B. Zeng. Codes for simultaneous transmission of quantum and classical information. arXiv preprint arXiv:1701.06963, 2017. [36] T. Høholdt. On (or in) Dick Blahut’s’ footprint’. In A. Vardy, editor, Codes, Curves and Signals: Common Threads in Communications, pages 3–9, Springer, 1998. [37] T. Høholdt, J. H. van Lint, and R. Pellikaan. Algebraic geometry codes. In V. S. Pless and W. C. Huffman, editors, Handbook of Coding Theory, volume 1, pages 871–961. Elsevier, Amsterdam, 1998. [38] L. Ioffe and M. M´ ezard. Asymmetric quantum error-correcting codes. Phys. Rev. A, 75(3):032345, 2007. [39] A. Ketkar, A. Klappenecker, S. Kumar, and P. K. Sarvepalli. Nonbinary stabilizer codes over finite fields. IEEE Trans. Inform. Theory, 52(11):4892–4914, 2006. [40] J. Kurihara, T. Uyematsu, and R. Matsumoto. Secret sharing schemes based on linear codes can be precisely characterized by the relative generalized Hamming weight. IEICE Trans. Fundamentals, E95-A(11):2067–2075, Nov. 2012. [41] G. G. La Guardia. Asymmetric quantum product codes. Int. J. Quantum Inf., 10(01):1250005, 2012. [42] G. G. La Guardia. Asymmetric quantum Reed-Solomon and generalized Reed-Solomon codes. Quantum Inf. Process., 11(2):591–604, 2012. [43] G. G. La Guardia. Asymmetric quantum codes: New codes from old. Quantum Inf. Process., 12(8):2771–2790, 2013. [44] G. G. La Guardia. On the construction of asymmetric quantum codes. Int. J. Theor. Phys., 53:2312–2322, 2014.