1 Introduction

Cyclic codes form an important class of linear codes due to their good algebraic structures in coding theory and decoding theory. Recently, there are some papers on quantum codes construction from cyclic codes [1, 6,7,8,9]. Negacyclic codes are generalizations of cyclic codes, and also have good algebraic structures. If the length of negacyclic codes is odd, then negacyclic codes are cyclic codes actually [2]. Based on the good structural properties of negacyclic codes, there have been some papers on quantum codes construction from negacyclic codes [4, 5, 10, 11]. In [4], the authors Kai et al. constructed some new quantum MDS codes from negacyclic codes. Lately, the authors constructed some new classes of nonbinary quantum codes from negacyclic codes in [5]. Chen et al. studied the optimal asymmetric quantum codes construction and nonbinary quantum convolutional codes construction from negacyclic codes in [10] and [11], respectively. These results show that quantum codes can be constructed by nagacyclic codes effectively.

Let q be a power of some prime number. A q-ary quantum code C of length n is a K-dimension subspace of the q n-dimension Hilbert space \((\mathbb {C}^{q})^{\otimes n}\). If K = q k, then the quantum code C is denoted by [[n, k, d]] q , where d is the minimum distance. For a quantum code [[n, k, d]] q , there is a Singleton bound for parameters n, k and d satisfying k + 2dn + 2. If the equality holds, then the quantum code C is called a maximum distance separable (MDS) code.

In this short correspondence, we present a quantum codes construction from negacyclic codes with only one cyclotomic coset of even code length. Some new quantum codes, in sense of the Singleton bound, are obtained by this class of negacyclic codes.

2 Quantum Codes from Negacyclic Codes

Let \(\mathbb {F}_{q}\) be a finite field with q elements, where q is a power of an odd prime number. The parameters of a linear code over \(\mathbb {F}_{q}\) is denoted by [n, k, d] q , where n is the code length, k is the dimension and d is the minimum Hamming distance. A linear code C is called a negacyclic code if for any codeword (c 0, c 1,…, c n− 1) ∈ C, the vector (−c n− 1, c 0,…, c n− 2) is also a codeword of C. A negacyclic code C is an ideal of the quotient ring \(\mathbb {F}_{q}[x]/(x^{n}+ 1)\). Therefore C can be generated by a monic divisor of x n + 1. This polynomial is called the generator polynomial of C.

Let \(\gcd (n, q)= 1\) and β be a primitive 2nth root of unity. Then the roots of x n + 1are β 1 + 2i, where i = 0,1,…, n − 1. Let \(\mathscr {O}_{2n}\) be the set of odd integers from 1 to 2n, and C x be the q-cyclotomic coset modulo 2n containing x. Let m be the size of this coset. Then \(C_{x}=\{x, xq, \ldots , xq^{m^{*}-1}\}\) and \(g(x)={\prod }_{j\in C_{x}}(x-\beta ^{j})\) is an irreducible polynomial over \(\mathbb {F}_{q}\). If g(x) is the generator polynomial of the negacyclic code C, then C is called a maximum negacyclic code, i.e. C is with only one q-cyclotomic coset. The q-cyclotomic coset C x is called the defining set of C, which implies that the dimension of C is nm .

Lemma 1

[5, BCH bound] Let C be a negacyclic code of length n over \(\mathbb {F}_{q}\) and g(x) be its generator polynomial. If g(x) has roots {β 1 + 2i|0 ≤ ir}, then the minimum Hamming distance of C is at least r + 2.

For any negacyclic code C of length n, the Euclidean dual code C of C is also a negacyclic code of length n. Further, C C if and only if g(x) divides h(x), which implies that C x C x = , where h(x) is the generator polynomial of C and C x is the q-cyclotomic coset containing − x modulo 2n.

In the following, we show how to guarantee the existence of a negacyclic code whose defining set containing only one q-cyclotomic coset with at least two consecutive odd integers.

Theorem 1

Let q ≥ 3 be a power of some prime number and q ≢ 1 mod 4, n > m be a positive integer such that \(\gcd (q,2n)= 1\) and \(\gcd (\frac {q^{a_{i}}-1}{2},n)= 1\) for each i = 1,2,⋯ , r , where m = ord2n (q), r ≥ 1 and1 ≤ a 1, a 2,…, a r < m are odd positive integers. If \(n\mid \gcd (t_{2},\ldots , t_{r})\) , where \(t_{j}=[(j-(j-1)q^{a_{j}})(\frac {q^{a_{j}}-1}{2})^{-1}-(\frac {q^{a_{1}}-1}{2})^{-1}]\) for each j = 2,…, r (the operations are performed modulo n), then there exists an[n, nm , ≥ r + 2] q negacyclic code, where m is the size of the q-cyclotomic coset containing r + 1 consecutive odd positive integers.

Proof

We want to investigate the following system of congruences

$$\begin{array}{@{}rcl@{}} xq^{a_{1}} &\equiv& (x + 2) \text{\ mod\ } 2n \\ (x + 2)q^{a_{2}} &\equiv& (x + 4) \text{\ mod\ } 2n \\ (x + 4)q^{a_{3}} &\equiv& (x + 6)\ \text{mod\ } 2n \\ \vdots&& \\ \left[x + 2(r-1)\right]q^{a_{r}} &\equiv& (x + 2r) \text{\ mod\ } 2n, \end{array} $$

where r ≥ 1 and 1 ≤ a 1, a 2,…, a r < m are odd positive integers. Since \(\gcd (\frac {q^{a_{i}}-1}{2},n)= 1\) for each i = 1,2,…, r, it follows that the above system is equivalent to

$$\begin{array}{ll} x&\equiv (\frac{q^{a_{1}}-1}{2})^{-1} \text{mod} n \\ x &\equiv (2-q^{a_{2}})(\frac{q^{a_{2}}-1}{2})^{-1} \text{\ mod} \ n \\ x &\equiv (3-2q^{a_{3}})(\frac{q^{a_{3}}-1}{2})^{-1} \text{\ mod\ } n \\ & {\vdots} \\ x &\equiv [r-(r-1)q^{a_{r}}](\frac{q^{a_{r}}-1}{2})^{-1\ } \text{mod\ } n, \end{array} $$

where \((\frac {q^{a_{i}}-1}{2})^{-1}\) denotes the multiplicative inverse of \(\frac {q^{a_{i}}-1}{2}\) modulo n.

The system has a solution if only and only if

$$[j-(j-1)q^{a_{j}}](\frac{q^{a_{j}}-1}{2})^{-1}\equiv [i-(i-1)q^{a_{i}}](\frac{q^{a_{i}}-1}{2})^{-1} \text{\ mod} \ n$$

for all i, j = 2,…, r and

$$(\frac{q^{a_{1}}-1}{2})^{-1}\equiv [i-(i-1)q^{a_{i}}](\frac{q^{a_{i}}-1}{2})^{-1} \text{\ mod} \ n$$

for all i = 2,…, r. This means that

$$n\mid[(j-(j-1)q^{a_{j}})(\frac{q^{a_{j}}-1}{2})^{-1}-(\frac{q^{a_{1}}-1}{2})^{-1}]$$

for all j = 2,…, r, i.e., \(n\mid \gcd (t_{2},\ldots , t_{r})\), where \(t_{j}=[(j-(j-1)q^{a_{j}})(\frac {q^{a_{j}}-1}{2})^{-1}-(\frac {q^{a_{1}}-1}{2})^{-1}]\) for each j = 2,…, r.

Let C be a negacyclic code, which has the q-cyclotomic coset C x as its defining set. Then C x contains the sequence x, x + 2,…, x + 2r of r + 1 consecutive odd integers. Therefore, by the BCH bound, the minimum Hamming distance d of C satisfies dr + 2. Since ∣C x ∣ = m , then the dimension of C is nm . Thus, we have an [n, nm , dr + 2] q negacyclic code. □

The following Calderbank-Shor-Steane (CSS) construction gives a connection between classical error-correcting codes and quantum codes.

Lemma 2

[3, Calderbank-Shor-Steane (CSS) construction] If there exists a classical linear [n, k, d] q code C such that C C , then there exists an [[n, 2 kn, ≥ d]] q stabilizer quantum code that is pure to d.

By Theorem 1, Lemmas 1 and 2, we have the following result directly.

Corollary 1

Assume all the hypotheses of Theorem 1 hold. Let C be a maximum negacyclic code with the defining set C x . If C x has elements{1 + 2i|0 ≤ ir} and C x C x , then there exists an[[n, n − 2m , ≥ r + 2]] q quantum code.

Example 1

Assume that q = 23 and n = 60. Then 2n = 120 and m = ord120(23) = 4. In the 23-cyclotomic cosets, we can find C 1 = {1,23,47,49}. If C is a negacyclic code of length 60 over \(\mathbb {F}_{23}\) with the defining set C 1, then it has parameters [60,56, ≥ 3]23. So there exists an [[60,52, ≥ 3]]23 quantum code. This quantum code has the same minimum distance as the known quantum code [[63,51, ≥ 3]]23 appeared in [6], but our code has the larger code rate than that code.

Example 2

Assume that q = 27and n = 28. Then 2n = 56 and m = ord56 (27) = 2. In the 27-cyclotomic cosets, we can find C 41 = {41,43}. If C is a negacyclic code of length 28 over \(\mathbb {F}_{27}\) with the defining set C 41, then it has parameters [28,26, ≥ 3]27. So there exists an [[28, 24, ≥ 3]]27 quantum code. The quantum Singleton bound asserts that the quantum code [[n, k, d]] q satisfies k + 2dn + 2. This quantum code has parameters satisfying it, hence, [[28, 24, 3]]27 is a quantum MDS code.

Example 3

Assume that q = 23and n = 24. Then 2n = 48 and m = ord48 (23) = 2. In the 23-cyclotomic cosets, we can find C 11 = {11,13}. If C is a negacyclic code of length 24 over \(\mathbb {F}_{23}\) with the defining set C 11, then it has parameters [24,22, ≥ 3]23. So there exists an [[24,20, ≥ 3]]23 quantum code. This quantum code has parameters satisfying the quantum Singleton bound, hence, [[24,20,3]]23 is a quantum MDS code.

The Table 1 contains some new q-ary quantum codes, where q is an odd prime power. The first column of the table denotes the length of negacyclic codes over \(\mathbb {F}_{q}\), C x is the defining set of negacyclic codes, column three denotes the parameters of the negacyclic codes over \(\mathbb {F}_{q}\), the last column denotes the new q-ary quantum codes. Note that the parameters of all new q-ary quantum codes appeared in Table 1 satisfy n + 2 − k − 2d ≤ 4.

Table 1 New quantum codes