scieee AI-readable full text Open interactive document viewer

Entanglement-assisted quantum error-correcting codes from RS codes and BCH codes with extension degree 2

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

Abstract

Producción Científica

Full text

ENTANGLEMENT-ASSISTED QUANTUM ERROR CORRECTING CODES FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO Abstract. Entanglement-assisted quantum error correcting codes (EAQECCs) constructed from Reed-Solomon codes and BCH codes are considered in this work. It is provided a complete and explicit formula for the parameters of EAQECCs coming from any Reed-Solomon code, for the Hermitian metric, and from any BCH code with extension degree 2 and consecutive cyclotomic cosets, for both the Euclidean and the Hermitian metric. The main task in this work is the computation of a completely general formula for c, the minimum number of required maximally entangled quantum states. 1. Introduction Quantum error correcting codes (QECCs) are mostly defined using classical linear codes [4, 13]. They were first introduced over the binary field and then the construction was extended to an arbitrary finite field [15]. Namely, QECCs over Fq, the finite field with qelements, are usually constructed from self-orthogonal classical codes. We can consider classical codes over Fqif we decide to use the Euclidean metric, and over Fq2, when using the Hermitian metric. Brun, Dvetak and Hsieh in [2] proposed to share entanglement between encoder and decoder to simplify the theory of quantum error-correction and increase the communication capacity, giving rise to entanglement-assisted quantum error correcting codes (EAQECCs). An important advantage of this new construction is that one may consider an arbitrary classical linear code, without the self-orthogonality restriction. EAQECCs were also first defined over the binary field and then the construction was extended to an arbitrary finite field [11]. The main difficulty for determining the parameters of an EAQECC, with respect to QECCs, is the computation of the parameter c, the minimum number of required maximally entangled quantum states in Cq⊗Cq. Computationally speaking, given a concrete EAQECC, the computation of cis not intense but it is a difficult task to provide a formula for a given family of codes. This is the main goal of the article. Several articles have explored the construction of EAQECCs from classical linear codes as binary BCH codes [18, 21, 8], constacyclic codes [17, 27], constacylic LCD codes [24], cyclic codes [25], generalized Reed-Solomon codes [19, 20, 14], negacyclic BCH codes [6, 7] and algebraic-geometry codes [23]. These papers address particular cases and determine Key words and phrases. EAQECC; entanglement-assisted quantum codes; Reed-Solomon codes; BCH codes; subfield subcodes; cyclotomic cosets. Published in Quantum Information Processing 20, 158 (2021). This work was supported in part by the Spanish MICINN/FEDER grants PGC2018-096446-B-C21, PGC2018-096446-B-C22 and RED2018- 102583-T, by the Spanish MINECO grant RYC-2016-20208 (AEI/FSE/UE), by the Junta de CyL (Spain) grant VA166G18, by the Generalitat Valenciana (Spain) grant AICO-2019-223 and by Universitat Jaume I grant P1-1B2018-10. 1 2 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO their parameters but no general formula for the parameters of EAQECCs using the previous families of codes is known. A more general procedure is given in [22], which provides parameters for EAQECCs obtained from Reed-Solomon (RS) codes both for the Euclidean and Hermitian metric, however not all RS codes in the Hermitian case are considered. In this regard and in this paper, we give a formula for the parameters of all the EAQECCs that can be obtained from RS codes with respect to the Hermitian metric (see Section 4). The main aim of this article is to consider BCH codes over an arbitrary field Fq, that can be understood as cyclic codes but also as subfield subcodes of RS codes. We consider BCH codes defined from consecutive cyclotomic cosets and hence we can bound their minimum distance by the well-known BCH bound. We give a complete and explicit formula for the parameters of the EAQECCs coming from any BCH code (defined by consecutive cyclotomic cosets) with extension degree 2, both for the Euclidean and the Hermitian metric. Moreover, we also determine the parameters when we extend the classical codes by evaluating at zero. With our formulae the reader can easily determine the parameters of the EAQECCs obtained as mentioned. The computation of cis performed following the geometric decomposition of a linear code [26], that was stated in [11] for EAQECCs. The computations are carried out by a careful analysis of the involved cyclotomic cosets and the q-adic decomposition of its elements that allow us to compute the geometric decomposition of a linear code. The geometric decomposition of a linear code endowed with a inner product provides a basis of the code included in a specific basis of the ambient linear space. This last basis {vi}i∈I satisfies that each viis either orthogonal to vjfor all j6=i(symmetric) or orthogonal to vjfor all jexcept for a unique reciprocal element vkwith k6=i(asymmetric). This means that one can determine the hull, or radical, of the linear code easily. In this article, we compute such a decomposition by identifying symmetric and asymmetric cosets (see Definition 4) with respect the inner product considered. We notice that the method is similar to the one in [18] for quaternary BCH codes. In Section 5, we give a general formula for the parameters of EAQECCs coming from BCH codes with the Euclidean metric and extension degree 2. We show that they have parameters that are worse than the ones obtained with RS codes with Hermitian metric (studied in Section 4). Namely, they have the same length, q2−1 or q2, and bound for the minimum distance but the dimension is lower for BCH codes with the Euclidean metric. However, BCH codes with the Euclidean metric have still some interest since one may obtain codes whose parameter cis greater than the one obtained with RS codes. In this way, we increase the constellation of known EAQECCs that is limited at this moment. Moreover, the computation of cfor BCH codes with the Euclidean metric helps understanding the computation of cfor BCH codes with the Hermitian metric treated in Section 6, that is rather technical. Finally, the main results of this article are given in Section 6, where BCH codes with the Hermitian metric and extension degree 2 are considered. We give a completely general formula for their parameters. Furthermore, using that formula we present some EAQECCs with good parameters, by giving tables of them over different finite fields whose parameters exceed the Gilbert-Varshamov (GV) bound [11]. We also compare their parameters with the codes available in the literature, when it is possible. We obtain long codes over Fq, with length q4−1 and q4, and with good parameters [[n, k, d;c]]q. Our codes satisfy k > c and thus, they give rise to catalytic quantum codes [3]. Note that one cannot consider the Singleton bound, n+ 2 ≥k+ 2d+c, for EAQECCs defined over a non-binary field since EAQECC FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 3 that bound is only proved for codes defined over a binary field with d≤(n+ 2)/2 [16], despite several articles in the literature consider it for arbitrary fields. The article is organized as follows: we introduce RS and BCH codes in Section 2 and EAQECCs coming from them in Section 3. Section 4 is devoted to the study of EAQECCs from RS codes with respect to the Hermitian metric. To conclude, EAQECCs obtained from BCH codes with extension degree 2 are presented in Section 5 in the Euclidean case and in Section 6 for the Hermitian case. 2. RS and BCH codes We introduce RS codes and BCH codes in this section. We regard BCH codes as subfield subcodes of evaluation codes as in [1, 5] instead of as cyclic codes. This construction has the advantage that it can be extended to evaluation by polynomials in several variables. Let pbe a prime number and consider the finite field Fp`with p`elements. Let n=p`−1 and Fp`[X] the ring of polynomials in one variable with coefficients in Fp`. Consider classes of univariate polynomials in the quotient ring Fp`[X]/J, where Jis the ideal of Fp`[X] generated by Xn−1. Define ev : Fp`[X]/J →Fn p`; ev(f)=(f(P1), f(P2), . . . , f(Pn)) , where Z={P1, P2, . . . , Pn}is the zero locus of Jin Fp`. Let ∆ be a subset of H:= {0,1, . . . , n −1}. Then the RS code, D∆⊆Fn p`, is the code generated by ev Xi|i∈∆. Usually one considers ∆ = {0,1, . . . , k −1}and the RS code has parameters [p`−1, k, p`− k]q. Moreover, one can extend the previous code by evaluating at 0 as well and therefore, one obtains a code with parameters [p`, k, p`+ 1 −k]q. Let rbe a positive integer such that rdivides `. We consider first codes over the field Fp`and then their subfield subcodes over the field Fpr. BCH codes can be defined as subfield subcodes of the form D∆∩(Fpr)nand extend RS codes in the sense that one can consider that a RS code is a BCH with extension degree one, that is, r=`. This is why we may consider the same notation for both families of codes in this article. In the ring Zn, we consider minimal cyclotomic cosets with respect to q=pr, minimal means that it contains exactly the elements of the form xqt,t≥0, in Znfor some x∈Zn under the identification Zn=H. We denote by Ixthe minimal cyclotomic coset {xqt:t≥ 0}. For every minimal cyclotomic coset, pick its least element, then let Abe the set of all minimal representatives and {Ix}x∈A is the set of minimal cyclotomic cosets with respect to q. Moreover, let ix:= #(Ix), with # denoting the cardinality of a set. For convenience, we write A={m0= 0 < m1< m2<· · ·} ={mj}z j=0. We will use the following two results which can be found in [10, 9]. Proposition 1. Set ∆ = ∪t j=t0Imj,t0< t. Then the subfield-subcode of D∆over Fq, E∆=D∆|Fq=E∆∩(Fq)n, has dimension Pt j=t0imj. The forthcoming Proposition 2 uses duality with respect to the two metrics we consider in this work. These metrics are induced by two inner products: the Euclidean inner product, where x·y=Pn i=1 xiyiand the source code is defined over the finite field with q elements, and the Hermitian inner product, where x·y=Pn i=1 xiyq iand the source code 4 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO is defined over the finite field with q2=prelements (for a suitable rthat divides `); in this last case, we have to replace qwith q2in the above description. Both cases, will allow us to obtain EAQECCs over the finite field with qelements by [11]. For the sake of clarity, we consider a toy example through the article only for illustrating the main concepts and notation. Example 1. Let p= 2, `= 4 and r= 2. We consider the Hermitian inner product, thus q2=pr= 4 and n=p`−1 = 15. The cyclotomomic cosets in Z15 with respect to 4 are: I0={0}, I1={1,4}, I2={2,8}, I3={3,12}, I5={5}, I6={6,9}, I7={7,13}, I10 ={10}, I11 ={11,14}. And therefore, the set of all minimal representatives is A={0,1,2,3,5,6,7,10,11}. Proposition 2. The minimum distance of the (Euclidean or Hermitian) dual code of E∆, C∆, where ∆ = ∪t j=0Imj, is larger than or equal to mt+1 + 1 (BCH bound). Therefore for ∆ = ∆(t) = ∪t j=0Imj, the code C∆is known as a BCH code and it has parameters [n, n −Pt j=0 imj,≥mt+1 + 1]pr. For the Euclidean case, set I⊥ x:= In−xand define ∆(t)⊥:= (Im0∪Im1∪ · · · ∪ Imt)⊥ := H \ (I⊥ m0∪I⊥ m1∪ · · · ∪ I⊥ mt) =H \ (In−m0∪In−m1∪ · · · ∪ In−mt). Analogously, for the Hermitian case with base field Fq2, we set I⊥ x:= In−qx and ∆(t)⊥:= H \ (In−qm0∪In−qm1∪ · · · ∪ In−qmt). With the above notations, by [12, 9], it holds C∆(t)=E⊥ ∆(t)=E∆(t)⊥. Example 2. This is a continuation of Example 1 with p= 2, `= 4, r= 2, q2= 4 and n= 15, we consider the Hermitian inner product. Let t= 6, then m6= 7 and ∆(6) = I0∪I1∪I2∪I3∪I5∪I6∪I7. Moreover, we have that ∆(6)⊥=H \ (In−0q∪In−1q∪In−2q∪In−3q∪In−5q∪In−6q∪In−7q) ={0,1,...,14} \ (I0∪I7∪I11 ∪I6∪I5∪I3∪I1) =I2∪I10. Therefore, C∆(6) =E∆(6)⊥has parameters [15,3,11]4. As for RS codes, we can extend BCH codes by evaluating at 0 as well. Then we obtain a code with parameters [n+ 1, n + 1 −Pt j=0 imj,≥mt+1 + 1]pr. In this paper, we only consider extension degree 1 or 2 (i.e., `=ror `= 2r) and the length nof our codes will be p`−1 or p`. 3. EAQECC We compute in this section parameters of entanglement-assisted quantum error correcting codes coming from RS codes and BCH codes. As we have mentioned in the previous section, for easing the notation, we consider RS codes as BCH codes with extension degree 1. That is, for RS codes one has that r=`,n=p`−1 = pr−1, and all the cyclotomic cosets have size 1. From Corollary 1 and Theorem 4 in [11], we have EAQECC FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 5 Theorem 3. Let Ebe a linear code over Fq(over Fq2) with length nand dimension kand let Cbe its Euclidean (Hermitian) dual code that has minimum distance d. Then there exists an EAQECC with parameters [[n, n −2k+c, d;c]]q, where c= dim E−dim(E∩C). This implies that, for ∆ = ∆(t) = ∪t j=0Imj, there exists an EAQECC with parameters [[n, n −2 t X j=0 imj+c, ≥mt+1 + 1; c]]q. Hence, the only task for completely determining its parameters remains computing c. It is not feasible to give a formula for cin the general case. The aim of this article is to provide closed formulas for extension degree equal to 1 (RS codes) and 2. Thus, assuming that we do not evaluate at 0, in the first case `=r,n=q−1 when considering codes over Fqand Euclidean duality and n=q2−1 when we use codes over Fq2and Hermitian duality, and in the second case `= 2r,n=q2−1 when we consider subfield subcodes over Fqfrom codes over Fq2and Euclidean duality and n=q4−1 when we use subfield-subcodes over Fq2from codes over Fq4and Hermitian duality. For RS codes, one can find a formula for cin [22] for the Euclidean case and a partial result for the Hermitian case. We give a general formula for the Hermitian case in the next section. First, we need to introduce some notation. Definition 4. We say that a minimal cyclotomic coset is symmetric if I⊥ x=In−x=Ixin the Euclidean case (I⊥ x=In−qx =Ix, in the Hermitian case), and asymmetric otherwise. Let Ixbe asymmetric and Iy=In−x(Iy=In−qx, in the Hermitian case). Moreover, assume that xand yare the minimal representatives of Ixand Iy, respectively. Without loss of generality, we may assume that x < y, then we say that Ixand Iyare asymmetric reciprocal cosets, that Ixis the first reciprocal asymmetric coset (FR-asymmetric coset) and that Iyis the second reciprocal asymmetric coset (SR-asymmetric coset). Let IRconsists of the asymmetric cosets in ∆ whose reciprocal coset does not belong to ∆ and ILof the symmetric cosets in ∆ and the asymmetric cosets whose reciprocal coset belongs to ∆ as well. We have that ∆ = ∆(t) = IRtIL(that is, ∆ = IR∪ILand IR∩IL=∅), and in this way it holds that EIR=E∆∩E⊥ ∆is the hull, or radical, of E∆ since E⊥ ∆=E∆⊥(see the paragraph after Proposition 2). Note that IRand ILare a union of minimal cyclotomic cosets. In this way, the value cis given by #IL(see Section 2 in [11] for more details) since c= dim E∆−dim (E∆∩C∆) = #∆ −#(∆ ∩∆⊥) = #∆ −#(IR) = #(IL). For a cyclotomic coset Ixthat belongs to IR, we have that Ix⊆∆⊥and, on the other hand, for a cyclotomic coset Ixthat belongs to IL, we have that Ix6⊆ ∆⊥. Therefore, for obtaining regular quantum codes, one considers a set ∆ such that IL=∅and hence E∆⊆E⊥ ∆. On the contrary, for constructing LCD codes, one considers a set ∆ such that IR=∅and hence E∆∩E⊥ ∆={0}. Remark 5. Notice that since we are considering consecutive minimal cyclotomic cosets for constructing our codes, the cardinality of ILwill be given by the cardinality of the symmetric cosets in ∆ plus two times the cardinality of the SR-asymmetric cosets in ∆. 6 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO Example 3. This is a continuation of Examples 1 and 2, with p= 2, `= 4, r= 2, q2= 4, n= 15, t= 6 and m6= 7, where we consider the Hermitian inner product. The symmetric cosets in Z15 are I0={0},I5={5},I10 ={10}and the pairs of asymmetric cosets are: I1={1,4}(FR-asymmetric) and I7={7,13}(SR-asymmetric), I2={2,8}(FR-asymmetric) and I11 ={11,14}(SR-asymmetric), and I3={3,12}(FR- asymmetric) and I6={6,9}(SR-asymmetric). Thus, for ∆ = ∆(6) = I0∪I1∪I2∪I3∪I5∪I6∪I7=IRtIL, we have that IR=I2,and IL=I0∪I1∪I3∪I5∪I6∪I7, because IL=I2since I2is an FR-asymmetric coset whose reciprocal coset, I11, does not belong to ∆ and because ILis a union of symmetric cosets, I0and I5, and pairs of asymmetric cosets, I1and I7and I3and I6included in ∆. Therefore, c= #IL= 10. Moreover, by Remark 5, one can alternatively compute cby considering the cardinality of the symmetric cosets, I1and I5, plus two times the cardinality of the SR-asymmetric cosets, I6and I7in ∆: 1 + 1 + 2(2 + 2) = 10. This second form of computing cis the method that we follow in the rest of the article to obtain a general formula for c. In particular, for this code, cmay be computed following our forthcoming Theorem 26, case (2), since (q4−1)/(q+ 1) = 5 ≤mt< q3+q= 10. Finally, one has that considering ∆ = ∆(6), one obtains an EAQECC with parameters   n, n −2 t X j=0 imj+c, ≥mt+1 + 1; c  2 = [[15,1,≥11; 10]]2.  Furthermore, we can also consider RS codes and BCH codes where we evaluate at zero to construct EAQECC, that is, the ideal Jat the beginning of Section 2 is generated by Xn+1 −X. In this case, we obtain an EAQECC with parameters   n+ 1, n −2 t X j=0 imj+c, ≥mt+1 + 1; c−1  q , because the length is increased by one unit and the parameter cis decreased by one unit since the cyclotomic coset I0={0}is symmetric when we do not evaluate at zero and it is FR-asymmetric otherwise by [9] (because the reciprocal coset of I0={0}is Inthat is not contained in H). The dimension of the EAQECC remains therefore the same as before. This allows us to increase the constellation of codes that we may construct. 4. Hermitian RS codes We give in this section a general formula for cin the case of EAQECCs coming from RS codes with respect to the Hermitian metric. Theorem 6. Let ∆ = {0,1, . . . , t}⊆Hand consider the RS code D∆=E∆over Fq2. Let b0+b1qbe the q-adic expression of t, then the parameters of the corresponding EAQECC are: [[q2−1,(q−b1)2−2b0−2, t + 2; b2 1+ 1]]q when b0+b1< q −1. And [[q2−1,(q−b1−1)2, t + 2; b2 1+ 2(b0+b1−q) + 4]]q otherwise (b0+b1≥q−1). EAQECC FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 7 Proof. We start by noticing that, in this case and with the notation as in Section 2, every considered coset has cardinality one and mt=t. By Theorem 3, it suffices to compute the value ccorresponding to the entanglement and by Remark 5 we need to decide which values ain ∆ determine a symmetric coset (contributing one to c) and which ones determine SR-asymmetric cosets (contributing two in the computation of the value c). Let a∈∆, with q-adic expression a=a0+a1q, then arepresents an SR-asymmetric (respectively, a symmetric) coset if and only if a0+a1< q −1 (respectively, a0+a1= q−1). Indeed, arepresents an SR-asymmetric (respectively, a symmetric) coset if and only (q2−1) −qa < a (respectively, (q2−1) −qa =a). Noticing that the q-adic expression of q2−1 is (q−1)q+(q−1) and that of qa is qa =a1+a0q, the result follows straightforwardly. Then for computing cwe only need to compute twice number of values (in ∆) a= a0+a1q, 0 ≤a0, a1≤q−1 such that a0+a1≥q−1 plus the number of values (in ∆) a=a0+a1q, 0 ≤a0, a1≤q−1 such that a0+a1=q−1. ∆ contains the number 0 whose coset is symmetric, thus we add 1 to our computations. The number of elements agiving rise to symmetric cosets satisfying a1≤b1−1 equals to b1because each value a1determines the corresponding a0. Next, we compute how many values asatisfy a0+a1≥q−1 and a1≤b1−1. Since for any fixed a1, it holds that a0satisfies q−1−a1< a0≤q−1, the number of solutions is Pb1−1 a1=0 a1. This sum equals (1/2)b1(b1−1) giving a contribution to cof b1(b1−1). We have proved the first part of the result because we have obtained c= 1+b1(b1−1)+b1= 1+b2 1. Note that we cannot obtain a0+a1≥q−1 when b0+b1< q −1 and a1=b1. For proving our second statement, where b0+b1≥q−1, it suffices to add to the value 1 + b2 1twice the number of integers awith q-adic expression a0+b1q,a0≤b0, such that a0+b1> q −1 plus the number of integers awith q-adic expression a0+b1qsuch that a0+b1=q−1, which is exactly one. As a consequence, c= 1 + b2 1+ 2(b0+b1−q+ 1) + 1 = b2 1+ 2(b0+b1−q)+4.  Considering the ideal Jintroduced in Section 2 but now generated by Xn+1 −Xinstead of Xn−1, a very similar argument proves the following result. Theorem 7. Let ∆ = {0,1, . . . , t}⊆Hand consider the RS code D∆=E∆over Fq2. Set t=b0+b1q, then the parameters of the corresponding EAQECC are: [[q2,(q−b1)2−2b0−2, t + 2; b2 1]]q when b0+b1< q −1. And [[q2,(q−b1−1)2, t + 2; b2 1+ 2(b0+b1−q) + 3]]q otherwise (b0+b1≥q−1). Remark 8. In [22, Theorem 5], parameters for EAQECCs with length q2coming from Reed-Solomon codes were given for some intervals. Hence, our Theorem 7 extends [22, Theorem 5] in the sense that we consider all possible cases. 5. Euclidean BCH EAQECC with extension degree 2 We consider in this section BCH codes over Fqwith extension degree equal to 2. Hence, the cyclotomic cosets have one or two elements. Namely, n=q2−1, q=prand l= 2r, and the cyclotomic coset whose minimal representative is xis equal to Ix={x, xq}. In 8 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO addition, its reciprocal cyclotomic coset is In−xq ={n−xq, n −x}, where n−xq is the minimal representative of In−qx since x≤xq. Moreover, Ixhas cardinality 1 if and only if x=xq. Lemma 9. Let Ixbe such that xis its minimal representative. One has that •Ixis an FR-asymmetric coset if and only if n−xq > x. •Ixis a symmetric coset if and only if n−xq =x. •Ixis an SR-asymmetric coset if and only if n−xq < x. Proof. We have that In−qx is the reciprocal coset of Ixand that n−xq is the minimal representative of In−qx. Hence, one has that Ix=In−xif and only if n−xq =x. Let Ixbe asymmetric, then x6=n−xq (otherwise it would be symmetric). Then Ix is an SR-asymmetric cyclotomic coset if x>n−xq, otherwise it is an FR-asymmetric cyclotomic coset.  The following proposition characterizes symmetric and SR-asymmetric cosets by the q-adic representation of its minimal representative. Proposition 10. Let Ixbe such that xis its minimal representative. Let x=a0+a1q with 0≤a0, a1< q, the q-adic representation of x. Then •Ixis a symmetric coset if and only if a0+a1=q−1. •Ixis an SR-asymmetric coset if and only if a0+a1> q −1. Proof. By Lemma 9, we have that Ixis symmetric if and only if n−xq =x. That is, if n−(a0+a1q)q=a0+a1q, that is equivalent to n= (a0+a1)(q+ 1) since q2is equivalent to 1 modulo q2−1. Moreover, since n=q2−1, we have that Ixis a symmetric coset if a0+a1=q−1. By Lemma 9, we have that Ixis an SR-asymmetric coset if and only if n−xq < x. That is, if n−(a0+a1q)q < a0+a1q, that is equivalent to n < (a0+a1)(q+ 1). Thus, we have that Ixis an SR-symmetric coset if and only if a0+a1> q −1.  For computing c, first we compute how many minimal cyclotomic cosets are symmetric or SR-asymmetric. Afterwards, we will determine the number of symmetric and FR- asymmetric cosets and their cardinality. The coset I0is always in ILsince it is symmetric and hence, it will not be considered in the following computations. We have a characterization of the cyclotomic cosets in ILby Proposition 10, namely a0+a1≥q−1 (i). Moreover, given a cyclotomic coset Ixwe should check whether the cyclotomic coset Ix is in ∆ = ∆(t) = ∪t j=0Imj, that is, we should check that x≤mt(ii). Finally we should consider that xis a minimal representative of Ix, which is equivalent to a0≥a1(iii), since x=a0+a1q≤a1+a0q=xq if and only if a0≥a1. Summarizing, setting b0+b1qthe q-adic expression of mt, we have to count the number of elements a0+a1q, with 0 ≤a0, a1≤q−1 (and (a0, a1)6= (0,0)), such that (i) a0+a1≥q−1, (ii) a0+a1q≤b0+b1q, and (iii) a0≥a1. We first consider the case a1< b1. Note that in this case, condition (ii) always holds. Our strategy consists of computing the number of pairs that satisfy (i) and then subtracting the number of pairs that do not satisfy (iii). Let a1=i, with i∈ {0,1, . . . , b1−1}. We EAQECC FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 9 have that (i) is equivalent to q−1−i≤a0≤q−1 and hence the number of possible values for a0is i+ 1 and the total number of possible values for a0and a1is (1) b1−1 X i=0 i+ 1 = b1(b1+ 1) 2. Now we consider pairs that do not satisfy equation (iii), that is, a0< a1. Again, let a1=i, with i∈ {0,1, . . . , b1−1}, thus we have that q−1−i≤a0≤i−1. Note that the previous inequalities are satisfied only when (i−1) −(q−1−i) + 1 = 2i−q+ 1 ≥1, that is, when i≥q/2. This is equivalent to i≥q/2 when the characteristic is 2 and i≥(q+ 1)/2 when the characteristic is odd. Summarizing, both inequalities are equivalent to i≥ dq/2ein arbitrary characteristic. Thus, the total number of pairs that satisfy (i) and do not satisfy (iii) is equal to b1−1 X i=dq/2e 2i−q+ 1 =    0,if b1≤ dq/2e, (b1−q/2)2,if qis even and b1>dq/2e, (b1−(q+ 1)/2)(b1−(q+ 1)/2 + 1),if qis odd and b1>dq/2e. Which, in arbitrary characteristic, equals (2) max n0, b1−lq 2mob1−jq 2k. Let us now consider the case a1=b1. In this case, condition (i) is equivalent to a0≥q−1−b1, condition (ii) is equivalent to a0≤b0, and condition (iii) is equivalent to a0≥b1. Summarizing we have that max{q−1−b1, b1} ≤ a0≤b0. Thus, for a1=b1the number of pairs that satisfy (i)-(iii) is (3) max{0, b0−max{q−1−b1, b1}+ 1}. As mentioned, we have counted the number of cyclotomic cosets that are symmetric or SR-asymmetric, but we do not know yet their cardinality and how many of them are symmetric and SR-asymmetric. With respect to the number of symmetric cosets of cardinality one, we have that x=xq and n−x=x, hence (q2−1) −x=xthat implies that x= (q2−1)/2. Therefore, there is a unique symmetric coset with cardinality one, Ixwith x= (q2−1)/2, if the characteristic of Fqis different from 2. Otherwise, there is no symmetric coset with cardinality one. Therefore, the number of symmetric cosets of cardinality one in ∆ is (4) 0,if qis even 1,if qis odd and mt≥(q2−1)/2. We compute now the number of SR-asymmetric cosets that have cardinality one. For an asymmetric coset (FR or SR) with cardinality one, we have that x=xq, hence x(q−1) is zero modulo q2−1, and this implies that xis a multiple of (q+ 1). Therefore, the number of asymmetric cosets with cardinality one is b(mt)/(q+ 1)c. However, we are interested in the number of SR-asymmetric cosets with cardinality one. To compute it, we should subtract the number of FR-asymmetric cosets with cardinality one. Actually, among the q−2 multiples of q+ 1 (we recall that we do not consider 0) the first half are minimal representatives of FR-asymmetric cosets and the second half are the minimal representatives of SR-asymmetric cosets. Thus, if the characteristic of Fqis even, there are (q−2)/2 FR-symmetric cosets with cardinality one. If the characteristic of Fqis odd, we should take into account that the coset {(q2−1)/2}is the only symmetric coset with 16 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO c= 1 + 4q(q−1) + b2 3+ max{0,2(b2+b3−q+ 2) −1} + 4   b3−1 X j=1 (q−1−j)(q−j)j+ (j+ 1)(q2−qj −1) −(2(q−1) −j)(j+ 1) 2 +δ(b2b3(q−b3) + b3(b1−b3) + max{0, b0+b3−q+ 1)}) + (1 −δ)(q−1−b3)b3(q−b3)+(b2+b3−q+ 1)((q2−qb3−1) −(b2+q−b3−2)/2) + (mt−(b2+b3q+b2q3+b3q3)) , δbeing 1 if b2+b3< q −1and δ= 0 otherwise. Proof. By Remark 5, we have that cis equal to the cardinality of the symmetric cosets in ∆ plus two times the cardinality of the SR-asymmetric cosets in ∆. Note that the symmetric cosets of cardinality 1 contribute 1 to cand the SR-asymmetric cosets of cardinality 1 contribute 2 to c. The SR-asymmetric cosets of cardinality 2 contribute 4 to cand that there are no symmetric cosets with cardinality 2 by Lemma 15. We have that the coset I0={0}is symmetric and it always contributes 1 to the value of c. (1) Let mt<q4−1 q+1 , then the results holds by Lemma 22. (2) Let (q4−1)/(q+ 1) ≤mt< q3+q= (q4−1)/(q+ 1) + q2+ 1. By Lemma 13, the cyclotomic coset generated by (q4−1)/(q+ 1) has cardinality 1 and it is symmetric by Lemma 14. By Lemma 23, an element greater than (q4−1)/(q+ 1) and smaller than or equal to mt, that is a minimal representative of a cyclotomic coset, generates an SR-asymmetric coset. Hence there are mt−(q4−1)/(q+ 1) SR-asymmetric cosets. (3) Let q3+q≤mt, by Lemma 23 we have q(q−1) minimal representatives of SR- asymmetric cosets in the interlude [(q4−1)/(q+ 1), q3+q]M, that together with the symmetric coset with one element of (q4−1)/(q+ 1) contribute 4q(q−1) + 1 to c. We count first the symmetric and SR-asymmetric cosets with cardinality 1, that is Ix={x}with (i, j, i, j) = x≤mt= (b0, b1, b2, b3). Note that (q−1,0, q −1,0) has been already considered in part (2). By Lemma 14, we have that Ixis symmetric if i+j=q−1 and that Ixis an SR-asymmetric coset if i+j > q −1. •Let 1 ≤j < b3, we have that Ixis symmetric for i=q−1−jand that is an SR-asymmetric coset for q−j≤i < q. Hence, for 1 ≤j < b3, we have b3−1 symmetric cosets and Pb3−1 j=1 j=b3(b3−1)/2 SR-asymmetric cosets. •For the case j=b3, we should consider (i, b3, i, b3)≤(b0, b1, b2, b3) that is equivalent to i≤b2by Lemma 20. Moreover, one has that i+b3≥q−1. Hence, there are max{0, b2+b3−q+ 2}possible values for i. Only one of them generates a symmetric coset and the others are SR-asymmetric cosets. Hence, the cosets with cardinality one, excepting (q4−1)/(q+ 1), contribute b3−1 + b3(b3−1) + max{0,2(b2+b3−q+ 2) −1}= −1 + b2 3+ max{0,2(b2+b3−q+ 2) −1} to c. EAQECC FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 17 Now, we focus on the rest of the SR-asymmetric cosets with cardinality 2. We first count the number of different interludes that are smaller than the interlude that contains mtand then count the number of SR-asymmetric cosets in each interlude. By Remark 21, mt= (b0, b1, b2, b3) is in the interlude [(b2, b3, b2, b3),(b2+1, b3, b2+1, b3)]Mif b2< q−1 and in [(q−1, b3, q−1, b3),(0, b3+1,0, b3+1)]Mif b2=q−1. Thus, the interludes that we should count are of the form [(i, j, i, j),(i+1, j, i+1, j)]Mor [(q−1, j, q−1, j),(0, j +1,0, j +1)]M with 0 ≤i<qand 0 < j < b3, or 0 ≤i<b2and j=b3. We divide the study in two cases j < b3and j=b3. Let j < b3. We divide again the study in two cases, the first one where we can use Lemma 24 and the second one where we can use Lemma 25. •There are q−1−jinterludes of type [(i, j, i, j),(i+1, j, i+1, j)]M, with i+j < q−1. By Lemma 24, they contain (q−j)jSR-asymmetric cosets. Hence the case j < b3 and i+j < q −1 contributes 4 b3−1 X j=1 (q−1−j)(q−j)j to c. •We consider now the opposite case, i+j≥q−1, where we know that every minimal representative in the interlude is an SR-asymmetric coset by Lemma 25. Namely, there are q2−qj −i−1 elements in the interlude with first element (i, j, i, j) with 0< j < b3and q−1−j≤i<q. Therefore, we have in total q−1 X i=q−1−j (q2−qj −i−1) = (j+ 1)(q2−qj −1) − q−1 X i=q−1−j i, which means that the case j < b3and i+j≥q−1 contributes 4(j+ 1)(q2−qj −1) −(2(q−1) −j)(j+ 1) 2 to c. Let j=b3. As above, we divide the study in two cases. •We consider first the case b2+b3< q −1. Note that there are b2interludes of the form [(i, j, i, j),(i+ 1, j, i + 1, j)]Mwith 0 ≤i < b2and j=b3that are smaller than (b2, b3, b2, b3). Moreover, by Lemma 24, they contain b3(q−b3) minimal representatives. Furthermore, we should count how many elements in the interlude containing mt, [(b2, b3, b2, b3),(b2+ 1, b3, b2+ 1, b3)]M(recall Remark 21), are smaller than or equal to mt. In this interlude the elements are (i, k, b2, b3) with 0 ≤i < q and b3< k < q, or b2< i < q and k=b3. Those elements that are minimal representatives of an SR-asymmetric coset satisfy i+b3> q −1 by Lemma 18, because b2+b3< q −1 (we have that qx > qy does not hold if b2+b3< q−1). Hence, combining both restrictions we have either q−b3≤i < q and b3< k < q or max{b2+ 1, q −b3} ≤ i < q. Note that under the hypothesis that b2+b3< q −1, we have that max{b2+ 1, q −b3}=q−b3 holds. Hence, the restrictions for belonging to the interlude and generating an SR-asymmetric coset are either q−b3≤i<qand b3< k < q 18 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO or q−b3≤i < q. Moreover, these elements are smaller than or equal to mt, that is, k < b1or k=b1and i≤b0. From these restrictions we get (note that b3≤b1by Lemma 20): q−b3≤i < q and b3< k < b1, or q−b3≤i≤b0and k=b1, or q−b3≤i<qand k=b3. Thus the number of possible representatives of an SR-asymmetric coset is: b3(b1−b3−1) + max{0, b0+b3−q+ 1}+b3= b3(b1−b3) + max{0, b0+b3−q+ 1} Hence, this case contributes 4(b2b3(q−b3) + b3(b1−b3) + max{0, b0+b3−q+ 1)}) to c. •We consider now the case b2+b3≥q−1. Note that there are b2interludes of the form [(i, j, i, j),(i+ 1, j, i + 1, j)]Mwith 0 ≤i<b2and j=b3whose elements are smaller than (b2, b3, b2, b3). For 0 ≤i < q −1−b3, we have that i+b3< q −1, and by Lemma 24, they contain b3(q−b3) minimal representatives, which means that the first q−1−b3interludes have a total of (q−1−b3)b3(q−b3) minimal representatives of SR-asymmetric cosets. For the remaining cosets, q−1−b3≤i < b2, we have that i+b3≥q−1 holds and thus we should consider Lemma 25. Every minimal representative of these interludes generates an SR-asymmetric coset and there are q2−qb3−i−1. Therefore, the number of minimal representatives in this case is b2−1 X i=q−1−b3 (q2−qb3−i−1) = (b2+b3−q+ 1)(q2−qb3−1) − b2−1 X i=q−1−b3 i= (b2+b3−q+ 1)(q2−qb3−1) −(b2+q−b3−2)(b2+b3−q+ 1)/2. Furthermore, we should count how many elements in the interlude that contains mt, [(b2, b3, b2, b3),(b2+ 1, b3, b2+ 1, b3)]M, are smaller than or equal to mt. Since, by Lemma 25, all elements in the interlude of mtare minimal representatives of an SR-asymmetric coset, we conclude that there are mt−(b2+b3q+b2q3+b3q3) elements. Hence, this case contributes (q−1−b3)b3(q−b3)+(b2+b3−q+ 1)((q2−qb3−1) −(b2+q−b3−2)/2) + (mt−(b2+b3q+b2q3+b3q3)) to c. EAQECC FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 19 n k d ≥c n k d ≥c 80 75 3 1 80 71 4 1 80 67 5 1 80 63 6 1 80 47 11 1 80 45 12 1 80 41 13 1 80 37 14 1 80 21 18 1 80 17 21 1 80 16 22 2 80 16 23 6 80 16 24 10 80 16 25 14 Table 1. Parameters of EAQECCs over F3 Summing all contributions to cwe get the formula given in the statement for this part (3). As above, if the ideal Jintroduced in Section 2 is generated by Xn+1 −X, with a very similar proof to that of the previous theorem, the following result holds. Theorem 27. Consider the BCH code E∆over the field Fq2with extension degree 2 and length q4, where ∆ = ∆(t) = ∪t j=0Imj⊆ H. Set (b0, b1, b2, b3)the q-adic expression of mt. Then the parameters of the corresponding EAQECC are   q4, q4−2 t X j=0 imj+c, ≥mt+1 + 1; c  q , where (1) If mt<q4−1 q+1 , then c= 0. (2) If q4−1 q+1 ≤mt< q3+q, then c= 1 + 4 mt−q4−1 q+1 . (3) If q3+q≤mt, then c= 4q(q−1) + b2 3+ max{0,2(b2+b3−q+ 2) −1} + 4   b3−1 X j=1 (q−1−j)(q−j)j+ (j+ 1)(q2−qj −1) −(2(q−1) −j)(j+ 1) 2 +δ(b2b3(q−b3) + b3(b1−b3) + max{0, b0+b3−q+ 1)}) + (1 −δ)(q−1−b3)b3(q−b3)+(b2+b3−q+ 1)((q2−qb3−1) −(b2+q−b3−2)/2) + (mt−(b2+b3q+b2q3+b3q3)) , where δ= 1 if b2+b3< q −1and δ= 0 otherwise. This family of codes contains codes with good parameters. As a sample, to finish this section and the paper, we present several tables, Tables 1, 2, 3 and 4, containing parameters of codes obtained with our formulae, over different finite fields, that exceed the Gilbert-Varshamov (GV) bound for EAQECCs [11]. Most of the EAQECCs in the literature (see Section 1) are binary or q-ary with length smaller than or equal to q2. Hence, we cannot compare our codes with them. Other articles about BCH codes consider just concrete subfamilies. To the best of our knowledge, the only article with EAQECCs having the same length as ours is [25]. There the authors 20 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO n k d ≥c n k d ≥c 255 250 3 1 255 246 4 1 255 242 5 1 255 238 6 1 255 194 18 1 255 192 19 1 255 176 23 1 255 172 24 1 255 148 30 1 255 144 31 1 255 136 35 1 255 134 36 1 255 118 40 1 255 114 41 1 255 81 54 6 255 81 55 10 255 81 56 14 255 81 57 18 255 81 64 46 255 81 69 50 255 79 70 50 255 75 71 50 Table 2. Parameters of EAQECCs over F4 n k d ≥c n k d ≥c 624 619 3 1 624 615 4 1 624 611 5 1 624 607 6 1 624 527 27 1 624 525 28 1 624 521 29 1 624 517 30 1 624 513 31 1 624 509 32 1 624 489 37 1 624 485 38 1 624 395 63 1 624 391 64 1 624 273 97 1 624 269 98 1 624 261 100 1 624 257 105 1 624 256 107 6 624 256 108 10 624 256 113 30 624 256 114 34 624 256 115 38 624 256 116 42 Table 3. Parameters of EAQECCs over F5 n k d ≥c n k d ≥c 2400 2399 2 1 2400 2395 3 1 2400 2391 4 1 2400 2387 5 1 2400 2383 6 1 2400 2379 7 1 2400 2207 51 1 2400 2205 52 1 2400 2201 53 1 2400 2197 54 1 2400 2141 68 1 2400 2137 69 1 2400 1919 126 1 2400 1915 127 1 2400 1911 128 1 2400 1907 129 1 2400 1907 130 1 2400 1899 31 1 2400 1829 152 1 2400 1825 153 1 2400 1781 164 1 2400 1777 165 1 2400 1737 175 1 2400 1733 176 1 Table 4. Parameters of EAQECCs over F7 EAQECC FROM RS CODES AND BCH CODES WITH EXTENSION DEGREE 2 21 provide a few codes with length q4−1. Indeed, for a given finite field Fq, they give two codes, with parameters [[q4−1, q4−1−5,3; 1]]qand [[q4−1, q4−1−7,4; 1]]q. These codes are constructed from almost MDS constacyclic codes using the Hartmann-Tzeng bound. We notice that those with minimum distance 3 are contained in the set of codes presented in this section but the ones with minimum distance 4 are not contained in the codes presented in this section, and have better parameters. Notice also that the cyclotomic cosets presented in this section are consecutive to bound the minimum distance with the BCH bound but the codes with miminum distance 4 in [25] are constructed from nonconsecutive cyclotomic cosets. References [1] J¨urgen Bierbrauer. The theory of cyclic codes and a generalization to additive codes. Des. Codes Cryptogr., 25(2):189–206, 2002. [2] Todd Brun, Igor Devetak, and Min-Hsiu Hsieh. Correcting quantum errors with entanglement. Science, 314(5798):436–439, 2006. [3] Todd A. Brun, Igor Devetak, and Min-Hsiu Hsieh. Catalytic quantum error correction. IEEE Trans. Inform. Theory, 60(6):3073–3089, 2014. [4] A. Robert Calderbank, Eric M. Rains, P. W. Shor, and Neil J. A. Sloane. Quantum error correction via codes over GF(4). IEEE Trans. Inform. Theory, 44(4):1369–1387, 1998. [5] Ignacio Cascudo. On squares of cyclic codes. IEEE Trans. Inform. Theory, 65(2):1034–1047, 2019. [6] Jianzhang Chen, Yuanyuan Huang, Chunhui Feng, and Riqing Chen. Entanglement-assisted quantum MDS codes constructed from negacyclic codes. Quantum Inf. Process., 16(12):Paper No. 303, 22, 2017. [7] Xiaojing Chen, Shixin Zhu, and Xiaoshan Kai. Entanglement-assisted quantum negacyclic BCH codes. Internat. J. Theoret. Phys., 58(5):1509–1523, 2019. [8] Zongrun Du, Chengju Li, and Sihem Mesnager. Constructions of self-orthogonal codes from hulls of BCH codes and their parameters. IEEE Trans. Inform. Theory, pages 1–1, 2020. [9] Carlos Galindo, Olav Geil, Fernando Hernando, and Diego Ruano. On the distance of stabilizer quantum codes from J-affine variety codes. Quantum Inf. Process., 16(4):Art. 111, 32, 2017. [10] Carlos Galindo and Fernando Hernando. Quantum codes from affine variety codes and their subfield subcodes. Des. Codes Crytogr., 76:89–100, 2015. [11] Carlos Galindo, Fernando Hernando, Ryutaroh Matsumoto, and Diego Ruano. Entanglement-assisted quantum error-correcting codes over arbitrary finite fields. Quantum Inf. Process., 18(4):Art. 116, 18, 2019. [12] Carlos Galindo, Fernando Hernando, and Diego Ruano. Stabilizer quantum codes from J-affine variety codes and a new Steane-like enlargement. Quantum Inf. Process., 14(9):3211–3231, 2015. [13] Daniel Gottesman. Class of quantum error-correcting codes saturating the quantum Hamming bound. Phys. Rev. A (3), 54(3):1862–1868, 1996. [14] Guanmin Guo and Ruihu Li. New entanglement-assisted quantum MDS codes derived from generalized Reed-Solomon codes. Internat. J. Theoret. Phys., 59(4):1241–1254, 2020. [15] Avanti Ketkar, Andreas Klappenecker, Santosh Kumar, and Pradeep Kiran Sarvepalli. Nonbinary stabilizer codes over finite fields. IEEE Trans. Inform. Theory, 52(11):4892–4914, 2006. [16] Ching-Yi Lai and Alexei Ashikhmin. Linear programming bounds for entanglement-assisted quantum error-correcting codes by split weight enumerators. IEEE Trans. Inform. Theory, 64(1):622–639, 2018. [17] Yang Liu, Ruihu Li, Liangdong Lv, and Yuena Ma. Application of constacyclic codes to entanglementassisted quantum maximum distance separable codes. Quantum Inf. Process., 17(8):Paper No. 210, 19, 2018. [18] Liang-Dong L¨u and Ruihu Li. Entanglement-assisted quantum codes constructed from primitive quaternary BCH codes. Int. J. Quantum Inf., 12(3):1450015, 14, 2014. [19] Gaojun Luo and Xiwang Cao. Two new families of entanglement-assisted quantum MDS codes from generalized Reed-Solomon codes. Quantum Inf. Process., 18(3):Paper No. 89, 12, 2019. [20] Gaojun Luo, Xiwang Cao, and Xiaojing Chen. MDS codes with hulls of arbitrary dimensions and their quantum error correction. IEEE Trans. Inform. Theory, 65(5):2944–2952, 2019. [21] Liangdong Lv, Ruihu Li, Qiang Fu, and Xueliang Li. Maximal entanglement entanglement-assisted quantum codes from quaternary BCH codes. In 2015 IEEE Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), pages 709–713, 2015. 22 CARLOS GALINDO, FERNANDO HERNANDO AND DIEGO RUANO [22] Francisco R. F. Pereira. Entanglement-assisted quantum codes from cyclic codes. arXiv cs.IT, 1911.06384, 2019. [23] Francisco R. F. Pereira, Ruud Pellikaan, Giuliano G. La Guardia, and Francisco M. de Assis. Application of complementary dual AG codes to entanglement-assisted quantum codes. In 2019 IEEE International Symposium on Information Theory (ISIT), pages 2559–2563, 2019. [24] Jianfa Qian and Lina Zhang. On MDS linear complementary dual codes and entanglement-assisted quantum codes. Des. Codes Cryptogr., 86(7):1565–1572, 2018. [25] Jianfa Qian and Lina Zhang. Constructions of new entanglement-assisted quantum MDS and almost MDS codes. Quantum Inf. Process., 18(3):Paper No. 71, 12, 2019. [26] Diego Ruano. The metric structure of linear codes. In Singularities, algebraic geometry, commutative algebra, and related topics, pages 537–561. Springer, Cham, 2018. [27] Mustafa Sarıand Emre Koloto˘glu. An application of constacyclic codes to entanglement-assisted quantum MDS codes. Comput. Appl. Math., 38(2):Paper No. 75, 13, 2019. Current address:Carlos Galindo and Fernando Hernando: Instituto Universitario de Matem´aticas y Aplicaciones de Castell´on and Departamento de Matem´aticas, Universitat Jaume I, Campus de Riu Sec. 12071 Castell´o (Spain), Diego Ruano: IMUVA-Mathematics Research Institute, Universidad de Valladolid, 47011 Valladolid (Spain). Email address: Galindo: [email protected]; Hernando: [email protected]; Ruano: [email protected]