scieee AI-readable full text Open interactive document viewer

Quantum error-correcting codes from algebraic geometry codes of Castle type

Munuera Gómez, Carlos,Tenório, Wanderson,Torres, Fernando

Abstract

Producción Científica

Full text

QUANTUM ERROR-CORRECTING CODES FROM ALGEBRAIC GEOMETRY CODES OF CASTLE TYPE CARLOS MUNUERA, WANDERSON TEN´ ORIO, AND FERNANDO TORRES Abstract. We study Algebraic Geometry codes producing quantum error-correcting codes by the CSS construction. We pay particular attention to the family of Castle codes. We show that many of the examples known in the literature in fact belong to this family of codes. We systematize these constructions by showing the common theory that underlies all of them. 1. Introduction Quantum error-correcting codes are essential to protect quantum information. In the last years much research has been done to find good quantum codes following several ways. Calderbank and Shor [3], and Steane [22], showed that quantum codes can be derived from classical linear error-correcting codes verifying certain self-orthogonality properties [1], including Euclidean and Hermitian self-orthogonality. This method, known as CSS construction, has received a lot of interest and it has allowed to find many powerful quantum stabilizer codes. Among all the classical codes used to produce quantum stabilizer codes, Algebraic Geometry (AG) codes have received considerable attention [4, 7, 13, 14, 15, 16, 20, 21]. Conditions for Euclidean self-orthogonality of AG codes are well known [23] and allow us to translate the combinatorial nature of this problem into geometrical terms concerning the arithmetic of the involved curves. Furthermore, Hermitian self-orthogonality can be easily ensured in a similar manner. From among all curves used to get AG codes, we can highlight the family of Castle and weak Castle curves [19], that combine the good properties of having a reasonable simple handling and giving codes with excellent parameters. In fact, most of the one-point AG codes studied in the literature belong to the family of Castle codes. Besides these codes have, in a a natural way, self-orthogonality properties which are very close to those required for obtaining quantum stabilizer codes. It follows from the foregoing that many of the AG codes used to derive quantum codes are particular cases of weak Castle codes. In this article we systematize these constructions, including them in the overall framework 2000 Mathematics Subject Classification. 94B27, 81P70, 11T71. Key words and phrases. Quantum codes, Self-orthogonal codes, Algebraic geometry codes, Castle codes, Trace codes. 1 2 CARLOS MUNUERA, WANDERSON TEN ´ ORIO, AND FERNANDO TORRES of Castle codes. To this end, we show the common theory that underlies all of them and we include many examples, some of which refer to curves and codes already treated in the literature. The paper is organized as follows. In Section 2 we overview the constructions of quantum codes from classical codes. Section 3 is devoted to Algebraic Geometry codes, and mainly to Castle codes. These provide sequences of self-orthogonal and formally self-orthogonal codes that can be used to produce quantum codes. We give sufficient conditions for selfduality and study in detail some particular families of curves and codes. In Section 4 we show some parameters of quantum codes we have obtained from the curves presented in Section 3. Rather than obtaining codes with new or excellent parameters, we are interested in showing the common bases on which all of them are based. Finally in Section 5 we consider trace codes of AG codes defined over extensions of Fqand the quantum codes derived from them. Trace codes are closely related to subfield subcodes, from which have recently been obtained quantum codes with excellent parameters [7, 8]. As a notation, given a finite field Fq, we write F× q=Fq\{0}. Given a vector x∈Fn qand an integer t,xt= (xt 1, .., xt n) (when this makes sense). If X⊂Fn q, then Xt={xt:x∈X}. 2. Preliminaries on Quantum error-correcting codes Let qbe a prime power. A q-ary quantum error-correcting code of length nand dimension K≥1 is a K-dimensional linear subspace Qof Cqn, where Cis the field of complex numbers. If Qcan detect d−1 errors and correct bd−1c/2 errors, then it is usually referred as a quantum [[n, k, d]]qcode, where k= logq(K). q-ary quantum codes can be obtained from classical codes Cover Fqand over Fq2by the so-called CSS construction, as explained below. Quantum codes constructed in this way are stabilizer quantum codes. In this paper we are mainly interested in quantum codes obtained from classical algebraic geometry codes. For all facts concerning quantum codes and how to derive them from classical codes, we refer to [1, 15]. 2.1. Quantum codes from linear codes over Fq.We shall denote by h−,−i the usual (Euclidean) inner product in Fn q,ha,bi=Paibi. Given a linear code Cover Fq, the dual of Cis the code (1) C⊥={v∈Fn q:hv,ci= 0 for all c∈C}. Cis called self-dual if C=C⊥, and self-orthogonal if C⊆C⊥, that is if ha,bi= 0 for all a,b∈C. The so-called CSS code construction allows to obtain quantum codes from classical codes over Fqas follows [15, Cor. 2.15]. Theorem 2.1. Let C1, C2be two linear codes over Fqof length nand dimensions k1and k2respectively with C1⊆C2. Then there exists a [[n, k2−k1, d]]qcode with minimum distance d= min{wt(c) : c∈(C2\C1)∪(C⊥ 1\C⊥ 2)}. QUANTUM CODES FROM ALGEBRAIC GEOMETRY CODES OF CASTLE TYPE 3 Corollary 2.2. Let Cbe a self-orthogonal [n, k, d]code over Fq. Then there exists a [[n, n −2k, d]]qcode with minimum distance d= min{wt(c) : c∈(C⊥\C)} ≥ d(C⊥). This Corollary has been extensively used to ensure the existence of many quantum codes. In [14] Jin and Xing showed that for qeven, the orthogonality condition can be weakened in the sense that we can obtain self-orthogonal codes from other codes ”close” to be selforthogonal. To be more precise, let us denote by ∗the coordinatewise multiplication in Fn q, a∗b= (a1b1, . . . , anbn). Given an n-tuple xof nonzero elements in Fq, the map Fn q→Fn q, a7→ x∗a, is linear and bijective. Furthermore it is an isometry for the Hamming metric. For a linear code Cover Fq, we shall write x∗C={x∗c:c∈C}. Two codes C1and C2 over Fqare called formally equivalent (or twisted according other authors) if there exists x∈(F× q)nsuch that C1=x∗C2. Similarly, Cis called formally self-dual (respectively, formally self-orthogonal) if there exists x∈(F× q)n(the twist) such that x∗C=C⊥(resp. x∗C⊆C⊥). Next we shall show a construction of this type. Let C0= (0) ⊂C1⊂ ··· ⊂ Cn=Fn qbe an increasing sequence of n+ 1 linear codes in Fn q, where Cihas dimension iand minimum distance d(Ci). This sequence is called self-dual if C⊥ i=Cn−ifor all i, and formally self-dual if there exists x∈(F× q)nsuch that C⊥ i=x∗Cn−ifor all i. Given such a sequence, note that for i, j, with 1 ≤i≤j≤nwe have (2) C⊥ i\C⊥ j=x∗Cn−i\x∗Cn−j=x∗(Cn−i\Cn−j) and since coordinatewise multiplication by xis an isometry, we have (3) min{wt(c) : c∈x∗(Cn−i\Cn−j)}= min{wt(c) : c∈(Cn−i\Cn−j)}. Now, by applying Theorem 2.1, we obtain a quantum [[n, j −i, d]]qcode with minimum distance (4) d= min{wt(c) : c∈(Cj\Ci)∪(Cn−i\Cn−j)} ≥ min{d(Cj), d(Cn−i)}. 2.2. Quantum codes from linear codes over Fq2.We shall denote by h−,−iHthe Hermitian inner product in Fn q2,ha,biH=ha,bqi. The Hermitian dual of a linear code C⊆Fn q2is (5) C⊥H={v∈Fn q2:hv,cqi= 0 for all c∈C}= (Cq)⊥. Cis Hermitian self-orthogonal if C⊆C⊥H, or equivalently if Cq⊆C⊥. Raising to the q-th power we find that hv,cqi= 0 iff hvq,ci= 0, hence (Cq)⊥= (C⊥)qand so d(C⊥H) = d(C⊥). We can derive quantum codes from classical codes over Fq2as follows [15, Cor. 2.16]. Theorem 2.3. Let Cbe a linear code over Fq2of parameters [n, k, d]which is selforthogonal with respect to the Hermitian inner product. Then there exists a [[n, n−2k, d]]q quantum code with minimum distance d= min{wt(c) : c∈(C⊥H\C)} ≥ d(C⊥). 4 CARLOS MUNUERA, WANDERSON TEN ´ ORIO, AND FERNANDO TORRES Let C0= (0) ⊂C1⊂ ··· ⊂ Cn=Fn q2be an increasing sequence of n+ 1 linear codes in Fn q2. From Theorem 2.3 we have the following three procedures to obtain quantum codes over Fq. (A) When the sequence is self-dual then the theorem can be applied. As Cn=Fn q2, for given ilet q(i) be the smallest index such that Cq i⊆Cq(i). When i+q(i)≤nwe have Cq i⊆Cq(i)⊆Cn−i=C⊥ i, and hence we get a [[n, n −2i, ≥d(Cn−i)]]qcode. In later sections of this article we will get sequences of one-point AG codes for which it is possible to give an estimate of q(i) and consequently obtain quantum codes by this procedure. When the sequence C0= (0) ⊂C1⊂ ··· ⊂ Cn=Fn q2is formally self-dual but not selfdual, then there exists x∈(F× q)nsuch that C⊥ i=x∗Cn−ifor all i= 0, . . . , n. Following the aforementioned ideas of Jin and Xing, [14], we can still derive quantum codes in some cases, by slightly modifying the codes. Lemma 2.4. Let Cbe a linear code over Fand x∈(F×)n. Then x∗C⊥= (x−1∗C)⊥. Proof. Since both codes have equal dimension, it suffices to prove one inclusion. Let v∈x∗C⊥. There exists a∈C⊥such that v=x∗a. Then v∗x−1=a∈C⊥, hence 0 = h(v∗x−1),ci=hv,(x−1∗c)ifor all c∈C, so v∈(x−1∗C)⊥. (B) Suppose the twist xverifies x∈(F× q)n. Since the elements of Fqare precisely the (q+ 1)-th powers in Fq2, there exists y∈Fn q2such that yq+1 =x, or equivalently yq=y−1∗x. Consider the sequence y∗C0= (0) ⊂y∗C1⊂ ··· ⊂ y∗Cn=Fn q2. When i+q(i)≤nwe have (6) (y∗Ci)q=yq∗Cq i=y−1∗x∗Cq i⊆y−1∗x∗Cq(i)⊆y−1∗x∗Cn−i= (y∗Ci)⊥ and we can apply Theorem 2.3 to get a [[n, n −2i, ≥d(Cn−i)]]qquantum code. (C) To give a concrete example in which the condition x∈(F× q)nholds, we can consider the case in which there exists a self-dual sequence C0 0= (0) ⊂C0 1⊂ ··· ⊂ C0 n=Fn qof codes over Fqwith C0 i ⊥=x∗C0 n−iand such that C0, C1, . . . , Cnare the codes over Fq2 spanned by C0 0, C0 1, . . . , C0 n, respectively. In this situation it is clear that Ciand C0 ihave the same parameters, C⊥ i=x∗Cn−iand (Ci)q=Ci. Let y∈Fn q2such that yq+1 =xand consider now the sequence y∗C0= (0) ⊂y∗C1⊂ ··· ⊂ y∗Cn=Fn q2. For 2i≤nwe have (7) (y∗Ci)q=yq∗Ci=y−1∗x∗Ci⊆y−1∗x∗Cn−i=y−1∗Ci⊥= (y∗Ci)⊥ so we can apply Theorem 2.3 to get a [[n, n −2i, ≥d(Cn−i)]]qcode. 3. Algebraic Geometry codes and Castle codes As we have seen, in order to obtain a quantum code from a linear classical code C, we have to check the self-orthogonality (or Hermitian self-orthogonality) of Cand we have QUANTUM CODES FROM ALGEBRAIC GEOMETRY CODES OF CASTLE TYPE 5 to compute the dual distance d(C⊥) (resp. d(C⊥H)). Both tasks are difficult in general. For this reason, among all linear codes producing quantum codes, the class of Algebraic Geometry (AG) codes have received considerable attention [7, 8, 13, 14, 15, 21]. For these codes there is a simple criterion of self-orthogonality. In addition, certain families of AG codes allow efficient methods to estimate their minimum distances [9, 12, 17, 24]. Let us briefly remember the construction of AG codes (see [12, 17] for details and proofs). We pay particular attention to AG codes coming from Castle and weak Castle curves, that produce self-dual and formally self-dual sequences of codes in a natural way. 3.1. Algebraic Geometry codes. Let Xbe a nonsingular, projective, geometrically irreducible algebraic curve of genus gdefined over Fq. Take two rational divisors Dand G on Xwith disjoint supports and such that Dis the sum of nrational distinct points, D=P1+···+Pn. In what follows we shall assume n > 2g. The algebraic geometry code defined by the triple (X, D, G) is (8) C=C(X, D, G) = {(f(P1), . . . , f(Pn)) : f∈ L(G)} where L(G) = {f∈Fq(X)×:G+div(f)≥0}∪{0}is the Riemann-Roch space associated to G. The dimension and minimum distance of this code verify (9) k=`(G)−`(G−D), d ≥n−deg(G) + γa+1 where `(G) is the dimension of L(G), a=`(G−D) is the abundance of Cand for r≥1, γr= min{deg(A) : Ais a rational divisor on Xwith `(A)≥r}is the r-th gonality of X. From the residue theorem, it follows that the dual of an AG code is again an AG code. More precisely, C(X, D, G)⊥=C(X, D, D +W−G), where W= div(ω) is the divisor of a differential form ωwith simple poles and residue 1 at every point Piin the support of D. Thus Cis self orthogonal if G≤D+W−G. When Cis defined over the field Fq2, and since C(X, D, G)q⊆C(X, D, qG), Cis Hermitian self-orthogonal if qG ≤D+W−G. More generally, if ηis a differential form with simple poles at every point Piin supp(D), then C(X, D, D + div(η)−G) = x∗C(X, D, G)⊥, where xi6= 0 is the residue of ηat Pi. 3.2. One-point Algebraic Geometry codes. If Q∈ X(Fq) is a rational point not in the support of D, we can take G=mQ. The obtained code is called one-point. These are the most known and studied codes among the whole family of AG codes. Let L(∞Q) = ∪r≥0L(rQ) be the space of rational functions having poles only at Qand consider the evaluation map ev : L(∞Q)→Fn q, ev(f)=(f(P1), . . . , f(Pn)). The parameters of C(X, D, mQ) = ev(L(mQ)) are closely related to the Weierstrass semigroup of Q (10) S=S(Q) = {−vQ(f) : f∈ L(∞Q)}={0 = ρ1< ρ2<···} where vQis the valuation at Q. In what follows, for simplicity we shall write v(f) = −vQ(f). If for all i= 0,1,2, . . . we take a function fi∈ L(∞Q) such that v(fi) = ρi, then 6 CARLOS MUNUERA, WANDERSON TEN ´ ORIO, AND FERNANDO TORRES {f1, f2, . . . }is a basis of L(∞Q). From the set of codes {C(X, D, mQ) : m= 0, . . . , n+2g} we can extract an increasing sequence C0= (0) ⊂C1⊂ ··· ⊂ Cn=Fn q. This sequence is self-dual if the differential form ωwith simple poles and residue 1 at every point Piin supp(D) has zeros only at Q. This was first noted by Stichtenoth [23]. The sequence is formally self-dual if the divisors D+Wand (n+ 2g−2)Qare equivalent, that is when (n+ 2g−2)Q−Dis a canonical divisor, (n+ 2g−2)Q−D∼div(η), and then the twist is x= (resD(η)). 3.3. Castle curves and codes. Castle curves and codes were introduced in [19], where it is shown that many of the most interesting known examples of AG codes belong to this family. Let Xbe a curve defined over Fqand Qa rational point. The Lewittes bound [17] implies that #X(Fq)≤qρ2+ 1, where ρ2is the multiplicity of S(Q), that is the first nonzero element of S(Q). The pointed curve (X, Q) is called Castle if (C1) S(Q) is symmetric; and (C2) #X(Fq) = qρ2+ 1. Thus rational curves, Hermitian curves, Suzuki and Ree curves, etc., verify the Castle conditions. This family can be generalized in the following way: a pointed curve (X, Q) over Fqis called weak Castle if it satisfies the conditions (C1) S(Q) is symmetric; and (C20) let P1be the projective line over the algebraic closure of Fq. There exist a morphism f:X → P1with div∞(f) = `Q, and a set U={α1, . . . , αh} ⊆ Fqsuch that for all i= 1, . . . , h, we have f−1(αi)⊆ X(Fq) and #f−1(αi) = `. Castle curves are weak Castle: simply take f∈ L(∞Q) with v(f) = ρ2and U=Fq [19]. Conversely, in the above situation of (C2’), observe that `∈S(Q). Furthermore, since fis unramified over each αi, if we write f−1(αi) = {Pi 1, . . . , Pi `}, then div(f−αi) = P` j=1 Pi j−`Q. Let (11) D=DU,f = h X i=1 ` X j=1 Pi j. If (X, Q) is weak Castle and Dis the sum of all rational points different from Q, then it is said to be complete. The one-point codes C(X, D, mQ) of length n=`h are called weak Castle codes, or simply Castle codes if (X, Q) satisfies (C2). Example 3.1. Let qbe odd. A hyperelliptic curve Xover Fqis given by an equation y2=F(x), where Fis a squareless polynomial. If deg(F)=2g+ 1 then Xhas genus g and one hyperelliptic point at infinity, Q. Then Xis Castle iff F(α) is a nonzero square for all α∈Fq. For example, the curve y2=xq−x+1 has 2q+1 points and it is Castle for all q. Otherwise, if Xis not Castle, take U={α∈Fq:F(α) is a nonzero square in Fq}. Whenever U6=∅, (X, Q) is a weak Castle curve and provides codes of length n= 2#U. QUANTUM CODES FROM ALGEBRAIC GEOMETRY CODES OF CASTLE TYPE 7 Similarly, if qis even, a hyperelliptic curve Xof genus gover Fqis given by an equation y2+y=F(x), where F(x) is a rational function with deg(div0(F)),deg(div∞(F)) ≤ 2g+ 2. If Fis a polynomial there is one hyperelliptic point at infinity Qand Xis Castle or complete weak Castle. For example, the curves y2+y=xu, where q+ 1|uand 0< u ≤q2−1 are Castle over Fq2. Castle and weak Castle curves have several nice properties that can be translated to codes arising from them. Next we describe some ones which are relevant for our study. Proofs can be found in [19]. Proposition 3.2. Let (X, Q)be a weak Castle curve of genus gover Fqand C(X, D, mQ) a weak Castle code. The following hold. (1) The divisors Dand nQ are equivalent. Then for m < n,C(X, D, mQ)reaches the Goppa bound if and only if C(X, D, (n−m)Q)does. For m≥n,C(X, D, mQ)is an abundant code of abundance l((m−n)Q). (2) (2g−2)Qis a canonical divisor. In consequence (n+2g−2)Q−Dis also a canonical divisor and there exists x∈(F× q)nsuch that C(X, D, mQ)⊥=x∗C(X, D, m⊥Q), where m⊥=n+ 2g−2−m. (3) For i= 1, . . . , n, let mi= min{m:`(mQ)−`((m−n)Q)≥i}. Then Ci= C(X, D, miQ)has dimension iand the sequence C0= (0) ⊂C1⊂ ··· ⊂ Cn=Fn q is a formally self-dual sequence of codes. The twist xof item (2) does not depend on mand can be computed as showed in Section 3.2. It is also interesting to note that the set M={m1= 0, m2, . . . , mn}, is called the dimension set of (X, Q) and can be used to obtain good estimates on the minimum distance of codes C(X, D, miQ) by applying the order bound [9, 17]. When Xis weak Castle this set is easy to compute as M=S(Q)\(n+S(Q)). Thus, from a weak Castle curve we obtain in a natural manner a formally self-dual sequence of codes and consequently, by applying the procedures explained in Sections 2.1 and 2.2, a set of quantum stabilizer codes. To be precise, keeping the notation of Proposition 3.2, we have the following results. Corollary 3.3. Let (X, Q)be a weak Castle curve over Fqand let C0= (0) ⊂C1⊂ ··· ⊂ Cn=Fn qbe the sequence of codes obtained from it by Proposition 3.2(3). If 2i≤n then we have a quantum code of parameters [[n, n −2i, ≥d(Cn−i)]]q, with d(Cn−i)≥ m−mn−i+γa+1, where a=`((mn−i−n)Q)is the abundance of Cn−i. Proof. Apply construction (C) of Section 2.2 to the formally self-dual sequence C0⊂ ··· ⊂ Cn. The estimate on the minimum distance follows from the improved Goppa bound stated in equation (9).  8 CARLOS MUNUERA, WANDERSON TEN ´ ORIO, AND FERNANDO TORRES Corollary 3.4. Let (X, Q)be a weak Castle curve over Fq2such that the sequence C0= (0) ⊂C1⊂ ··· ⊂ Cn=Fn q2obtained by Proposition 3.2(3) is self-dual. If qmi≤mn−ithen we have a quantum code over Fqof parameters [[n, n −2i, ≥d(Cn−i)]]q, with d(Cn−i)≥ m−mn−i+γa+1, where a=`((mn−i−n)Q). Proof. Similar to the previous corollary, now applying construction (A) and taking into account that C(X, D, miQ)q⊆C(X, D, qmiQ).  3.4. Duality of Castle codes. In order to obtain quantum codes using the procedure (A) of Section 2.2, formal duality is not enough. In this subsection we give some sufficient conditions on curves verifying Castle assumptions in order to obtain codes satisfying the self-duality property. Given a pointed curve (X, Q) of genus g, satisfying the condition (C20), we consider the divisor Dof equation (11) and the intrinsic rational function φ:= Qh i=1(f−αi) related to f. As a notation, given an integer mwe write m⊥=n+2g−2−m. Lemma 3.5. Let (X, Q)be a pointed curve satisfying (C20). If div(dφ) = (2g−2)Q, then C(X, D, mQ)⊥=C(X, D, m⊥Q). Proof. Consider the differential form η=dφ/φ. From hypothesis we get div(η)=(n+ 2g−2)Q−D, and thus ηhas simple poles and residue 1 at P∈supp(D).  Proposition 3.6. Let (X, Q)be a pointed curve satisfying (C2) and let f∈ L(∞Q)such that v(f) = ρ2. If div(df) = (2g−2)Q, then C(X, D, mQ)⊥=C(X, D, m⊥Q). Proof. Since in this case φ=fq−f, we obtain div(dφ) = div(df) and thus the result follows from the previous lemma.  Corollary 3.7. Let (X, Q)be a pointed curve in the conditions of Lemma 3.5or Proposition 3.6. Then C(X, D, mQ)is Euclidean self-orthogonal if 2m≤n+ 2g−2. If qis a square, C(X, D, mQ)is Hermitian self-orthogonal if (√q+ 1)m≤n+ 2g−2. Corollary 3.8. Let (X, Q)be a pointed curve over Fq2in the conditions of Lemma 3.5 or Proposition 3.6. Let Mbe the dimension set of (X, Q). If (q+ 1)mi≤n+ 2g−2then we have a quantum code over Fqof parameters [[n, n −2i, ≥d(Cn−i)]]q, with d(Cn−i)≥ m−mn−i+γa+1, where a=`((mn−i−n)Q). Remark 3.9.Note that the conditions required by Proposition 3.6 are not verified by all Castle curves. Consider, for example, the hyperelliptic curve Xof equation y2=xq−x+1 over Fq,qodd of Example 3.1. Here ρ2= 2 which is the pole order of xat Q, and Xis Castle with f=xin the notation of Proposition 3.6. As the points Pover the x=α, for αa root of xq−x+ 1 in Fq, are also ramified, we have div(dx)6= (2g−2)Q. On the contrary, for the curves y2+y=xu, where q+ 1|u, over Fq2of Example 3.1, a simple computation shows that div(dx) = (2g−2)Q, hence they provide self-dual sequences of codes. QUANTUM CODES FROM ALGEBRAIC GEOMETRY CODES OF CASTLE TYPE 9 3.5. Curves defined by separate equations. Next we consider the family of curves having a plane model given by a separated variable equation F(y) = G(x), where Fand G are univariate polynomials of coprime degrees. The particular case in which one of the polynomials is linearized is interesting since it contains many of the most relevant curves for Coding Theory purposes. For instance, several of the curves studied below were already treated in [23]. Remember that a polynomial Fis called linearized (or a q-polynomial) if the exponents of all monomials are powers of q. Proposition 3.10. Let Xbe the curve defined over Fqby the equation F(y) = G(x), where Fand Gare polynomials of degrees a= deg(F), b = deg(G)with gcd(a, b) = 1. Let Qbe the common pole of xand yand ρ2the multiplicity of S(Q). Then (1) The genus of Xis g= (a−1)(b−1)/2. (2) The Weierstrass semigroup of Qis S(Q) = ha, bi. In particular S(Q)is symmetric and ρ2= min{a, b}. (3) If Fis a linearized separable polynomial, then div(dx) = (2g−2)Q. If b>athen ρ2=aand there exists f:X → P1with div∞(f) = ρQ and div(df) = (2g−2)Q. Proof. (1) It follows from the Riemann-Hurwitz-Zeuthen genus formula. (2) From the equation of Xwe have av(y) = bv(x) and since (a, b) = 1 we conclude that v(y) = b, v(x) = a, hence S(Q)⊇ ha, bi. Since the genus of ha, biis gwe get equality. As all semigroups generated by two elements are symmetric, the statement follows. (3) Since Fis linearized, its derivative is a constant what implies that Qis the only point of X which ramifies over the morphism x. Using div(dx) = −2div∞(x) + Rx, where Rxis the ramification divisor of the morphism x, we obtain the equality between the divisors. To see the last statement it is enough to take f=x. Proposition 3.10 gives a large family of curves verifying the conditions of Proposition 3.6, and hence providing self-dual sequences of Castle and weak Castle codes. Concrete examples of relevant Castle curves used in Coding Theory belonging to this family include those already mentioned above: Hermitian curve, Norm-Trace curve, etc. Recall, however, that not all Castle curves satisfying the conditions of Proposition 3.6 belong to this family. For instance, this happens to the Ree curve [19]. Next we show some examples of curves in the conditions of Lemma 3.5. Example 3.11. Let Xbe the curve given by (12) yqr−1+yqr−2+···+yq+y=xu defined over Fqrwith u|(qr−1)/(q−1). We shall see that it is a weak Castle curve with qr−1(u(q−1)+1)+1 rational points and genus g= (u−1)(qr−1−1)/2. Note that this curve is covered by the Norm-Trace curve over Fqr; indeed, it is a quotient curve of the Norm- Trace curve by the cyclic group of automorphisms generated by (x, y)7→ (ζx, y), where ζ is a primitive u-th root of unity. Also this equation includes many other interesting curves 16 CARLOS MUNUERA, WANDERSON TEN ´ ORIO, AND FERNANDO TORRES exactly the same as the condition of Proposition 5.6(1), to ensure the self-orthogonality of tr(C). Thus, in some sense, the construction of quantum codes from traces of selforthogonal codes, extends to r > 2 the construction of quantum codes from Hermitan self-orthogonal codes over Fq2. Note also that besides considering traces tr(C(X, D, mQ)), we can use ’incomplete’ traces, that is subcodes generated by some (but not all) elements of ev(B0 m). In many cases these subcodes can provide quantum codes with better parameters than trace codes themselves. Example 5.8. Consider the elliptic Hermitian curve X:y2+y=x3with 9 rational points over F4and let αbe a primitive element of F4over F2. The trace code tr(C(X, D, 3Q)) = h1,ev(tr(x)),ev(tr(αx)),ev(tr(y)),ev(tr(αy))ihas dimension 5 and dual distance 4. Thus it cannot be self-orthogonal. Remove the generator ev(tr(y)). Then we get a self-dual code of dimension 4 whose dual distance is also 4, that gives a quantum [[8,0,4]]2code whose parameters cannot be improved [10]. Furthermore this code cannot be obtained from Xby using Hermitian self-orthogonality and construction (A). In the same way, consider the Hermitian curve over Fq2rwith q3r+ 1 points. The dual distance of the code C(X, D, (qr+ 1)Q) can be computed by using the order bound. Consider the trace tr(C(X, D, (qr+ 1)Q)) of this code over Fqof dimension 2r+ 1 and remove at most r−1 generators from ev(tr(y)),...,ev(tr(αr−1y)) in order to obtain a self-orthogonal code with the same dual distance as tr(C(X, D, (qr+ 1)Q)). Direct computations show that we get quantum codes [[64,50,4]]‡ 2, [[512,492,4]]‡ 2, [[27,19,3]]† 3, [[729,715,3]]† 3, [[64,56,3]]† 4, [[125,117,3]]† 5, [[343,335,3]]† 7, [[512,504,3]]† 8, [[729,721,3]]† 9, reaching good parameters in all cases. The same procedure can be carried out by using codes from other curves. For example, from the Norm-Trace curve over Fqrwe obtain quantum codes [[32,20,4]]‡ 2, [[128,112,4]]‡ 2, etc. acknowledgements The first author was supported by Spanish Ministerio de Econom´ıa y Competitividad under grant MTM2015-65764-C3-1-P MINECO/FEDER. The second and third authors were supported by CNPq-Brazil under grants 201584/2015-8 and 308326/2014-8 respectively. This paper was written partially during a visit of the second and third authors to the University of Valladolid. Both wish to thank the institution for the hospitality and support. The authors are grateful to the anonymous referees for their invaluable comments and suggestions which substantially helped improving the quality of this paper. References [1] Ashikhim, A., Knill, E.: Non-binary quantum stabilizer codes. IEEE Transactions on Information Theory 47, 3065-3072 (2001). [2] Edel, Y.: Some good quantum twisted codes. Online available at http://www.mathi.uniheidelberg.de/∼yves/Matrizen/QTBCH/QTBCHindex.html QUANTUM CODES FROM ALGEBRAIC GEOMETRY CODES OF CASTLE TYPE 17 [3] Calderbank, A.R., Shor, P.W.: Good quantum error-correcting codes exist. Physical Review A 54, 1098-1105 (1996). [4] Chen, H.: Some good quantum error-correcting codes from algebraic geometry codes. IEEE Transactions on Information Theory 47, 2059-2061 (2001). [5] Cossidente, A., Korchm´aros, G., Torres, F.: On curves covered by the Hermitian curve. J. Algebra 216(1), 56-76 (1999). [6] Feng, K., Ma, Z.: A Finite Gilbert-Varshamov Bound for Pure Stabilizer Quantum Codes. IEEE Transactions on Information Theory 50, 3323-3325 (2004). [7] Galindo, C., Hernando, F.: Quantum codes from affine variety codes and their subfield-subcodes. Designs, Codes and Cryptography 76(1), 89-100 (2015). [8] Galindo, C., Hernando, F., Ruano, D.: Stabilizer quantum codes from J-affine variety codes and a new Steane-like enlargement. Quantum Information Processing 14(9), 3211-3231 (2015). [9] Geil, O., Munuera, C., Ruano, D., Torres, F.: On the order bounds for one point codes. Advances in Mathematics of Communications 5(3), 489-504 (2011). [10] Grassl, M.: Bounds on the minimum distance of linear codes and quantum codes. Online available at http://www.codetables.de. [11] Hirschfeld, J., Korchm´aros, G., Torres, F.: Algebraic curves over a finite field. Princeton Series in Applied Mathematics. Princeton University Press, Princeton (2008). [12] Høholdt, T., van Lint, J.H., Pellikaan, R.: Algebraic Geometry codes. In: Handbook of Coding Theory, vol. 1, 871-961. Pless, V., Huffman, W.C. (Eds.). Elsevier, Amsterdam, (1998). [13] Jin, L.: Quantum stabilizer codes from maximal curves. IEEE Transactions on Information Theory 60(1), 313-316 (2014). [14] Jin, L., Xing, C.P.: Euclidean and Hermitian self-orthogonal Algebraic Geometry codes and their application to Quantum codes. IEEE Transactions on Information Theory 58(8), 5484-5489 (2012). [15] Kim, J., Mathews, G.L.: Quantum error-correcting codes from algebraic curves. In: Advances in Algebraic Geometry codes, 419-444. Martinez, E., Munuera, C., Ruano, D. (Eds.). Word Scientific, Hackensack (2008). [16] Kim, J., Walker, J.: Nonbinary quantum error-correcting cods from algebraic curves. Discrete Mathematics 308, 3115-3124 (2008). [17] Olaya, W., Munuera, C.: An introduction to Algebraic Geometry codes. In: Algebra for Secure and Reliable Communication Modeling, 87-117. Lahyane, M., Martinez, E. (Eds.). Contemporary Mathematics 642, American Mathematical Society, Providence (2015). [18] Magma Computational Algebra System. Online available at http://magma.maths. usyd.edu.au/magma/. [19] Munuera, C., Sepulveda, A., Torres, F.: Castle curves and codes. Advances in Mathematics of Communications 3, 399-408 (2009). [20] Sarpevalli, P.K., Klappenecker, A.: Nonbinary quantum codes from Hermitian curves. In: Applied Algebra, Algebraic Algorithms and Error-Correcting Codes, 136-143. Lecture Notes in Computer Science 3857, Springer, Berlin (2006). [21] Shaska, T.: Quantum codes from algebraic curves with automorphisms. Condensed Matter Physics 11(2) (2008), 383-396 (2008). [22] Steane, A.M.: Multiple-particle interference and quantum error correction. Proceedings of the Royal Society of London-Series A 452, 2551-2557 (1996). [23] Stichtenoth, H.: Self-dual Goppa codes. Journal of Pure and Applied Algebra 55(1-2), 199-211 (1988). [24] Stichtenoth, H.: Algebraic Function Fields and Codes. Springer-Verlag, Berlin (1993). 18 CARLOS MUNUERA, WANDERSON TEN ´ ORIO, AND FERNANDO TORRES Department of Applied Mathematics, University of Valladolid, Avda Salamanca SN, 47014 Valladolid, Castilla, Spain E-mail address:[email protected] University of Campinas (UNICAMP), Institute of Mathematics, Statistics and Computer Science (IMECC), R. S´ ergio Buarque de Holanda, 651, Cidade Universit´ aria “Zeferino Vaz”, 13083-059, Campinas, SP, Brazil E-mail address:[email protected] University of Campinas (UNICAMP), Institute of Mathematics, Statistics and Computer Science (IMECC), R. S´ ergio Buarque de Holanda, 651, Cidade Universit´ aria “Zeferino Vaz”, 13083-059, Campinas, SP, Brazil E-mail address:[email protected]