1 Introduction

Since the pioneering work of Shor [1] and Steane [2] in 1995–1996, the research on quantum error-correcting codes (QECCs) has experienced tremendous growth. Many good QECCs have been constructed by using classical error-correcting codes, such as Bose-Chaudhuri-Hocquenghem (BCH) codes, Reed-Solomon (RS) codes, algebraic geometric codes and so on. Calderbank et al. [3] studied quantum error correction via codes over GF(4). Grassl et al. [4] studied optimal maximal distance separable (MDS) quantum codes. Chen et al. [5] constructed good quantum codes from concatenated algebraic-geometric codes. Later, a lot of work has been done for the construction of QECCs (see Refs. [6,7,8,9,10]).

In Ref. [12], Steane initially pointed out that QECCs should take into account the asymmetry which the mechanisms for the occurrence of bit-flip and phase-flip errors are quite different. This class of quantum error-correcting codes is called asymmetric quantum error-correcting codes (AQECCs). Since then, many researchers have focused on constructing AQECCs. In asymmetric quantum channels, the probabilities of occurrence of qudit-flip errors and phase-shift errors are unequal. Currently, we use the parameters [[n, k, d z /d x ]] q to denote an AQECC, where d z is the minimum distance correcting to phase-shift errors and d x is the minimum distance correcting to qudit-flip errors. Wang et al. [13] studied the characterization and constructions of asymmetric quantum codes. Guardia [14, 15] utilized classical BCH codes to construct new families of asymmetric quantum codes. Later, much good work on AQECCs over finite fields has been done in Refs. [16, 17]. Chen et al. [19] constructed new asymmetric quantum codes from negacyclic codes which achieve the Singleton bound for AQECCs. Wang et al. [18] constructed six families of new optimal AQECCs from dual-containing constacyclic codes over finite fields by using the CSS construction.

Recently, one found that there exist optimal symmetric and asymmetric quantum codes of length \(n=\frac {q^{2}+ 1}{5}\), where q is some prime power. In Ref. [21], for any odd prime power q with the form 10m + 3 or 10m + 7, Kai et al. obtained two classes of quantum MDS codes with parameters \(\left [\left [\frac {q^{2}+ 1}{5},\frac {q^{2}+ 1}{5}-2d + 2,d\right ]\right ]\), where \(2\leq d\leq \frac {q + 3}{2}\) is even. In Ref. [22], Zhang and Ge enlarged the minimum distance d to 6m + 2 and 6m + 4, respectively. For any even prime power q ≡ 2(mod 10) or q ≡ 8(mod 10), Li et al. [23] constructed some new quantum MDS codes of length \(n=\frac {q^{2}+ 1}{5}\) by using pseudo-cyclic codes. In a recent paper [20], Xu et al. obtained two new classes of optimal asymmetric quantum codes from constacyclic codes. One of them has length \(n=\frac {q^{2}+ 1}{5}\) and d z > q + 1, where q is an odd prime power with the form 10t + 3 or 10t + 7 (t ≥ 0 is integer). Inspired by the above work, we consider the case that \(n=\frac {q^{2}+ 1}{5}\), where q is some even prime power. We construct two classes of new optimal AQECCs by employing constacyclic codes. Speaking specifically, for any even prime power q = 2e with e being odd, we construct two classes of asymmetric quantum codes with parameters as follows:

  • (i) \(\left [\left [\frac {q^{2}+ 1}{5},\frac {q^{2}+ 1}{5}-2(s+t + 2),(2s + 3)/(2t + 3)\right ]\right ]_{q^{2}}\), where e ≡ 1(mod 4) and \(0\leq t\leq s\leq \frac {3q-16}{10}\).

  • (ii) \(\left [\left [\frac {q^{2}+ 1}{5},\frac {q^{2}+ 1}{5}-2(s+t + 2),(2s + 3)/(2t + 3)\right ]\right ]_{q^{2}}\), where e ≡ 3(mod 4) and \(0\leq t\leq s\leq \frac {3q-14}{10}\).

This paper is organized as follows. In Section 2, some basic background and results about constacyclic codes are reviewed. In Section 3, we briefly review some basic definitions of AQECCs. In Section 4, we give a sufficient condition for constacyclic codes which contain their Hermitian dual codes first, and then give our construction of AQECCs. Section 5 concludes the paper.

2 Preliminaries

Let \(\mathbb {F}_{q^{2}}\) be a finite field with q2 elements, where q is a power of a prime p. For any element \(x\in \mathbb {F}_{q^{2}}\), we denote the conjugate xq of x by \(\overline {x}\). Given two vectors x = (x0, x1,…, xn− 1) and \(\mathbf {y}=(y_{0},y_{1},\ldots ,y_{n-1})\in \mathbb {F}_{q^{2}}^{n}\), their Hermitian inner product is defined as

$$\langle \mathbf{x},\mathbf{y}\rangle=x_{0}\overline{y}_{0}+x_{1}\overline{y}_{1}+\cdots+x_{n-1}\overline{y}_{n-1}\in\mathbb{F}_{q^{2}}. $$

The vectors x and y are called orthogonal with respect to the Hermitian inner product if 〈x, y〉 = 0. A q2-ary linear code \(\mathcal {C}\) of length n is a nonempty subspace of the vector space \(\mathbb {F}_{q^{2}}^{n}\). For a q2-ary linear code \(\mathcal {C}\), the Hermitian dual code of \(\mathcal {C}\) is defined as

$$\mathcal{C}^{\bot_{h}}=\left\{\mathbf{x}\in\mathbb{F}_{q^{2}}^{n}|~\langle \mathbf{x},\mathbf{y}\rangle= 0 ~for~ all~\mathbf{y}\in\mathcal{C}\right\}. $$

A q2-ary linear code \(\mathcal {C}\) of length n is called Hermitian self-orthogonal if \(\mathcal {C}\subseteq \mathcal {C}^{\bot _{h}}\), and it is called Hermitian self-dual if \(\mathcal {C}=\mathcal {C}^{\bot _{h}}\). For a nonzero element η of \(\mathbb {F}_{q^{2}}\), if \(\mathcal {C}\) is closed under the η-constacyclic shift, i.e., if \((x_{0},x_{1},\ldots ,x_{n-1})\in \mathcal {C}\) implies \((\eta x_{n-1},x_{0},\ldots ,x_{n-2})\in \mathcal {C}\), then \(\mathcal {C}\) is said to be an η-constacyclic code. Customarily, a codeword c = (c0, c1,…, cn− 1) in \(\mathcal {C}\) is identified with its polynomial representation c (x) = c0 + c1x + ⋯ + cn− 1xn− 1. It is well known that an η-constacyclic code \(\mathcal {C}\in \mathbb {F}_{q^{2}}^{n}\) is an ideal of the quotient ring \(\mathbb {F}_{q^{2}}[x]/\langle x^{n}-\eta \rangle \) and \(\mathcal {C}\) can be generated by a monic divisor g (x) of xnη. The polynomial g (x) is called the generator polynomial of \(\mathcal {C}\) and the dimension of \(\mathcal {C}\) is nk, where k = deg(g (x)).

In the following, let ω be a primitive element of the finite field \(\mathbb {F}_{q^{2}}\) and η = ωq− 1. In this case, the order r of η in \(\mathbb {F}^{*}_{q^{2}}\) is equal to q + 1. Note that \(\eta \bar {\eta }= 1\) in \(\mathbb {F}_{q^{2}}\). Hence, the Hermitian dual code of a q2-ary η-constacyclic code of length n is still η-constacyclic by Lemma 2.1 in Refs. [11]. Assume that \(\gcd (q,n)= 1\). Let δ be a primitive rn-th root of unity in some extension field of \(\mathbb {F}_{q^{2}}\) such that δn = η. Let ξ = δr, then ξ is a primitive n-th root of unity. Hence,

$$x^{n}-\eta=\prod\limits_{j = 0}^{n-1}(x-\delta\xi^{j})=\prod\limits_{j = 0}^{n-1}(x-\delta^{1+jr}). $$

Let Ω = {1 + jr| 0 ≤ jn − 1}. For each i ∈ Ω, let \(\mathbb {C}_{i}\) be the q2-cyclotomic coset modulo rn containing i. Then, \(e_{i}(x)={\prod }_{l\in \mathbb {C}_{i}}(x-\delta ^{l})\) is a monic irreducible divisor of xnη over \(\mathbb {F}_{q^{2}}\). Each \(\mathbb {C}_{i}\) corresponds to an irreducible divisor of xnη over \(\mathbb {F}_{q^{2}}\). Let \(\mathcal {C}\) be an η-constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with generator polynomial g (x). Then the set Z = {i ∈ Ω | g (δi) = 0} is called the defining set of \(\mathcal {C}\). Obviously, the defining set of \(\mathcal {C}\) must be a union of some q2-cyclotomic cosets modulo rn. It is clear to see that \(\mathcal {C}^{\bot _{h}}\) has defining set \(Z^{\bot _{h}}=\{z\in {\Omega }|~-qz~\text {mod}~rn~\notin Z\}\). Besides, the defining set of \(\mathcal {C}\) is a union of some q2-cyclotomic cosets modulo rn and dim\((\mathcal {C})=n-|Z|\). The following lemma in Ref. [21] gives a necessary and sufficient condition of \(\mathcal {C}^{\bot _{h}}\subseteq \mathcal {C}\).

Lemma 2.1

Let \(\mathcal {C}\) be an η -constacyclic code of length n over \(\mathbb {F}_{q^{2}}\) with defining set Z ⊆ Ω . Then \(\mathcal {C}\) contains its Hermitian dual code if and only if ZZq = , where Zq = {−qz mod rn| zZ}.

Similar to cyclic codes, there exists the following BCH bound for η-constacyclic codes in Refs. [24] and [25].

Theorem 2.2

(The BCH bound for constacyclic codes) Assume that gcd (q, n) = 1. Let \(\mathcal {C}\) be an η -constacyclic code of length n over \(\mathbb {F}_{q^{2}}\), and let its generator polynomial g (x)have the elements {δ1 + jr| 0 ≤ jd − 2}as the roots, where δ is a primitive rn-th root of unity. Then the minimum distance of\(\mathcal {C}\) is at least d.

Next we recall several lemmas which are important for constructing asymmetric quantum codes in Refs. [24] and [26].

Lemma 2.3

Let \(\mathcal {C}_{i}\) be q2-aryη-constacyclic codes of length n with defining set T i for i = 1,2, then \(\mathcal {C}_{1}\subseteq \mathcal {C}_{2}\) if and only if T2T1.

Lemma 2.4

(Singleton bound) If an [n, k, d]linear code over \(\mathbb {F}_{q}\) exists, then knd + 1. If the equality k = nd + 1 holds, then the code is an MDS code.

3 Asymmetric Quantum Error-Correcting Codes

In this section, we first give some basic definitions and results of AQECCs and then give the well-known CSS construction and Singleton bound for AQECCs. More details about AQECCs theory, please refer to Refs. [13,14,15,16,17,18,19,20] therein.

Suppose that p is the characteristic of the finite field \(\mathbb {F}_{q}\). Let \(\mathbb {H}\) be the Hilbert space \(\mathbb {H}=\mathbb {C}^{q^{n}}=\mathbb {C}^{q}\otimes \cdots \otimes \mathbb {C}^{q}\), where \(\mathbb {C}^{q}\) denotes a q-dimensional complex vector space representing the states of a quantum mechanical system. Let |x〉 be the vectors of an orthonormal basis of \(\mathbb {C}^{q}\), where the labels x are elements of \(\mathbb {F}_{q}\). Let a, b be two elements of \(\mathbb {F}_{q}\). The unitary operators X (a) and Z (b) on \(\mathbb {C}^{q}\) are defined as X (a)|x〉 = |x + a〉 and Z (b)|x〉 = ωtr (bx)|x〉, respectively, where tr is the trace map from \(\mathbb {F}_{q}\) to the prime field \(\mathbb {F}_{p}\) and ω = exp(2πi/p) is a primitive p-th root of unity. Let \(\mathbf {a}=(a_{1},a_{2},\cdots ,a_{n})\in \mathbb {F}_{q}^{n}\) and \(\mathbf {b}=(b_{1},b_{2},\cdots ,b_{n})\in \mathbb {F}_{q}^{n}\). Denote X (a) = X (a1) ⊗ X (a2) ⊗⋯ ⊗ X (a n ) and Z (b) = Z (b1) ⊗ Z (b2) ⊗⋯ ⊗ Z (b n ) by tensor products of n error operators. The set \(\varepsilon _{n}=\{X(\mathbf {a})Z(\mathbf {b})|~\mathbf {a},\mathbf {b}\in \mathbb {F}_{q}^{n}\}\) is an error basis on \(\mathbb {C}^{q}\) and the set \(G_{n}=\{\omega ^{c}X(\mathbf {a})Z(\mathbf {b})|~\mathbf {a},\mathbf {b}\in \mathbb {F}_{q}^{n},c\in \mathbb {F}_{p}\}\) is the error group associated with ε n .

For a quantum error α = ωcX (a)Z (b) ∈ G n , the quantum weight w Q (α), the X-weight w X (α) and the Z-weight w Z (α) of α are defined as:

$$\begin{array}{@{}rcl@{}} w_{Q}(\alpha)&=&\sharp\{i:1\leq i\leq n,(a_{i},b_{i})\neq(0,0)\},\\ w_{X}(\alpha)&=&\sharp\{i:1\leq i\leq n,a_{i}\neq0\},\\ w_{Z}(\alpha)&=&\sharp\{i:1\leq i\leq n,b_{i}\neq0\}. \end{array} $$

A q-ary asymmetric quantum code \(\mathcal {C}\), denoted by [[n, k, d z /d x ]] q , is a qk-dimensional subspace of the Hilbert space \(\mathbb {H}\) and can control all qubit-flip errors up to ⌊(d x − 1)/2⌋ and all phase-flip errors up to ⌊(d z − 1)/2⌋. The code \(\mathcal {C}\) also detects d x − 1 qubit-flip errors as well as detects d z − 1 phase-shift errors. Then we give the well-known CSS construction and Singleton bound for AQECCs.

Theorem 3.1

[16] If \(\mathcal {C}_{1}=[n,k_{1},d_{1}]_{q^{2}}\) and\(\mathcal {C}_{2}=[n,k_{2},d_{2}]_{q^{2}}\) are classical codes and satisfy \(\mathcal {C}_{1}^{\perp _{h}}\subset \mathcal {C}_{2}\), then there is a \({\Lambda }=[[n,k_{1}+k_{2}-n,d_{z}/d_{x}]]_{q^{2}}\) AQECC, where

$$d_{z}=max\left\{wt\left( \mathcal{C}_{2}\backslash\mathcal{C}_{1}^{\perp_{h}}\right),wt\left( \mathcal{C}_{1}\backslash\mathcal{C}_{2}^{\perp_{h}}\right)\right\},~~~~~d_{x}=min\left\{wt\left( \mathcal{C}_{2}\backslash\mathcal{C}_{1}^{\perp_{h}}\right),wt\left( \mathcal{C}_{1}\backslash\mathcal{C}_{2}^{\perp_{h}}\right)\right\}. $$

Theorem 3.2

(Singleton bound for AQECCs) [19] If asymmetric quantum code\(\mathcal {C}\) with parameters [[n, k1 + k2n, d z /d x ]]exists, then\(\mathcal {C}\) satisfies the asymmetric quantum Singleton bound

$$k\leq n-d_{z}-d_{x}+ 2. $$

If \(\mathcal {C}\) satisfiesthe equality k = nd z d x + 2, then it is called an optimal code.

4 Construction of AQECCs

Throughout this section, let q be an even prime power, ω be a primitive element of the finite field \(\mathbb {F}_{q^{2}}\) and η = ωq− 1. We will use constacyclic codes over \(\mathbb {F}_{q^{2}}\) to construct two classes of new optimal asymmetric quantum codes. Firstly, we give a sufficient condition for η-constacyclic codes over \(\mathbb {F}_{q^{2}}\) of length n which contain their Hermitian dual codes. Secondly, we construct our new optimal AQECCs.

Let q = 2e, where e > 1 is odd. Then 5 is a divisor of q2 + 1. Let \(n=\frac {q^{2}+ 1}{5}\), then n is odd. Now, we consider η-constacyclic codes over \(\mathbb {F}_{q^{2}}\) of length n to construct AQECCs. First, we give a sufficient condition for η-constacyclic codes over \(\mathbb {F}_{q^{2}}\) of length n which contain their Hermitian dual codes. To do this, we compute q2-cyclotomic cosets modulo (q + 1)n.

Lemma 4.1

Let q = 2e, where e > 1is odd, \(n=\frac {q^{2}+ 1}{5}\),\(s=\frac {(q + 6)n}{2}\) andΩ = {1 + (q + 1)j| 0 ≤ jn − 1}. Then, for any integer i ∈ Ω , then q2-cyclotomic cosets\(\mathbb {C}_{i}\) modulo (q + 1)n is given by

  1. 1)

    \(\mathbb {C}_{s}=\{s\}\) ;

  2. 2)

    \(\mathbb {C}_{s-(q + 1)j}=\{s-(q + 1)j,s+(q + 1)j\}\) for \(1\leq j\leq \frac {n-1}{2}\) .

Proof

  1. 1)

    If \(j=\frac {q^{2}+ 5q-4}{10}\), then 1 + (q + 1)j = s. This implies that s must be in Ω. Since \(s=\frac {(q + 6)n}{2}\), we have sq2s mod (q + 1)n. Therefore, \(\mathbb {C}_{s}=\{s\}.\)

  2. 2)

    We first prove that for each i ∈Ω ∖ {s}, the q2-cyclotomic coset \(\mathbb {C}_{i}\) modulo (q + 1)n has exactly two elements. In fact,

    $$[s-(q + 1)j]q^{2}\equiv sq^{2}-(q + 1)j(q^{2}+ 1)+(q + 1)j\equiv s+(q + 1)j\mod~(q + 1)n. $$

Similarly, we have

$$[s+(q + 1)j]q^{2}\equiv sq^{2}+(q + 1)j(q^{2}+ 1)-(q + 1)j\equiv s-(q + 1)j\mod~(q + 1)n. $$

Suppose that \(\mathbb {C}_{i}\) contains only one element. Since

$$s-\frac{(q + 1)(n-1)}{2}\leq s-(q + 1)j\leq s-q-1 $$

and

$$s+q + 1\leq s+(q + 1)j\leq s+\frac{(q + 1)(n-1)}{2} $$

holds, it follows that s − (q + 1)j = s + (q + 1)j or (q + 1)n + s − (q + 1)j = s + (q + 1)j. If s − (q + 1)j = s + (q + 1)j, we have 2(q + 1)j ≡ 0 mod (q + 1)n. This implies that 2j = n. However, 2 ≤ 2jn − 1, this gives a contradiction. If (q + 1)n + s − (q + 1)j = s + (q + 1)j, then we have 2(q + 1)j ≡ 0 mod (q + 1)n. This implies that 2j = n. However, 2 ≤ 2jn − 1, this also gives a contradiction. Therefore,

$$\mathbb{C}_{s-(q + 1)j}=\{s-(q + 1)j, s+(q + 1)j\}~for~1\leq j\leq\frac{n-1}{2}. $$

It remains to prove that \(\mathbb {C}_{s-(q + 1)k}\) and \(\mathbb {C}_{s-(q + 1)l}\) are distinct for \(1\leq k\neq l\leq \frac {n-1}{2}\). Suppose that \(\mathbb {C}_{s-(q + 1)k}=\mathbb {C}_{s-(q + 1)l}\) for some integers k and l with \(1\leq k\neq l\leq \frac {n-1}{2}\). Then we can obtain a contradiction as follows:

Since \(s-\frac {(q + 1)(n-1)}{2}\leq s-(q + 1)k\leq s-q-1\) and \(s-\frac {(q + 1)(n-1)}{2}\leq s-(q + 1)l\leq s-q-1\), we have

$$s-(q + 1)k=s-(q + 1)l~ or ~s-(q + 1)k=s+(q + 1)l. $$

If the former holds, then it follows that k = l, a contradiction. If the latter holds, then k + l = mn, where \(m\in \mathbb {Z}\), this also give a contradiction. Thus, for \(1\leq k\neq l\leq \frac {n-1}{2}\), \(\mathbb {C}_{s-(q + 1)k}\) and \(\mathbb {C}_{s-(q + 1)l}\) are distinct.

Note that \(\mathbb {C}_{s-(q + 1)}\), \(\mathbb {C}_{s-2(q + 1)}\), ⋯, \(\mathbb {C}_{s-\frac {(q + 1)(n-1)}{2}}\) are distinct which has two elements and \(\mathbb {C}_{s}\) has only one element, so the result gives all q2-cyclotomic cosets modulo (q + 1)n. This completes the proof. □

In order to construct AQECCs, we give a sufficient condition for η-constacyclic codes which contain their Hermitian dual codes. We consider two cases.

Case 1: :

e1(mod 4)

Theorem 4.2

Let q = 2e with e ≡ 1 (mod 4) . Let \(n=\frac {q^{2}+ 1}{5}\),\(s=\frac {(q + 6)n}{2}\) and\(r=\frac {q^{2}-q}{2}\), where \(r=s-\frac {(q + 1)(n + 1)}{2}\). If \(\mathcal C\) is an η-constacyclic code over \(\mathbb {F}_{q^{2}}\) of length n with defining set \(Z=\bigcup _{j = 0}^{\delta } \mathbb {C}_{r-(q + 1)j}\), where \(0\leq \delta \leq \frac {3q-16}{10}\), then \(\mathcal {C}^{\bot _{h}}\subseteq \mathcal {C}\).

Proof

First note that q ≡ 2 mod 10. By Lemma 2.1, it is sufficient to prove that ZZq = . Suppose that ZZq. Then, there exist two integers k, l, where \(0\leq k,~l\leq \frac {3q-16}{10}\), such that r − (q + 1)k ≡−[r − (q + 1)l]q𝜖 mod (q + 1)n for 𝜖 = 1 and 𝜖 = 3.

If 𝜖 = 1, then r − (q + 1)k ≡−[r − (q + 1)l]q mod (q + 1)n. It is equivalent to (q + 1)r ≡ (q + 1)(k + lq) mod (q + 1)n, which means q2 − 5q − 4 ≡ 10k + 10lq mod 2(q2 + 1). As \(0\leq k,~l\leq \frac {3q-16}{10}\), it follows that 0 ≤ 10k, 10l ≤ 3q − 16, we can obtain a contradiction by considering the following two cases.

  • (i) 0 ≤ 10k ≤ 2q − 1. Then 0 ≤ 10k + 10lq ≤ 3q2 − 14q − 1. We express 10k in the form 10k = tq + u, where t = 0,1 and 0 ≤ uq − 1. If 0 ≤ 10k + 10lq ≤ 2q2 + 1, then q2 − 5q − 4 ≡ 10k + 10lq mod 2(q2 + 1), where q2 − 5q − 4 = (q − 6)q + q − 4 and 10k + 10lq = (10l + t)q + u. By the division algorithm, it must be q − 6 = 10l + t, then we have q = 10l + t + 6. This contradicts the form of q. If 2q2 + 2 ≤ 10k + 10lq ≤ 3q2 − 14q − 1, then 0 ≤ 10k + 10lq − 2(q2 + 1) ≤ q2 − 14q − 3. This gives that q2 − 5q − 4 = 10k + 10lq − 2(q2 + 1), which is equivalent to (3q − 6)q + q − 2 = (10l + t)q + u. By the division algorithm, there is 3q = 10l + t + 6. Since \(l=\frac {3q-t-6}{10}>\frac {3q-16}{10}\), it is impossible.

  • (ii) 2q ≤ 10k ≤ 3q − 16. Then 2q ≤ 10k + 10lq ≤ 3q2 − 13q − 16. We express 10k in the form 10k = 2q + u, where 0 ≤ uq − 16. If 2q ≤ 10k + 10lq ≤ 2q2 + 1, then q2 − 5q − 4 = 10k + 10lq = (2 + 10l)q + u. Hence we have q = 10l + 8 by the division algorithm immediately. This contradicts the form of q. If 2q2 + 2 ≤ 10k + 10lq ≤ 3q2 − 13q − 16, then 0 ≤ 10k + 10lq − 2(q2 + 1) ≤ q2 − 13q − 18. This gives that q2 − 5q − 4 = 10k + 10lq − 2(q2 + 1), which is equivalent to 3q2 − 5q − 2 = (3q − 6)q + q − 2 = (10l + 2)q + u. Then we have 3q − 6 = 10l + 2. Since \(l=\frac {3q-8}{10}>\frac {3q-16}{10}\), it is also a contradiction.

If 𝜖 = 3, then r − (q + 1)k ≡−[r − (q + 1)l]q3 mod (q + 1)n. Since q4 ≡ 1 mod (q + 1)n, we have

$$[r-(q + 1)k]q\equiv-[r-(q + 1)l]q^{4}\mod(q + 1)n, $$

which is equivalent to r − (q + 1)l ≡−[r − (q + 1)k]q mod (q + 1)n. Since k and l is equivalent in case (1), then we know that it is also a contradiction. Hence, we conclude that ZZq = . The desired result follows. □

By using Theorem 4.2, we give the first construction of AQECCs in this paper.

Theorem 4.3

Let q = 2ewith e ≡ 1(mod 4). Let \(n=\frac {q^{2}+ 1}{5}\), then there exist asymmetric quantum codes with parameters\([[n, n-2(s+t + 2), (2s + 3)/(2t + 3)]]_{q^{2}}\), where \(0\leq t\leq s\leq \frac {3q-16}{10}\).

Proof

Suppose that \(\mathcal {C}_{2}\) is a q2-ary η-constacyclic code of length \(n=\frac {q^{2}+ 1}{5}\), \(r=\frac {q^{2}-q}{2}\), where \(r=s-\frac {(q + 1)(n + 1)}{2}\), with defining set \(Z_{2}=\bigcup _{i = 0}^{t}\mathbb {C}_{r-(q + 1)i}\), where \(0\leq t\leq \frac {3q-16}{10}\). Then the dimension of \(\mathcal {C}_{2}\) is n − (2t + 2). Observe that Z2 consists of 2t + 2 consecutive integers {r − (q + 1)t,⋯ , r, r + (q + 1),⋯ , r + (q + 1)(t + 1)}. From Theorem 2.2, the minimum distance of \(\mathcal {C}_{2}\) is at least 2t + 3. From Lemma 2.4, we can see that the minimum distance of \(\mathcal {C}_{2}\) is 2t + 3. Hence \(\mathcal {C}_{2}\) is a q2-ary η-constacyclic code with parameters \([n, n-(2t + 2), 2t + 3]_{q^{2}}\).

Now suppose that \(\mathcal {C}_{1}\) is q2-ary η-constacyclic code of length \(n=\frac {q^{2}+ 1}{5}\), \(r=\frac {q^{2}-q}{2}\), where \(r=s-\frac {(q + 1)(n + 1)}{2}\), with defining set \(Z_{1}=\bigcup _{i = 0}^{s}\mathbb {C}_{r-(q + 1)i}\), where \(0\leq t\leq s\leq \frac {3q-16}{10}\). Similar to discussion of \(\mathcal {C}_{2}\), \(\mathcal {C}_{1}\) has parameters \([n, n-(2s + 2), 2s + 3]_{q^{2}}\). Then from Lemma 2.3, Theorem 3.1 and 4.2, there exist asymmetric quantum codes with parameters \([[n, n-2(s+t + 2), (2s + 3)/(2t + 3)]]_{q^{2}}\). □

Remark 4.4

From Theorem 4.3, d z + d x = 2s + 2t + 6. Then from Theorem 3.2, the constructed asymmetric quantum codes with parameters \([[n,n-2(s+t + 2),(2s + 3)/(2t + 3)]]_{q^{2}}\) attain asymmetric quantum Singleton bound. Hence, these asymmetric quantum codes are optimal.

Case 2: :

e3(mod 4)

In this case, we can obtain the sufficient condition for η-constacyclic codes which contain their Hermitian dual codes as follows. The proof is similar to that in Theorem 4.2 and we omit it here.

Theorem 4.5

Let q = 2ewith e ≡ 3(mod 4). Let \(n=\frac {q^{2}+ 1}{5}\),\(s=\frac {(q + 6)n}{2}\) and\(r=\frac {q^{2}-q}{2}\), where \(r=s-\frac {(q + 1)(n + 1)}{2}\). If \(\mathcal C\) is an η-constacyclic code over \(\mathbb {F}_{q^{2}}\) of length n with defining set \(Z=\bigcup _{j = 0}^{\delta } \mathbb {C}_{r-(q + 1)j}\), where \(0\leq \delta \leq \frac {3q-14}{10}\), then \(\mathcal {C}^{\bot _{h}}\subseteq \mathcal {C}\).

We can use Theorem 4.5 to construct the second family of AQECCs in this paper.

Theorem 4.6

Let q = 2e with e ≡ 3(mod 4). Let \(n=\frac {q^{2}+ 1}{5}\), then there exist asymmetric quantum codes with parameters\([[n, n-2(s+t + 2), (2s + 3)/(2t + 3)]]_{q^{2}}\), where \(0\leq t\leq s\leq \frac {3q-14}{10}\).

Proof

Suppose that \(\mathcal {C}_{2}\) is a q2-ary η-constacyclic code of length \(n=\frac {q^{2}+ 1}{5}\), \(r=\frac {q^{2}-q}{2}\), where \(r=s-\frac {(q + 1)(n + 1)}{2}\) with defining set \(Z_{2}=\bigcup _{i = 0}^{t}\mathbb {C}_{r-(q + 1)i}\), where \(0\leq t\leq \frac {3q-14}{10}\). Then the dimension of \(\mathcal {C}_{2}\) is n − (2t + 2). Observe that Z2 consists of 2t + 2 consecutive integers {r − (q + 1)t,⋯ , r, r + (q + 1),⋯ , r + (q + 1)(t + 1)}. From Theorem 2.2, the minimum distance of \(\mathcal {C}_{2}\) is at least 2t + 3. From Lemma 2.4, we can see that the minimum distance of \(\mathcal {C}_{2}\) is 2t + 3. Hence \(\mathcal {C}_{2}\) is a q2-ary η-constacyclic code with parameters \([n, n-(2t + 2), 2t + 3]_{q^{2}}\).

Now suppose that \(\mathcal {C}_{1}\) is q2-ary η-constacyclic code of length \(n=\frac {q^{2}+ 1}{5}\), \(r=\frac {q^{2}-q}{2}\), where \(r=s-\frac {(q + 1)(n + 1)}{2}\), with defining set \(Z_{1}=\bigcup _{i = 0}^{s}\mathbb {C}_{r-(q + 1)i}\), where \(0\leq t\leq s\leq \frac {3q-14}{10}\). Similar to the discussion of \(\mathcal {C}_{2}\), \(\mathcal {C}_{1}\) has parameters \([n, n-(2s + 2), 2s + 3]_{q^{2}}\). Then from Lemma 2.3, Theorem 3.1 and 4.5, there exist asymmetric quantum codes with parameters \([[n, n-2(s+t + 2), (2s + 3)/(2t + 3)]]_{q^{2}}\). □

Remark 4.7

From Theorem 4.6, d z + d x = 2s + 2t + 6. Then from Theorem 3.2, the constructed asymmetric quantum codes with parameters \([[n,n-2(s+t + 2),(2s + 3)/(2t + 3)]]_{q^{2}}\) attain asymmetric quantum Singleton bound. Hence, these asymmetric quantum codes are optimal.

Example 4.8

Let q = 25 = 32, then \(n=\frac {q^{2}+ 1}{5}= 205\), \(r=\frac {q^{2}-q}{2}= 496\). Suppose that the defining set of η-constacyclic code \(\mathcal {C}_{2}\) is given by \(Z_{2}=\mathcal {C}_{496}=\{496,529\}\). Then \(\mathcal {C}_{2}\) is a MDS code with parameters [205,203,3]1024. We also suppose the defining set of η-constacyclic code \(\mathcal {C}_{1}\) is given by \(Z_{1}=\mathcal {C}_{496}=\{496,529\}\). Then, \(\mathcal {C}_{1}\) is a MDS code with parameters [205,203,3]1024. From Theorem 3.2, there exists an optimal asymmetric quantum code with parameters [[205,201,3/3]]1024. By taking the different defining sets of \(\mathcal {C}_{1}\) and \(\mathcal {C}_{2}\), we can get optimal asymmetric quantum codes in Table 1.

Table 1 Optimal asymmetric quantum codes

5 Conclusion

In this paper, we have constructed two classes of AQECCs from constacyclic codes over the finite field \(\mathbb {F}_{q^{2}}\) of length \(n=\frac {q^{2}+ 1}{5}\), where q is an odd power of an even prime. The construction is through cyclotomic cosets and ideal theory. According to the asymmetric quantum Singleton bound, the resulting AQECCs are optimal and different from the codes available in the literature. It would be interesting to construct optimal AQECCs from other types of constacyclic codes.