scieee AI-readable full text Open interactive document viewer

On the distance of stabilizer quantum codes from J-affine variety codes

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

Abstract

Self-orthogonal J-affine variety codes have been successfully used to obtain quantum stabilizer codes with excellent parameters. In a previous paper we gave formulae for the dimension of this family of quantum codes, but no bound for the minimum distance was given. In this work, we show how to derive quantum stabilizer codes with designed minimum distance from J-affine variety codes and their subfield-subcodes. Moreover, this allows us to obtain new quantum codes, some of them either with better parameters, or with larger distances than the previously known codes.

Full text

ON THE DISTANCE OF STABILIZER QUANTUM CODES FROM J-AFFINE VARIETY CODES CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO Abstract. Self-orthogonal J-affine variety codes have been successfully used to obtain quantum stabilizer codes with excellent parameters. In a previous paper we gave formulae for the dimension of this family of quantum codes, but no bound for the minimum distance was given. In this work, we show how to derive quantum stabilizer codes with designed minimum distance from J-affine variety codes and their subfield-subcodes. Moreover, this allows us to obtain new quantum codes, some of them either, with better parameters, or with larger distances than the previously known codes. Introduction Some intractable problems are tractable with a quantum computer. This was confirmed with the Shor algorithm [45] for prime factorization and discrete logarithms in polynomial time on quantum computers. Due to this fact, the interest of scientists and engineers in quantum computation has dramatically grown in the last decades. Implementations proposed for quantum computers produce much more errors than classical ones and reliability of classical computers cannot be expected for them. Together with correcting errors, decoherence is another challenge in quantum computation and quantum error correction is designed for meeting both challenges. Although quantum information cannot be cloned [12, 49], quantum error correction can be used [46, 47]. The literature concerning quantum error-correcting codes is huge, some recent papers, for the general case, are [6, 41, 5, 15, 30, 37]. The study of these codes was started with the binary case [9, 28, 7, 8, 31, 3, 4]. Stabilizer codes are a subclass of quantum codes which are well understood, both its structure and construction. Most of the codes in this paper will be of this type. A stabilizer code C 6={0}is the common eigenspace of an abelian subgroup ∆ of the error group Gngenerated by a nice error basis on the space Cqn,C being the complex numbers, qa prime power and na positive integer. The code Chas minimum distance dwhenever all error in Gnwith weight less than dcan be detected or have no effect on Cbut some error of weight dcannot be detected. In addition, Cis called pure if ∆ does not possess non-scalar matrices with weight less than d, and, so, all errors acting on less than dqubits can be detected. Finally, a code as above is an [[n, k, d]]q-code when it is a qk-dimensional subspace of Cqnand has minimum distance d(see for instance [8, 36]). Stabilizer codes can be constructed from linear codes with the help of symplectic or Hermitian inner product [8, 6, 5, 36]. In this paper we will derive our codes from certain self-orthogonal classical codes, with respect to Hermitian or Euclidean inner product (see forthcoming Theorem 2.1). Let Key words and phrases. Stabilizer J-affine variety codes; Subfield-subcodes; Designed minimum distance; Hermitian and Euclidean duality. Supported by the Spanish Ministry of Economy/FEDER: grants MTM2012-36917-C03-03 and MTM2015-65764-C3-2-P, the University Jaume I: grant PB1-1B2015-02 and the Danish Council for Independent Research: grant DFF-4002-00367. 1 2 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO Fqbe the finite field with qelements. Recall that the Hermitian inner product of two vectors x= (x1, x2, . . . , xn) and y= (y1, y2, . . . , yn) in the vector space Fn q2is defined as x·hy=Pxiyq iand the Euclidean product of xand yin Fn qas x·y=Pxiyi. Given a linear code Cin Fn q2(respectively, Fn q), the Hermitian (respectively, Euclidean) dual space is denoted by C⊥h(respectively, C⊥). Occasionally, we enlarge our codes with Steane type procedures [48, 32, 19]. Our supporting classical codes have been recently introduced in a series of papers [17, 18, 19] and, generically, named J-affine variety codes; they are evaluating codes and codes of this type have been recently considered in the literature [23, 2, 21, 26, 22, 20]. Goodness of some quantum codes coming from J-affine variety codes has become clear from the above mentioned series of papers, where we have established some records and found codes improving others in the literature. We devote Section 1 to recall them and to state two fundamental results, Propositions 1.2 and 1.3, which make it easy to decide about self-orthogonality for this class of codes, both with respect to Euclidean and Hermitian inner product. In our previous papers we constructed quantum codes from J-affine variety ones and determined their dimension, however, in most cases, we were not able to provide formulae for their minimum distance and we needed to compute it, case by case, with a computer. Since it is computationally intense, we could only provide stabilizer codes with relatively small minimum distances. The main goal of this paper is to generate, using algebraic tools, stabilizer codes supported by self-orthogonal (with respect to Euclidean and Hermitian duality) J-affine variety codes with designed minimum distance. Thus, we are able to give good stabilizer codes with large minimum distance now. We consider stabilizer codes over arbitrary finite fields. There is no table like [29] for non-binary quantum codes and most efforts have been focused to the study of MDS quantum codes, quantum LDPC codes or quantum BCH codes [44, 13, 1, 37, 39, 35, 50, 38, 10, 33]. For comparing or for showing how good our code are, we have essentially used La Guardia’s articles [37, 39, 38], which give tables and improve some previous codes in [1] and [32], and we have used the codes in [13] and the Gilbert-Varshamov bounds [14, 42, 16]. For our purposes, we use univariate and multivariate J-affine variety codes. Our best examples come from the multivariate case, notwithstanding the univariate case helps to study and understand the multivariate one and gives a simple procedure to obtain codes, over the same field, with larger distances than (and the same length as) others in the literature (see Examples 2.15 and 2.16). We get a [[80,50,≥10]]3code improving the [[80,48,≥10]]3given in the literature, but, generally speaking and for known distances in the literature, our univariate codes reach the same parameters (Examples 2.15 and 2.16) and occasionally and for small distances are a bit worse (Example 2.14). Using multivariate codes, we are able to improve several previous codes in Examples 3.6 B, 3.9 A and C, and 3.17 A. Moreover, the codes constructed with this technique, compared with, for instance, those derived from BCH codes, admit a wider variety of lengths and, as a consequence, we provide good stabilizer codes whose lengths are different from others previously given. Several of them have better relative parameters than similar codes (Examples 3.9 C and 3.11 A) and/or exceed the Gilbert-Varshamov bounds (Examples 3.6 A, 3.9 A, B and C, 3.11 A and 3.17 B). Stabilizer codes coming from univariate J-affine variety codes are studied in Section 2 of the paper. For getting these codes we consider subfield-subcodes of the mentioned classical codes. Self-orthogonality of subfield-subcodes with respect to Euclidean inner product is considered in Subsection 2.1.2 and we devote Subsection 2.1.3 to the Hermitian ON THE DISTANCE OF STABILIZER QUANTUM CODES 3 case. Theorems 2.7 and 2.13 and Theorem 2.11 can be considered our most interesting results in this section because they are our main source of examples. The multivariate case is treated in Section 3. Proposition 3.1 is essential for the development of the paper because it supports our proofs for bounding the minimum distance of this family of codes. We also use subfield-subcodes in the last subsection, although many of our results in this section do not need this technique. Theorems 3.4 and 3.7 together with Corollaries 3.5, 3.8 and 3.10, which only consider the bivariate case, are the main results. 1. Stabilizer J-affine variety codes This section is devoted to review the concept of J-affine variety classical code introduced in [19] and to give some results concerning self-orthogonality with respect to the Euclidean and Hermitian inner product. As shown in [17, 18, 19], good examples of stabilizer codes can be obtained in this way, although, up to this paper, no general formula or bound for their distances was known. Let q=prbe a positive power of a prime number p. Define a value Qwhich will be Q=qwhen we use the Euclidean inner product and Q=q2when we consider the Hermitian inner product. Fix integers Nj>1, j= 1, . . . , m, such that Nj−1 divides Q−1 and set J⊆ {1,2, . . . , m}. Let R:= FQ[X1, X2, . . . , Xm] be the ring of polynomials with mvariables and with coefficients in the finite field FQ. Consider the ideal IJin R generated by the binomials XNj j−Xjwhen j6∈ Jand by XNj−1 j−1 otherwise. Set ZJ={P1, P2, . . . , PnJ}the zero-set of IJover FQ. Notice that the jth coordinate, for j∈J, of the points in ZJis different from zero and nJ=Qj /∈JNjQj∈J(Nj−1). Also, denote Tj=Nj−2 when j∈Jand Tj=Nj−1 otherwise, define HJ:= {0,1, . . . , T1}×{0,1, . . . , T2}×···×{0,1, . . . , Tm} and for any a= (a1, a2, . . . , am)∈ HJ, set Xa:= Xa1 1Xa2 2· · · Xam m. Consider the quotient ring RJ:= R/IJand the evaluation map evJ:RJ→FnJ qgiven by evJ(f)=(f(P1), f(P2), . . . , f(PnJ)), where fdenotes both the equivalence class and any polynomial representing it. Definition 1.1. Let ∆ be a non-empty subset of HJ. The J-affine variety classical code given by ∆ is the vector subspace EJ ∆(over FQ) of FnJ Qgenerated by evJ(Xa), a∈∆. Next, the reader can find the announced results concerning self-orthogonality of the above introduced codes. They can be found in [19]. First we describe when the Euclidean inner product of the evaluation of two monomials does not vanish. Proposition 1.2. Let J⊆ {1,2, . . . , m}, consider a,b∈ HJand let Xaand Xbbe two monomials representing elements in RJ. Then, the Euclidean inner product evJ(Xa)· evJ(Xb)is different from 0if, and only if, the following two conditions are satisfied. •For every j∈J, it holds that aj+bj≡0 mod (Nj−1), (i.e., aj=Nj−1−bj when aj+bj>0or aj=bj= 0). •For every j /∈J, it holds that –either aj+bj>0and aj+bj≡0 mod (Nj−1), (i.e., aj=Nj−1−bj if 0< aj, bj< Nj−1or (aj, bj)∈ {(0, Nj−1),(Nj−1,0),(Nj−1, Nj−1)} otherwise), –or aj=bj= 0 and p6 | Nj. The analogous result for Hermitian inner product is 4 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO Proposition 1.3. Let J⊆ {1,2, . . . , m}, consider a,b∈ HJand let Xaand Xbbe two monomials representing elements in RJ. Then, the Hermitian inner product evJ(Xa)·h evJ(Xb)is different from 0if, and only if, the following two conditions are satisfied. •For every j∈J, it holds that qaj+bj≡0 mod (Nj−1), (i.e., bj=−qaj+λ(Nj− 1), for some λ≥0). •For every j /∈J, it holds that –either aj+bj>0and qaj+bj≡0 mod (Nj−1) (i.e., bj=−qaj+λ(Nj−1), for some λ > 0, if 0< aj, bj< Nj−1, or (aj, bj)∈ {(0, Nj−1),(Nj−1,0),(Nj−1, Nj−1)}, otherwise); –or aj=bj= 0 and p6 | Nj. Now we give some notation. Set H:= H∅,H0:= H{1,2,...,m}and pick ∆ ⊆ H. For Q=q, define ∆⊥as HJ\ {(N1−1−a1, N2−1−a2, . . . , Nm−1−am)|a∈∆}, if ∆ ⊆ H0. When ∆ 6⊆ H0define ∆⊥as HJ\{(N1−1−a1, N2−1−a2, . . . , Nm−1−am)|a∈∆∩ H0}∪{a0|a∈∆,a/∈ H0}, where we set a0 j=Nj−1−ajif aj6=Nj−1 and a0 jequals either Nj−1 or 0 otherwise. For Q=q2, we write ∆⊥has HJ\ {([−qa1]N1−1,[−qa2]N2−1,...,[−qam]Nm−1)|a∈∆}, when ∆ ⊆ H0and where [−qaj]Nj−1, 1 ≤j≤m, is a suitable representative of the congruence class of −qajmodulo Nj−1. Otherwise, ∆⊥his defined as HJ\{([−qa1]N1−1,[−qa2]N2−1,...,[−qam]Nm−1)|a∈∆∩ H0}∪{a0|a∈∆,a/∈ H0}. Here a0is a multi-valued vector defined by a0 j= [−qaj]Nj−1if aj/∈ {0, Nj−1},a0 jis equal to Nj−1 if aj= 0 and a0 jadmits two values which are Nj−1 and 0 if aj=Nj−1. Next, we state the mentioned result about self-orthogonality which is also true when ⊥his used instead of ⊥and Q=q2. Proposition 1.4. With the above notations, let ∆be a subset of HJ. Then EJ ∆⊥=EJ ∆⊥ whenever ∆⊆ H0. Otherwise, it holds that EJ ∆⊥⊆EJ ∆⊥. Subfield-subcodes of J-affine variety codes will be used in this paper. To deal with them, we will need the following notation. First of all, let rand sbe positive integers such that sdivides r. For simplicity, we will denote by Rthe value rwhen we use the Euclidean inner product and 2rwhen we use the Hermitian inner product. The same notation is considered for Sfor representing sand 2s. Set Z/TjZ=ZTj, 1 ≤j≤m. A subset I of the Cartesian product ZT1×ZT2× · · · × ZTmis called a cyclotomic set with respect to pSif pS·x∈Ifor any x= (x1, x2, . . . , xm)∈I, where pS·x= (pSx1, pSx2, . . . , pSxm). Iis said to be minimal (with respect to pS) whenever it contains all the elements that can be expressed as pSi ·xfor some fixed element x∈Iand some nonnegative integer i. Within each minimal cyclotomic set I, we pick a representative a= (a1, a2, . . . , am) given by nonnegative integers such that a1is the minimum of the first coordinates of the nonnegative representatives of the elements in I,a2is the minimum of the second coordinates of those elements in Ihaving a1as a first coordinate and the remaining coordinates, a3, . . . , amare defined in the same way. We will denote by Iathe cyclotomic set Iwith representative aand by Athe set of representatives of the minimal cyclotomic ON THE DISTANCE OF STABILIZER QUANTUM CODES 5 sets. Thus, the set of minimal cyclotomic sets will be {Ia}a∈A. In addition, we will denote ia:= card(Ia). 2. Stabilizer univariate J-affine variety codes with designed minimum distance In this section, our goal consists of giving parameters of stabilizer codes coming from univariate J-affine variety codes with designed minimum distance and relating them with the literature. For the sake of simplicity, we will consider ∆ ⊆ H0and we will write N1=Nand T1=T. Results in this paper, will use both Euclidean and Hermitian inner product and the following well-known fact to provide stabilizer codes from linear codes. Theorem 2.1. [1, 36] Let Cbe an [n, k, d]linear error-correcting code over FQsuch that C⊥⊆C. Then, there exists an [[n, 2k−n, ≥d]]qstabilizer code which is pure to d. If the minimum distance of C⊥exceeds d, then the stabilizer code is pure and has minimum distance d. Notice that when Q=q2, we use the Hermitian inner product and the symbol ⊥ in the previous statement must be regarded as ⊥h. By considering E{1} ∆, with ∆ = {1,2, . . . , d −1}, one obtains MDS codes using this technique (with ⊥or ⊥h); these codes were found in [30]. In order to obtain a richer family of codes, one should consider subfieldsubcodes. We devote the next subsection to study these codes. 2.1. Stabilizer J-affine variety codes, with J={1}, coming from subfieldsubcodes. The main goal in this subsection is to show parameters of some stabilizer codes obtained from subfield-subcodes of univariate J-affine variety codes with designed minimum distance. These codes can be understood as BCH codes, codes which have been used in the literature of quantum codes (see [48, 1, 37, 39, 38] and their references). We consider univariate polynomials for two reasons: we perform a different analysis which allows us to obtain slightly better codes in some cases and, above all, such analysis will be applied in Section 3 for the multivariate case, where we provide excellent new codes. In Subsections 2.1.2 and 2.1.3, we will provide suitable self-orthogonal codes with respect to both metrics, Euclidean and Hermitian. In order to do this, we must introduce some lemmas concerning cyclotomic sets first. 2.1.1. Study of cyclotomic sets. In this section Q=q=prand let S=sa positive integer that divides r. We consider two cases: ris even and ris odd. When ris even, we will consider values of sthat divide r/2. Otherwise we restrict ourselves to the case s= 1. As mentioned J={1}. Fix N=prand consider the above described set of representatives Aof the corresponding minimal cyclotomic sets (which, in this section, are, in fact, cyclotomic cosets because m= 1). Set A={a0= 0 < a1< a2<· · · < az}. Recall that we are considering classes modulo pr−1 and the values ai, 1 ≤i≤z, are the least positive integers representing their classes. Our first result is the following: Lemma 2.2. With the above notation and in the case when ris even, it holds that pr/2−1∈ A, that is pr/2−1is the minimum positive integer within its minimal cyclotomic set. Otherwise, when ris odd, one has that pr+1 2−p−1∈ A. Proof. We will reason assuming that s= 1. The case s6= 1 can be proved in a similiar way. 6 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO Assume firstly that ris an even number, then the elements in the cyclotomic set containing pr/2−1 (its positive representatives which are less than pr−1) can be written as a disjoint union of the following two sets: I1=npr/2−1, pr 2+1 −p, . . . , pr−pr/2oand I2=npr−pr 2+1 +p−1, pr−pr 2+2 +p2−1, . . . , pr−pr−1+pr 2−1−1o. Note that the elements of I1are pairwise different modulo pr−1 and they are obtained after successive multiplication by p. Now, for i≤r 2−1, it holds that pi(pr−pr/2) = pr+i−pr 2+i and pr+i−(pr+pi−1) ≡0 mod (pr−1) which proves that pr−pr 2+i+pi−1≡pi(pr−pr/2) mod (pr−1). In addition, the sequence of integers given in I1is strictly increasing and the fact that pi1−pr 2< pi+1(1 −pr 2) proves that the sequence in I2is strictly decreasing. Furthermore, pr 2≥pr 2−1+ 1 and then pr 2+1 ≥pr 2+pwhich allows us to deduce that the last element in I1is larger than the first one in I2. Taking into account the inequality pr 2−1< pr−pr−1+pr 2−1−1, this concludes the proof for the case when ris even. The case when ris odd can be proved in a similar way. The minimal cyclotomic set containing pr+1 2−p−1 (its positive representatives which are less than pr−1) is a disjoint union of the following sets: I1=npr+1 2−p−1, pr+3 2+1 −p2−p, . . . , pr−pr+1 2−pr−1 2o, I2=npr−pr+1 2+1 −pr−1 2+1 +p−1, . . . , pr−pr−1−pr−2+pr−3 2−1o, and I3=npr−pr−1+pr−1 2−2o, where the last set comes from the fact that pr+1 −pr− p≡pr−2 mod (pr−1). Then, the result follows from the facts that the elements in I1 are an strictly increasing sequence, those in I2are strictly decreasing and the last element in I2is smaller than that in I3but larger than the first one in I1. This concludes the proof.  Our next result shows a property of the classes treated in Lemma 2.2, namely a property regarding the representative of the coset. We will use the notation [xmod (pr−1)] to denote the nonnegative integer less than pr−1 representing the coset of x. Lemma 2.3. Assume that ris an even positive integer. Then, for any integer 0≤b < pr/2−1and for any index 0≤j < r, the following inequality holds: (1) pjbmod (pr−1)< pr−pr/2. When ris odd, one gets pjbmod (pr−1)< pr−pr+1 2+p, for any integer 0≤b≤pr+1 2−p−1and for any index 0≤j < r. Proof. We prove the case when ris even. A similar reasoning proves the odd case. Suppose that j≤r/2. Then pjb<pr−pr/2< pr−1. So, (1) follows because pjb= [pjb mod (pr−1)]. Assume now that r/2< j < r and set j= (r/2) + j0. Consider the p-adic expansion of b,b=Pr/2 i=1 cipr 2−i, 0 ≤ci< p. Then pjb=pr 2+j0  r/2 X i=1 cipr 2−i = r/2 X i=1 cipr+j0−i ON THE DISTANCE OF STABILIZER QUANTUM CODES 7 and the inequality [pjbmod (pr−1)] <(p−1) Pr/2 i=1 pr−iholds after taking into account that b<pr/2−1 implies that not all the cican reach the value p−1. Finally the fact that (p−1) Pr/2 i=1 pr−i=pr−pr/2concludes the proof.  The following remark is the key for obtaining self-dual codes which allow us to construct stabilizer codes. Remark 2.4. Assume that ris an even number and let abe a nonnegative integer such that a < pr/2−1. This inequality is equivalent to (pr−1) −a > pr−pr/2which by Proposition 1.2 and Lemma 2.3 guarantees that Ia⊆I⊥ a. When ris odd, the same result holds for a<pr+1 2−p−1. Returning to the case when ris even, the equality (pr−1) −pr/2−1=pr−pr/2=pr/2pr/2−1 proves that (pr−1)−pr/2−1∈Ipr/2−1. Thus, the inclusion Ipr/2−1⊆Ipr/2−1⊥does not hold and pr/2−1 is the smallest representative of a minimal cyclotomic field with that property. To conclude this subsection, we state a result concerning the size of some cyclotomic sets. Lemma 2.5. With the notations as at the beginning of this subsection, it holds that, when ris even, the cardinality of the cyclotomic sets Ia,0< a ≤pr/2−1, is equal to r/s. Otherwise, when ris odd and s= 1, the cardinality of Ia,0< a ≤pr+1 2−p−1, equals r. Proof. We will assume that ris even, the case when ris odd can be proved with a similar reasoning. Since sdivides r/2, it suffices to show our result for the case s= 1 and therefore we are going to prove that ris the cardinality of Iawhenever 0 < a ≤pr/2−1. Set a=ci1pr 2−i1+ci2pr 2−i2+· · · +cikpr 2−ik the p-adic expansion of a, where 0 < cij< p, 1 ≤j≤k≤r/2 and 1 < i1< i2<· · · < ik. Clearly the elements, a, p a, . . . , pr2+i1aare different and belong to Ia, which means that Iacontains more than r/2 elements. This proves our result because the cyclotomic sets have ror a divisor of relements.  We claim that Lemma 2.5 holds for rodd and s > 1 as well, however, for the sake of simplicity we do not consider it. 2.1.2. Codes obtained with Euclidean inner product. Stabilizer codes obtained as in Theorem 2.1 with Q=qcan be improved with the Steane’s enlargement procedure [48] and their generalizations in [32] and [19, Theorem 3]. The following proposition uses the above given results to give parameters of stabilizer codes. Proposition 2.6. Assume that ris a positive even integer, q=prand sanother positive integer that divides r/2. Write A={a0= 0 < a1< a2<· · · < az}the set of representatives of cyclotomic sets modulo pr−1with respect to ps. Let t2< t1be indices such that at1< pr/2−1and at1+1 ≤(ps+ 1)at2+1 ps. 8 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO Then, suitable J-affine variety codes with J={1}and m= 1, provide stabilizer codes with parameters q−1, q −1−2r st1,≥at1+1psand q−1, q −1−r s(t1+t2),≥at1+1ps. The same parameters can be obtained for rodd and s= 1 provided that at1< pr+1 2−p−1. Proof. Let us show the case when ris even. The odd case can be proved similarly by using the odd version of the above stated lemmas. Note that indices t1and t2exist by Lemma 2.5. Set ∆ = Ia1∪Ia2∪ · · · ∪ Iat1. Lemmas 2.2 and 2.3 (see also Remark 2.4) show that ∆ ⊆∆⊥. Consider the subfieldsubcode E{1},σ ∆:= E{1} ∆∩Fq−1 ps. By [18, Theorem 8], it holds that E{1},σ ∆⊥=E{1} ∆⊥σ =tr E{1} ∆⊥, where tr is a trace function defined componentwise by means of the map trs r:Fpr→Fps, trs r(x) = x+xps+· · · +xps(r s−1) . The choice of ∆ guarantees that it contains every positive integer less than at1+1 and thus the minimum distance satisfies dE{1},⊥ ∆≥at1+1 because its corresponding paritycheck matrix contains a Vandermonde matrix of rank at1+1 −1 (without the all-ones row). So, the inclusion E{1},⊥ ∆σ⊆E{1} ∆⊥proves that dE{1},σ ∆⊥≥at1+1. Finally, Lemma 2.5 and [19, Theorem 6(2)] give a stabilizer code with parameters q−1, q −1−2r st1,≥at1+1ps . For obtaining stabilizer codes with the second family of parameters, it suffices to use the Hamada’s enlargement procedure [32] and dual codes of the subfield-subcodes given by ∆t1and ∆t2, where, for i= 1,2, we set ∆ti=Ia1∪Ia2∪ · · · ∪ Iati.  The length of the codes we have just described is pr−1 for r > 0 and pa prime number. Proposition 2.6 can be adapted for other lengths after changing our bound pr/2−1 with another condition involving the corresponding minimal cyclotomic sets. Next we state the corresponding result. Keep the above notation and let Nbe a positive integer such that N−1 divides pr−1. Consider a positive integer ssuch that sdivides rand cyclotomic sets on Z/(N−1)Zwith respect to ps. Recall that each minimal cyclotomic set Iais represented by the minimum nonnegative integer a∈Ia. Theorem 2.7. With the previous notation, let A={a0= 0 < a1< a2<· · · < az}be the set of representatives of the minimal cyclotomic sets with respect to psmodulo N−1. Let aN(i)be the representative of the minimal cyclotomic set containing N−1−ai,0≤i≤z, and consider two indices t1and t2such that: (i) t2< t1and at1<min{aN(i)|1≤i≤t1}, (ii) the following inequality holds: at1+1 ≤(ps+ 1)at2+1 ps. ON THE DISTANCE OF STABILIZER QUANTUM CODES 9 Then, suitable J-affine variety codes, with J={1}and m= 1, defined by ∆tj=Ia1∪Ia2∪ · · · ∪ Iatj, where j= 1,2, provide stabilizer codes with parameters [[N−1, N −1−2 card(∆t1),≥at1+1]]ps and [[N−1, N −1−(card(∆t1) + card(∆t2)),≥at1+1]]ps. Proof. The proof follows from the same reasoning we used for proving Proposition 2.6. Notice that our first condition implies ∆t1⊆∆⊥ t1. Remark 2.8. The second item in Proposition 1.2 shows that the results concerning quantum codes in this subsection are true when using univariate J-affine variety codes, with J=∅, provided that pdivides N. In this case, we are able to construct codes of length N. Example 2.9. Set p= 2, s= 2, r= 10, N= 94 and apply Theorem 2.7 and Remark 2.8, which allows us to consider as the first cyclotomic set Ia0. Here Ia1={1,4,16,64,70}, Ia2={2,8,32,35,47}and Ia3={3,6,12,24,48}. Then, we get new stabilizer codes with parameters [[94,87,≥3]]4, [[94,77,≥4]]4and [[94,67,≥6]]4. They are new since by Remark 2.8 we can consider a J-affine variety code, with J=∅, with length N= 94 instead of 93 = N−1 as it is usually considered in the literature of BCH codes. Note that, for these last mentioned codes, length and cardinality of the supporting field must be coprime. The next subsection considers Hermitian instead of Euclidean inner product. 2.1.3. Codes obtained with Hermitian inner product. We devote this section to give parameters of stabilizer codes coming from self-orthogonal, with respect to Hermitian inner product, subfield-subcodes of J-affine variety codes with J={1}. We will show that some properties, which we proved for the Euclidean inner product, will be useful here as well. Note that our original codes are vector spaces over the field Fp2rand the corresponding subfield-subcodes are over Fp2s, where rand sare positive integers such that sdivides r. The corresponding stabilizer codes will be over Fpsafter applying Theorem 2.1 with Q=q2and q=ps. Our first result provides codes of length p2r−1. The remaining results consider codes defined by cyclotomic sets modulo N−1, where N−1 divides p2r−1. The forthcoming Theorem 2.11 is stated for r= 2sand their conclusions on existence of stabilizer codes over the field Fpscan be extended to any runder suitable bounds or conditions for the representatives of the minimal cyclotomic sets (see Proposition 2.12 and Theorem 2.13). When considering vectors over the field Fp2r, one can use different inner products, apart from the Euclidean and the Hermitian products, we will also use that given by x·sy= Pxiyps i, where (xi) (respectively, (yi)) are the coordinates of the vector x(respectively, y). Notice that when s=r, this is exactly the Hermitian inner product. Proposition 2.10. Let rand sbe positive integers such that sdivides r. Let A(l)= na(l) 0= 0 < a(l) 1< a(l) 2<· · · < a(l) zobe the set of representatives of minimal cyclotomic sets with respect to plmodulo p2r−1, where lis either sor 2s. Let tbe an index such that a(s) t0=a(2s) t< pr−1for some index t0. Then, from subfield-subcodes and via Hermitian inner product, one can get a stabilizer code with parameters hhp2r−1, p2r−1−2r st, ≥a(2s) t+1 iips. 16 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO (ii) J={1}and either t≤r(N1)+1or t≤r(N2)+2. (iii) J={1,2}and either t≤r(N1)+1or t≤r(N2)+1. Then, a stabilizer code with parameters [[nJ, nJ−2 card (N(J, t)) ,≥t]]q can be constructed. Proof. We are going to show that the first (respectively, second) condition given in each item implies the inclusion (5) N(J, t)⊆R1(J) (respectively, N(J, t)⊆R2(J)), which allows us to apply Theorem 3.4 and, as a consequence, to get the mentioned stabilizer codes. We start by considering the conditions given in item (i). The set N(∅, t) contains pairs of integers (b1, b2) such that 0 ≤b1≤N1−1, 0 ≤b2≤N2−1 and (b1+ 1)(b2+ 1) < t. Taking into account that (b1+ 1)(b2+ 1) = tgives the equation of a hyperbola, the first inclusion in (5) is satisfied if the hyperbola intersects the line b2= 0 at a point in the interval [0, r(N1) + 1]. Indeed, when b2= 0, the defining inequality of N(∅, t) shows b1+1 < t or equivalently b1≤t−2. Thus, our hypothesis t≤r(N1)+2 implies b1≤r(N1) and the proof is completed. With an analogous reasoning, when t≤r(N2) + 2, one can deduce that the second inclusion in (5) holds. A similar proof can be done by using conditions (ii) and (iii) in the statement. For instance, in the case of item (ii), N({1}, t) is given by pairs of integers (b1, b2) such that 1≤b1≤N1−1, 0 ≤b2≤N2−1 and b1(b2+ 1) < t. Here the hyperbola is defined by b1(b2+ 1) = t. Note that when b2= 0, we get b1< t or equivalently b1≤t−1. Therefore, t≤r(N1) + 1 proves b1≤r(N1) and, thus, we obtain the desired property N({1}, t)⊆R1(J).  Example 3.6. Next, we give some examples which can be deduced from Theorem 3.4. Example A. Set Q=q=p= 7, J={1},N1= 3, N2= 7 and N3= 7. For applying Theorem 3.4, we are going to consider values tsuch that N(J, t)⊆R2(J). Thus, with notations as in the proof of Proposition 3.3, one can consider Nl(J, 2) = {(1,0,0)}which gives a stabilizer code C1= Hyp(J, 2) with parameters [[98,96,≥2]]7. We can also consider Nl(J, 3) = {(1,0,0),(2,0,0),(1,1,0),(1,0,1)}giving a stabilizer code C2with parameters [[98,90,≥3]]7. Analogously Nl(J, 4) = {(1,0,0),(2,0,0),(1,1,0),(1,0,1),(1,2,0),(1,0,2)}, provides a stabilizer code C3with parameters [[98,86,≥4]]7. Hamada’s enlargement procedure applied to C1and C2(respectively, C2and C3) gives stabilizer codes with parameters [[98,93,≥3]]7(respectively, [[98,88,≥4]]7). We have not found, in the literature, better codes with this length. In addition, both codes exceed the Gilbert-Varshamov bounds [14, 42, 16]. Example B. Set Q=q= 7, N1=N2= 7, N3= 3 and J={1,2,3}. Consider the stabilizer codes C1= Hyp(J, 2) (C2= Hyp(J, 3), respectively) given by Nl(J, 2) = {(1,1,1)}(Nl(J, 3) = Nl(J, 2)∪{(2,1,1),(2,2,1),(1,1,2)}, respectively) with parameters, by Theorem 3.4, [[72,70,≥2]]7([[72,64,≥3]]7, respectively). Consider also the J-affine stabilizer code given by Nl(J, 4) = Nl(J, 3)∪{(3,1,1),(2,3,1)}with parameters [[72,62,≥ 4]]7. Applying the Hamada enlargement procedure, we get stabilizer codes with parameters [[72,67,≥3]]7and [[72,62,≥4]]7, improving the [[72,65,≥3]]7and [[72,59,≥4]]7codes in [13]. ON THE DISTANCE OF STABILIZER QUANTUM CODES 17 Theorem 3.4 can be adapted to the case when Hermitian duality is used. Next we state this adaptation. Before it, we consider the above defined sets M(J, t) and N(J, t) and the codes E(J, t) and F(J, t) over the field Fq2. In addition, for each index 1 ≤i≤m, we define Rq i(J) := nXb|b∈ HJand i≤bi≤rq(Ni)o, where rq(Ni) := (bNi−1 q+1 cif Ni−1 is not a multiple of q+ 1, Ni−1 q+1 −1 otherwise. Theorem 3.7. Suppose that Q=q2and that pdivides Njfor all index j6∈ J. Then, for each positive value t≤nJsuch that (6) N(J, t)⊆ Rq i(J), for some index i,1≤i≤m, it holds that F(J, t)⊆(F(J, t))⊥h and, therefore, we are able to construct a stabilizer code with parameters [[nJ, nJ−2 card (N(J, t)) ,≥t]]q. Proof. As in the proof of Theorem 3.4, the inclusion of sets in (6) proves, by Proposition 1.3, the self-orthogonality of the code F(J, t) with respect to Hermitian inner product. To conclude the proof, we are going to show that the distance of the code F(J, t)⊥h is larger than or equal to t. In fact, it is clear that the code of qpowers F(J, t)⊥hqof the coordinates of the elements in the Hermitian dual of the code F(J, t) is exactly the Euclidean dual F(J, t)⊥. As a consequence, the equality of codes F(J, t)⊥hq= Hyp(J, t) and the fact that the codes F(J, t)⊥hqand F(J, t)⊥hare isometric prove that the following distances satisfy the inequality dF(J, t)⊥h=d(Hyp(J, t)) ≥t, which finishes the proof.  Now, we state a consequence of the previous result which holds for some conditions in the bivariate case. It is the analogous of Theorem 3.4 for the Hermitian case. Corollary 3.8. We continue to keep the above notation, set Q=q2and let N1and N2 be positive integers such that Nj−1divides q2−1for j= 1,2. Consider a subset Jof the set {1,2}. Assume that pdivides Njfor each j6∈ Jand that t≤nJis a positive integer. Suppose also that one of the following conditions is satisfied: (i) J=∅and either t≤rq(N1)+2or t≤rq(N2)+2. (ii) J={1}and either t≤rq(N1)+1or t≤rq(N2)+2. (iii) J={1,2}and either t≤rq(N1)+1or t≤rq(N2)+1. Then, a stabilizer code with parameters [[nJ, nJ−2 card (N(J, t)) ,≥t]]q can be constructed. 18 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO k≥d k ≥d k ≥d k ≥d k ≥d 134 4 130 5 128 6 122 7 120 8 116 9 112 10 108 11 106 12 - - Table 3. Parameters of quantum codes of length 144 over F7 Proof. The proof is similar to the one of Corollary 3.5, that is, our first (respectively, second) condition in each item implies the inclusion (6) for i= 1 (respectively, i= 2) and thus, by Theorem 3.7, a stabilizer code with the stated parameters can be constructed. The reasoning in each case is analogous to the corresponding one in Corollary 3.5. For instance when the first condition in item (i) happens, one can deduce that the hyperbola given by (b1+ 1)(b2+ 1) = tintersects the line b2= 0 at one point of the real interval [0, rq(N1) + 1] which is the desired condition. The other cases can be proved in a similar way.  Example 3.9. We are going to provide three examples of good stabilizer codes. The first two can be deduced from Corollary 3.8. Example A. Set q= 7, consider N1= 49, N2= 4 and J={1,2}. Note that nJ= 144 and rq(N1) = 5. Then, by item (iii) of Corollary 3.8, one can use values of tsuch that t < 7. Set t= 4, then the set Nl({1,2},4) of pairs which are exponents of the monomials generating F({1,2},4) is equal to Nl({1,2},4) = {(1,1),(1,2),(1,3),(2,1),(3,1)}, and so, we get a [[144,134,≥4]]7stabilizer quantum code. A similar reasoning for t= 5 and t= 6 provides stabilizer quantum codes with parameters [[144,130,≥5]]7and [[144,128,≥6]]7. Here, Nl({1,2},5) = Nl({1,2},4) ∪ {(4,1),(2,2)}and Nl({1,2},6) = Nl({1,2},5) ∪ {(5,1)}. Corollary 3.8 assumes a generic situation for self-orthogonality of the code given by N(J, t). However, this situation can happen without occurring inclusion in sets as Ri(J), giving stabilizer codes with good parameters. Indeed, considering N({1,2},7), it holds that Nl({1,2},7) = Nl({1,2},6) ∪ {(3,2),(2,3),(6,1)}and, by applying Proposition 1.3, the corresponding code is self-orthogonal providing a [[144,122,≥7]]7stabilizer code. In an analogous manner, we can find stabilizer codes with distance up to 12. We show their parameters in Table 3. Notice that all these codes produce a great improvement of those given in [38, Table IV]. We also improve those codes with the same length in [13] and our codes exceed the Gilbert-Varshamov bounds [14, 42, 16]. Example B. Let us see a new example. Here q= 4, N1= 16. N2= 6 and J=∅. It is clear that p= 2 divides N1and N2,nJ= 96, and rq(N2) = 2. So, one can get codes for t < 5. With the previous notation, we have that Nl(∅,4) = {(0,0),(0,1),(0,2),(1,0),(2,0)}. This provides a stabilizer code with parameters, [[96,86,≥4]]4. With a similar reasoning to that we did for obtaining the last codes in Example A, we get [[96,80,≥5]]4and [[96,76,≥6]]4stabilizer codes. All these codes, also exceed the Gilbert-Varshamov bounds. Example C. Consider q= 5, N1= 25, N2= 4 and J={1,2}. Although Corollary 3.8 cannot be used, it holds that Nl 1({1,2},4) = {(1,1),(1,2),(2,1),(1,3),(3,1)}and, by Proposition 1.3, F({1,2},4) is self-orthogonal giving rise to a [[72,62,4]]5stabilizer code with better parameters than the [[72,60,4]]5code given in [13] and with better relative ON THE DISTANCE OF STABILIZER QUANTUM CODES 19 parameters than the [[71,56,4]]5code given in [38, Table III]. In addition, our code also exceeds the Gilbert-Varshamov bounds. Considering J=∅and suitable values for N1and N2, we obtain the following result. Corollary 3.10. With the above notations, assume Q=q2,J=∅,N1=q2and N2=q. Consider a positive integer tsuch that t < min q2+q+ 1 2,4q+ 1. Then, a stabilizer code with parameters [[nJ, nJ−2 card (N(J, t)) ,≥t]]q can be constructed. Proof. Firstly we are going to prove that under the condition (7) t < min q2+q+ 1 2,4q+ 1, qr(q)+2q+ 1, where r(q) is defined as above, the inclusion F(J, t)⊆(F(J, t))⊥hholds. Afterwards, we will see that we can reduce Inequality (7) to that given in the statement. As a consequence, a stabilizer code with the mentioned parameters can be constructed. Consider the set HJ={0,1, . . . , q2−1}×{0,1, . . . , q−1}embedded in the corresponding rectangle in R2and the six subsets in HJdelimited by the lines b1=q−1, b1= 2q−2 and b2=r(q) + 1. We will use Proposition 1.3 for obtaining sets of monomials in HJwhose evaluation give self-orthogonal linear codes. We start by observing that an exponent pair of the form (x, q −1) is not compatible with a pair (q2−1−qx mod (q2−1),0), where we choose a nonnegative integer less than q2as a representative of the mentioned congruence class. Then, taking into account that the hyperbola (b1+ 1)(b2+1) = tmeets the line b2=q−1 at the point ((t/q)−1, q −1); the line b2= 0 at the point (t−1,0) and each point on b2=q−1 eliminates a point on b2= 0 after moving back qunits modulo q2−1 its non-vanishing coordinate, we get that when tsatisfies (8) qt q−1< q2−t+ 1, the pairs in N(J, t) on b2=q−1 can be considered as exponents of monomials in the generating set of our supporting linear code. So, from (8), we can deduce the imposed condition which is t < (q2+q+ 1)/2. To guarantee our result, we need to impose some more conditions. We say that two exponents are incompatible if the evaluation the corresponding monomials are not orthogonal. On the one hand, it holds that pairs (q−1, a) on the line b1=q−1 are incompatible with pairs (q2−1−q(q−1), q −1−qa), which after taking the corresponding congruence classes provides pairs (q−1, q−1−a) at the same line. This imposes the condition that the intersection point between (b1+1)(b2+1) = tand b1=q−1 should be either (q−1, r(q)+1) or another point on the line b1=q−1 with second coordinate less than r(q) + 1, note that it is crucial that t < qr(q) + 2q+ 1. We must also notice that rq(q2−1) = q−2 and, by Theorem 3.7, those points in the rectangle 0 ≤b1≤q−2, 0 ≤b2≤q−2 are suitable for us. Now consider the set of points Bin HJwithin the rectangle {(b1, b2)|q≤b1≤2q−3; 1 ≤b2≤r(q)}. 20 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO k62 58 54 48 46 40 38 32 28 24 22 ≥d2 3 4 5 6 7 8 9 10 11 12 GV GV GV * * GV * * * * Table 4. Parameters of quantum codes of length 64 over F4 The fact that, under the above restriction for b1, (q2−1)−qb1=q2−2−q(b1−q) modulo q2−1 shows that points in Bdiscard points in (b1, b2)|2q−1≤b1≤q2−1; r(q)+1≤b2≤q−1. Furthermore points in the line b1= 2q−2 are incompatible with other points on the same line. As a consequence we add another restriction to avoid most points on this line that can be expressed by saying that the hyperbola (b1+ 1)(b2+ 1) = tmust intersect the line b1= 2q−1 at the point (2q−1,1) or below it, which forces us to consider t < 4q+ 1. In fact, the unique point under the hyperbola that deserves especial attention is (2q−2,1) but it eliminates (2q−2, q −2) and self-orthogonality is preserved. The remaining points on the line b1= 2q−2 have the form (2q−2, b), b≥2 and are not below the hyperbola since (2q−1)(b+ 1) ≥6q−3, 6q−3>4qand t≤4q. Finally, we are going to prove that q2+q+ 1 2< qr(q)+2q+ 1. And, as a consequence, we can eliminate qr(q)+2q+ 1 from Inequality (7). Indeed, when qis even, qr(q)+2q+ 1 = qq−2 2+ 2+ 1 = q2+ 2q+ 2 2. Otherwise qr(q)+2q+ 1 = qq−1 2+ 1+ 1 = q2+q+ 2 2, and the proof is completed.  Example 3.11. Next, we apply Corollary 3.10 to give some examples of good stabilizer codes. Example A. Set q= 4, N1= 16, N2= 4 and J=∅, then nJ= 64. Since (q2+q+1)/2 = 21/2 and 4q+ 1 = 17, we can use Corollary 3.10 and get quantum codes up to distance 10. In fact, it can be checked that self-orthogonality also happens for distances 11 and 12, and so, we can derive codes with parameters as in Table 4. Comparing with [37, Table III] and [32], we get four codes with better relative parameters and two new codes, which we label with a star. We also add a symbol GV for identifying those codes exceeding the Gilbert-Varshamov bounds. Example B. Assume q= 9, N1= 81, N2= 9 and J=∅. Applying Corollary 3.10 nJ= 729 and tshould be less than 37 because (q2+q+ 1)/2 = 91/2 and 4q+ 1 = 37. Table 5 shows the parameters of some of our codes. Our previous results consider hyperbolic codes as the supporting linear codes and assume that pdivides Njfor j6∈ J. Both assumptions can be avoided; in fact one only needs the fact that pdivides Njfor at least one index jwhenever J=∅. A general theorem in this direction would be dense. Therefore, we give the corresponding result in the bivariate case only, which will give good stabilizer codes and shows the underlying ideas. We state ON THE DISTANCE OF STABILIZER QUANTUM CODES 21 k≥d k ≥d k ≥d k ≥d k ≥d 727 2 723 3 719 4 713 5 709 6 701 7 697 8 689 9 683 10 677 11 675 12 665 13 663 14 657 15 651 16 643 17 641 18 631 19 629 20 621 21 Table 5. Parameters of quantum codes of length 729 over F9 it for Euclidean inner product but notice the important fact that the result also holds for Hermitian inner product. Proposition 3.12. Suppose Q=q, consider positive integers N1and N2such that Nj−1 divides q−1for j= 1,2and a subset J⊆ {1,2}. For J=∅, assume that pdivides Nj for, at least, one index j=j0. Let Nbe a set of monomials in Rsuch that: (i) N ⊂ Ri(J)for either i= 1 or i= 2 when J={1,2}. (ii) N ⊂ Ri(J)when J={i}and, in case p6 | Nj, (j6=i), Ndoes not contain any pair of monomials of the form Xbi iX0 jand Xb0 i iXNj−1 j,j6=i, except when bi=b0 i. That is, we only admit pairs of monomials Xbi iX0 jand Xbi iXNj−1 jand monomials with exponent in j, either always 0or always Nj−1. (iii) N ⊂ Rj0(J)when J=∅and we do not consider XNi−1 iXbj0 j0,i6=j0, in Nexcept when X0 iXbj0 j0is also in N. Moreover, we consider monomials with exponent in i, either always 0or always Nj−1. Denote by Nlthe set of exponent pairs of the monomials in Nand write ND,l =HJ\ {(N1−1−b1, N2−1−b2)|(b1, b2)∈ Nl}. Then, the code EN:= EJ N(see Definition 1.1) is self-orthogonal and the distance of the dual code is larger than or equal to δ= min    2 Y j=1 (Nj−j−aj)|a∈ ND,l   . As a consequence, we are able to construct a stabilizer code with parameters [[nJ, nJ−2 card(N),≥δ]]q. Proof. Proposition 1.2 shows that the inclusions imposed in the proposition imply the self-orthogonality of the code EN. Indeed, by Proposition 1.2, when pdivides Njfor all j /∈J, it holds that every monomial Xb1 1Xb2 2,b1< N1−1, b2< N2−1, admits a unique monomial with exponents in HJ,XN1−1−b1 1XN2−1−b2 2, such that the inner product of their evaluations by evJdoes not vanishes. However when pdoes not divide Njfor some j6∈ J, say J={2}and pdoes not divide N1, it happens that evJ(X0 1Xb2 2)·evJ(X0 1XN2−1−b2 2) = α6= 0 and evJ(X0 1Xb2 2)·evJ(XN1−1 1XN2−1−b2 2) = β6= 0. In addition, when one admits Nj−1 as an exponent, it also holds that evJ(XN1−1 1Xb2 2)·evJ(X0 1XN2−1−b2 2)6= 0 and evJ(XN1−1 1Xb2 2)·evJ(XN1−1 1XN2−1−b2 2)6= 0 and the same result is true if we switch the roles of the indices 1 and 2. Notice that the monomial XN1−1 1XN2−1 2is not eligible for our codes. As a consequence, we get that our definition of sets Navoid the existence of conflicting pairs in Nl, and therefore the evaluation of any monomial Xb∈ N is orthogonal to that of all monomials in N, which proves the self-orthogonality of the code. 22 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO To conclude our proof, notice that the dual code (EN)⊥could not be only generated by evaluating monomials. This can be checked by computing the dimension of the dual code nJ−dim ENand the set of monomials whose evaluation is not orthogonal to the evaluation of the monomials generating our code. In fact, the existence of monomials of the form (say) Xbi iX0 j(or Xb0 i iXNj−1 j) forces to eliminate from the dual code the evaluation of XNi−1−bi iXNj−1 jand XNi−1−bi iX0 j(or XNi−1−b0 i iXNj−1 jand XNi−1−b0 i iX0 j) because both evaluations are not orthogonal to that of the previous given monomial. Notwithstanding, conditions in (ii) or (iii) allow us to consider pairs in Nlcorresponding to monomials with exponents 0 and Nj−1, when the other exponent is the same, since both monomials eliminate the same pair of monomials. Furthermore the same conditions show that we also admit monomials with exponents always all 0 or always Nj−1. This is imposed because we can obtain their corresponding generating polynomials for the dual code and, as a consequence, we can decide about minimum distance. Let us see it, for instance, for the case J={2}and pdoes not divide N1. The remaining cases can be reasoned analogously. Notice that, in this case, (EN)⊥ could not be generated only by evaluating monomials, however, taking the above given values αand β, it is clear that (9) evJX0 1Xb2 2·evJ1 αX0 1XN2−1−b2 2−1 βXN1−1 1XN2−1−b2 2= 0, which proves that (EN)⊥is generated by evaluating monomials Xa1 1Xa2 2such that (a1, a2)∈ HJ\n(N1−1−b1, N2−1−b2)|b16= 0; (b1, b2)∈ Nlo and binomials as in (9) for each pair (0, b2)∈ Nl. This concludes our proof by considering a suitable monomial ordering for which X0 1XN2−1−b2 2is the leading monomial of 1 αX0 1XN2−1−b2 2−1 βXN1−1 1XN2−1−b2 2and after applying Proposition 3.1.  Remark 3.13. Proposition 3.12 is stated for the case Q=qbut, as mentioned, it also holds when Q=q2and the Hermitian inner product is considered. The difference is that we should consider a set of monomials Nqsuch that (i) Nq⊂ Rq i(J) for either i= 1 or i= 2 when J={1,2}. (ii) Nq⊂ Rq i(J) when J={i}and, in case p6 | Nj, (j6=i), Nqdoes not contain any pair of monomials Xbi iX0 jand Xb0 i iXNj−1 jexcept when bi=b0 i; that is, we only admit pairs of monomials of the form Xbi iX0 jand Xbi iXNj−1 jand monomials with exponent in j, either always 0 or always Nj−1. (iii) Nq⊂Rq j0(J) when J=∅and we do not allow XNi−1 iXbj0 j0,i6=j0, in Nqexcept when X0 iXbj0 j0is also in Nq. We also permit monomials with exponents in i, either always 0 or always Nj−1. And, for computing the distance, ND,l should be replaced with ND,l q=HJ\ {(N1−1−qb1mod T1, N2−1−qb2mod T2|(b1, b2)∈ Nl q}. Proposition 1.3, some ideas in Theorem 3.7 and Proposition 3.1 establish the proof. 3.1. The subfield-subcode case. We conclude our paper with this subsection, where we show that some similar results can be stated by considering subfield-subcodes. Here we use the notation introduced after Proposition 1.4 and in the first paragraphs of Subsection 2.1.3. We extend, to the multivariate case, ideas and procedures we treated in Section 2. ON THE DISTANCE OF STABILIZER QUANTUM CODES 23 The sets ∆ defining the codes in this subsection will satisfy several conditions. On the one hand, they will be a union of minimal cyclotomic sets, which allows us to compute the dimension of the subfield-subcodes [17] and, on the other hand, those sets ∆ will contain suitable elements (in accordance with previous results in this section) for guarantying that the distance of the codes will be lower bounded. Finally, we will also impose conditions for the cyclotomic sets which, according Propositions 1.2 and 1.3, will prove the selforthogonality of the classical supporting codes of our stabilizer codes. Next, keeping the above notations, we state our first two results for which we will give a joint proof. With respect to quantum stabilizer codes determined by Euclidean inner product we get the following theorem: Theorem 3.14. Let rand sbe positive integers such that sdivides r. Set Q=q=pr and consider values Nj,1≤j≤m, as above. Consider a subset J⊆ {1,2, . . . , m}and assume that pdivides Njfor all j /∈J. Consider also the minimal cyclotomic sets Ia, a∈ A with respect to psand, for a positive integer t≤nJ, set ∆ (N(J, t)) = [ a∈A∩N(J,t) Ia. Denote also by I−athe cyclotomic set with respect to pscontaining the congruence classes of the tuple −a, and assume that Ia6=I−a0for all pair a,a0of elements in A ∩ N(J, t). Then, the subfield-subcode over FnJ psof the J-affine variety code given by ∆ (N(J, t)), EJ,σ ∆(N(J,t)) =EJ ∆(N(J,t)) ∩FnJ ps, satisfies EJ,σ ∆(N(J,t)) ⊆EJ,σ ∆(N(J,t))⊥ and gives rise to a stabilizer code with parameters [[nJ, nJ−2Pa∈A∩N(J,t)ia,≥t]]ps. Our result when one considers the Hermitian inner product is: Theorem 3.15. Let rand sbe positive integers such that sdivides r. Set Q=q2=p2r and consider values Nj,1≤j≤m, as above (i.e., Nj−1divides Q−1). Consider a subset J⊆ {1,2, . . . , m}and assume that pdivides Njfor all j /∈J. Consider also the minimal cyclotomic sets Iawith respect to p2s, where a∈ A and for a positive integer t≤nJ, define ∆ (N(J, t)) = Sa∈A∩N(J,t)Ia. Denote also by I−psathe cyclotomic set with respect to p2scontaining the congruence classes of the tuple −psaand assume that Ia6=I−psa0for all a,a0in A ∩ N(J, t). Then the subfield-subcode of the J-affine variety code given by ∆ (N(J, t)) over FnJ p2s,EJ,σ ∆(N(J,t)) =EJ ∆(N(J,t)) ∩FnJ p2s, satisfies EJ,σ ∆(N(J,t)) ⊆EJ,σ ∆(N(J,t))⊥h and it gives rise to a stabilizer code with parameters [[nJ, nJ−2Pa∈A∩N(J,t)ia,≥t]]ps. Proofs for Theorems 3.14 and 3.15 are analogous except that, for the first result, we have to consider Euclidean dual and subfield-subcodes over FnJ ps. So, let us show a proof for Theorem 3.15. For a start, consider the code, over FnJ p2s,EJ,σ ∆(N(J,t)). By [17, Theorem 4], its dimension is Pa∈A∩N(J,t)ia. Now a similar reasoning as we did in the proof of Proposition 2.10 proves that the Hermitian dual of the code EJ,σ ∆(N(J,t)) coincides with the trace tr2s 2r:FnJ p2r→FnJ p2sof the dual code of EJ ∆(N(J,t)) with respect to the above defined inner product ·s. Notice that tr2s 2ris given componentwise by the map tr2s 2rdefined in the mentioned proof of Proposition 24 CARLOS GALINDO, OLAV GEIL, FERNANDO HERNANDO AND DIEGO RUANO 2.10. By the proof of [19, Theorem 7], this trace is the subfield subcode over FnJ p2sof the mentioned dual code with respect to ·s. The above ideas allow us to prove the inclusion EJ,σ ∆(N(J,t)) ⊆EJ,σ ∆(N(J,t))⊥h. Indeed, by Proposition 1.3 and [17, Theorem 3], EJ,σ ∆(N(J,t))⊥his obtained by evaluating polynomials defined by representatives of minimal cyclotomic sets in HJ\{([−psa1]N1−1,[−psa2]N2−1,...,[−psam]Nm−1)|a= (a1, a2, . . . , am)∈∆ (N(J, t))}, therefore, the condition Ia6=I−psa0for all a,a0in A ∩ N(J, t), given in the statement, allows us to conclude the mentioned self-orthogonality of the code EJ,σ ∆(N(J,t)). It only remains to check that the distance is greater than or equal to t. In fact, for a linear code Cand a positive integer k, if we write Ckfor the set of words xk= (xk 1, xk 2, . . . , xk m), then the following inequality of distances of codes holds: dEJ,σ ∆(N(J,t))⊥h≥ dEJ ∆(N(J,t))⊥psand, moreover, it also holds that EJ ∆(N(J,t))⊥ps=EJ ∆(N(J,t))⊥p2r−s , because yp2r= (yps)p2r−sand y∈EJ ∆(N(J,t))⊥psif and only if yps∈EJ ∆(N(J,t))⊥if and only if y∈EJ ∆(N(J,t))⊥p2r−s . This concludes the proof, because EJ ∆(N(J,t))⊥p2r−s is isometric to EJ ∆(N(J,t))⊥, whose distance is larger than or equal to tsince EJ N(J,t)⊆ EJ ∆(N(J,t)). To finish, we state the following result which follows straightforwardly because our hypotheses on cyclotomic sets in Theorems 3.14 and 3.15 can be guaranteed by imposing conditions to one variable, as we showed in Propositions 2.6 and 2.10. Corollary 3.16. Let p, R, S, Q and Jbe as in Section 1. Set N1=pRand suppose that Nj−1divides pR−1for j∈J\ {1}. Denote by A1a set of univariate representatives as in Section 2 of minimal cyclotomic sets with respect to psmodulo N1−1. Set a:= max{a∈ A1|a<pR/2−1}when Ris even; and a:= max{a∈ A1|a≤p(R+1)/2−p−1}, otherwise. Then: •In the Euclidean case, that is Q=q=pr,R=rand S=s, it holds that E∆(N(J,t)) ⊂E⊥ ∆(N(J,t)) for any t≤a+ 1. Therefore, the above self-orthogonal code gives rise to a quantum code with parameters [[nJ, nJ−2 card(∆(N(J, t))),≥t]]ps. •In the Hermitian case, that is Q=p2r,R= 2rand S= 2s, it holds that E∆(N(J,t)) ⊂E⊥h ∆(N(J,t)) for any t≤a+ 1 and the above self-orthogonal code yields a code with parameters [[nJ, nJ−2 card(∆(N(J, t))),≥t]]ps. In addition, when J⊆ {1,2}we can reason as in corollaries 3.5 and 3.8 and, then, the above results are true for t≤a+ 2 whenever J=∅or J={2}. Example 3.17. Above results are the support of the following examples of quantum codes. ON THE DISTANCE OF STABILIZER QUANTUM CODES 25 k510 504 500 492 488 480 476 468 464 456 452 444 440 432 428 ≥d2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Table 6. Parameters of quantum codes of length 512 over F4 Example A. With notation as in Theorem 3.15, set p= 5, r= 2, s= 1, Q= 54,J=∅, N1= 15 and N2= 6. Consider t= 3 and then ∆ (N(J, t)) = {(0,0),(1,0),(12,0),(0,1)} which satisfies the hypotheses in the mentioned theorem. Then, we get a [[70,62,≥3]]5 quantum code which can be extended to a quantum code with parameters [[71,62,≥3]]5, which improves the [[71,61,≥3]]5quantum code given in [38, Table 1] and [13]. Example B. We conclude with an example obtained applying Corollary 3.16. Set p= 2, r= 4, s= 2, N1= 256, N2= 2 and J=∅. Here a= 14 and we get codes of length 512 over F4. Table 6 displays the corresponding parameters. Note that the codes with distance less than 9, except that with distance 7, exceed the Gilbert-Varshamov bound. References [1] Aly, S.A., Klappenecker, S., Sarvepalli, P.K. On quantum and classical BCH codes, IEEE Trans. Inf. Theory 53 (2007) 1183-1188. [2] Andersen, H.E., Geil, O. Evaluation codes from order domain theory, Finite Fields Appl. 14 (2008) 92-123. [3] Ashikhmin, A., Barg, A., Knill, E., Litsyn, S. Quantum error-detection I: Statement of the problem, IEEE Trans. Inf. Theory 46 (2000) 778-788. [4] Ashikhmin, A., Barg, A., Knill, E., Litsyn, S. Quantum error-detection II: Bounds, IEEE Trans. Inf. Theory 46 (2000) 789-800. [5] Ashikhmin, A., Knill, E. Non-binary quantum stabilizer codes, IEEE Trans. Inf. Theory 47 (2001) 3065-3072. [6] Bierbrauer, J., Edel, Y. Quantum twisted codes, J. Comb. Designs 8(2000) 174-188. [7] Calderbank, A.R., Rains, E.M., Shor, P.W., Sloane, N.J.A. Quantum error correction and orthogonal geometry, Phys. Rev. Lett. 76 (1997) 405-409. [8] Calderbank, A.R., Rains, E.M., Shor, P.W., Sloane, N.J.A. Quantum error correction via codes over GF(4), IEEE Trans. Inf. Theory 44 (1998) 1369-1387. [9] Calderbank A.R., Shor, P. Good quantum error-correcting codes exist, Phys. Rev. A 54 (1996) 1098- 1105. [10] Chen, B., Ling, S. Zhang, G. Application of constancyclic codes to quantum MDS codes, IEEE Trans. Inf. Theory 61 (2015) 1474-1484. [11] Cox, D., Little, J., O’Shea, D. Ideals, Varieties, and Algorithms: An Introduction to Computational Algebraic Geometry and Commutative Algebra. Undergraduate Texts in Mathematics, forth edition. Springer-Verlag, 2015. [12] Dieks, D. Communication by EPR devices, Phys. Rev. A 92 (1982) 271. [13] Edel, Y. Some good quantum twisted codes. Online available at http://www.mathi.uni-hei- delberg.de/∼yves/Matritzen/QTBCH/QTBCHIndex.html. [14] Ekert, A., Macchiavello, C. Quantum error correction for communication, Phys. Rev. Lett. 77 (1996) 2585. [15] Feng, K. Quantum error correcting codes. In Coding Theory and Cryptology, Word Scientific, 2002, 91-142. [16] Feng, K., Ma, Z. A finite Gilbert-Varshamov bound for pure stabilizer quantum codes, IEEE Trans. Inf. Theory 50 (2004) 3323-3325. [17] Galindo, C., Hernando, F. Quantum codes from affine variety codes and their subfield subcodes, Des. Codes Crytogr. 76 (2015) 89-100. [18] Galindo, C., Hernando, F., Ruano, D. New quantum codes from evaluation and matrix-product codes, Finite Fields Appl. 36 (2015) 98-120. [19] Galindo, C., Hernando, F., Ruano, D. Stabilizer quantum codes from J-affine variety codes and a new Steane-like enlargement, Quantum Inf. Process. 14 (2015) 3211-3231. [20] Galindo, C., P´erez-Casales, R. On the evaluation codes given by simple δ-sequences, AAECC 27 (2016), 59-90. [21] Galindo C., Monserrat, F. Delta-sequences and evaluation codes defined by plane valuations at infinity, Proc. London Math. Soc. 98 (2009) 714-740. [22] Galindo C., Monserrat, F. Evaluation codes defined by finite families of plane valuations at infinity. Des. Codes Crytogr. 70 (2014) 189-213.