1 Introduction

Quantum error-correcting codes (QECCs) are important for construction of quantum computers, as the fault-tolerant quantum computation is based on QECC [13]. There are two kinds of errors in quantum information: One is called a bit error, and the other is called a phase error. Steane [16] first studied the asymmetry between probabilities of the bit and the phase errors, and he also considered QECC for asymmetric quantum errors, which are called asymmetric quantum error-correcting codes (AQECC). Research on AQECC has become very active recently; see [7, 9, 16] and the references therein.

On the other hand, in the study of error-correcting codes, it is important to know the optimal performance of codes. For classical error-correcting codes, the Gilbert–Varshamov (GV) bound [11] is a sufficient condition for existence of codes whose parameters satisfies the GV bound. By the GV bound, one can know that the optimal performance of classical codes is at least as good as the GV bound.

For QECC, Ekert and Macchiavello obtained a GV-type existential bound for general QECCs. An important subclass of general QECCs is the stabilizer codes [2, 3, 8], as they enable efficient encoding and decoding. Calderbank et al. [2] obtained a GV-type existential bound for the stabilizer QECCs. After that, Feng and Ma [6] and Jin and Xing [10] obtained improved versions of GV-type bounds for the stabilizer QECCs.

The Calderbank–Shor–Steane (CSS) QECCs [4, 15] are an important subclass of the stabilizer QECCs, as the CSS codes enable more efficient implementation of the fault-tolerant quantum computation than the stabilizer codes.

Those existential bounds [2, 4,5,6, 10] did not consider the asymmetric quantum errors, while the asymmetry in quantum errors is important in practice [14]. As far as the author knows, nobody has reported existential bounds for the stabilizer or the CSS QECC for asymmetric quantum errors. In this note, we report such ones. Our proof arguments are similar to ones in [2, 4].

2 A GV-type existential bound for the CSS codes

An \([[n,k,d_x,d_z]]_q\) QECC encodes k q-ary qudits into n q-ary qudits and detects up to \(d_x\) bit errors and up to \(d_z\) phase errors. It is known [1, 3] that a nested classical code \(C_2 \subset C_1 \subset \mathbf {F}_q^n\) with dimensions \(k_2\) and \(k_1\) can construct an \([[n,\dim C_1-\dim C_2]]_q\) CSS code, where \(\mathbf {F}_q\) is a finite field with q elements. A quantum error can be expressed as a pair \((\mathbf {e}_x\), \(\mathbf {e}_z)\), where \(\mathbf {e}_x \in \mathbf {F}_q^n\) corresponds to the bit error component of a quantum error and \(\mathbf {e}_x \in \mathbf {F}_q^n\) does to the phase error component.

Let \(\mathrm {GL}_n(\mathbf {F}_q)\) be the group of \(n\times n\) invertible matrices over \(\mathbf {F}_q\). Let \(B_n = \{ (C_1\), \(C_2 ) \mid \) \(C_2 \subset C_1 \subset \mathbf {F}_q^n\), \(\dim C_1 = k_1\), \(\dim C_2 = k_2\}\). For a nonzero vector \(\mathbf {e} \in \mathbf {F}_q^n\), let \(B_{n,x}(\mathbf {e})\) (resp. \(B_{n,z}(\mathbf {e})\)) be the set of nested code pairs that cannot detect \(\mathbf {e}\) as a bit error (resp. a phase error), that is, \(B_{n,x}(\mathbf {e}) = \{ (C_1, C_2) \in B_n \mid \mathbf {e} \in C_1 {\setminus } C_2 \}\) (resp. \(B_{n,z}(\mathbf {e}) = \{ (C_1, C_2) \in B_n \mid \mathbf {e} \in C_2^\perp {\setminus } C_1^\perp \}\)), where \(C_1^\perp \) is the dual code of \(C_1\) with respect to the standard inner product.

Lemma 1

For nonzero \(\mathbf {e}\), we have

$$\begin{aligned} \sharp B_{n,x}(\mathbf {e})= & {} \frac{q^{k_1}-q^{k_2}}{q^n-1}\sharp B_{n},\\ \sharp B_{n,z}(\mathbf {e})= & {} \frac{q^{n-k_2}-q^{n-k_1}}{q^n-1}\sharp B_{n}. \end{aligned}$$

Proof

As each pair \(C_2 \subset C_1\) has \(\sharp C_1 {\setminus } C_2 = q^{k_1}-q^{k_2}\) undetectable errors, we have

$$\begin{aligned} \frac{\sum _{\mathbf {0}\ne \mathbf {e}\in \mathbf {F}_q^n} \sharp B_{n,x}(\mathbf {e})}{\sharp B_{n}} = q^{k_1}-q^{k_2}. \end{aligned}$$

For nonzero \(\mathbf {e}_1, \mathbf {e}_2 \in \mathbf {F}_q^n\), we claim \(\sharp B_{n,x}(\mathbf {e}_1) = \sharp B_{n,x}(\mathbf {e})_2\). Assuming the claim, we have

$$\begin{aligned} \sum _{\mathbf {0}\ne \mathbf {e}\in \mathbf {F}_q^n} \sharp B_{n,x}(\mathbf {e}) = (q^n-1) \sharp B_{n,x}(\mathbf {e}). \end{aligned}$$

Combining these two equalities, we have

$$\begin{aligned} \sharp B_{n,x}(\mathbf {e}) = \frac{q^{k_1}-q^{k_2}}{q^n-1}\sharp B_{n}. \end{aligned}$$

We finish the proof by proving the claim. Let \(\mathbf {e}_1, \mathbf {e}_2\) be nonzero vectors. We have

$$\begin{aligned} \sharp B_{n,x}(\mathbf {e}_1)= & {} \sharp \{ (C_1, C_2) \in B_n \mid \mathbf {e}_1 \in C_1 {\setminus } C_2 \}\\= & {} \sharp \{ (\tau C_1, \tau C_2) \mid \tau \in \mathrm {GL}_n(\mathbf {F}_q), \mathbf {e}_1 \in C_1 {\setminus } C_2 \}\\= & {} \sharp \{ (\tau C_1, \tau C_2) \mid \tau \in \mathrm {GL}_n(\mathbf {F}_q), \tau ' \mathbf {e}_1 \in C_1 {\setminus } C_2 \}\\= & {} \sharp \{ ( C_1, C_2)\in B_n \mid \tau ' \mathbf {e}_1 \in C_1 {\setminus } C_2 \}\\= & {} \sharp B_{n,x}(\tau '\mathbf {e}_1), \end{aligned}$$

where \(\tau ' \in \mathrm {GL}_n(\mathbf {F}_q)\) such that \(\tau '\mathbf {e}_1 = \mathbf {e}_2\).

For phase errors, we can make a similar argument with \(C_2^\perp \supset C_1^\perp \). \(\square \)

Theorem 2

Let n, \(k_1\), \(k_2\), \(d_x\) and \(d_z\) be positive integers such that

$$\begin{aligned} \frac{q^{k_1}-q^{k_2}}{q^n-1} \sum _{i=1}^{d_x-1} {n \atopwithdelims ()i} (q-1)^i + \frac{q^{n-k_2}-q^{n-k_1}}{q^n-1}\sum _{i=1}^{d_z-1} {n \atopwithdelims ()i} (q-1)^i < 1, \end{aligned}$$
(1)

then an \([[n,k_1-k_2, d_x,d_z]]_q\) CSS QECC exists.

Proof

Recall that each quantum error can be expressed by its bit error component \(\mathbf {e}_x \in \mathbf {F}_q^n\) and its phase error component \(\mathbf {e}_z \in \mathbf {F}_q^n\). The bit error component \(\mathbf {e}_x\) cannot be detected by codes in \(B_{n,x}(\mathbf {e}_x)\), and the phase error component \(\mathbf {e}_z\) cannot be detected by codes in \(B_{n,z}(\mathbf {e}_z)\). The detectabilities of the bit errors and the phase errors are independent of each other. Therefore, if Eq. (1) holds, then there exists at least one \((C_1, C_2) \in B_n\) that can detect all the bit errors with weight up to \(d_x-1\) and all the phase errors with weight up to \(d_z-1\), which implies it is an \([[n,k_1-k_2, d_x, d_z]]_q\) quantum code. \(\square \)

Classical coding theorists often have interest in asymptotic versions of GV-type existential bounds [11]. They are stated in terms of information rate and relative distance of classical error-correcting codes. In the classical error correction, information rate is the ratio of the number of information symbols to the code length, and relative distance is the ratio of the minimum distance to the code length.

We can also derive an asymptotic version of Theorem 2. For an \([[n,k, d_x, d_z]]_q\) AQECC, we may define the relative distance \(\delta _x\) for bit errors as \(d_x / n\) and the relative distance \(\delta _z\) for bit errors as \(d_z / n\). The information rate of an \([[n,k]]_q\) QECC is defined as k / n [13].

Recall [11] that for \(0 \le \delta \le 1-1/q\) we have

$$\begin{aligned} \sum _{i=1}^{\lfloor n\delta \rfloor } {n \atopwithdelims ()i} (q-1)^i \le q^{nh_q(\delta )}, \end{aligned}$$
(2)

where \(h_q(\delta )= \delta \log _q(q-1) - \delta \log _q \delta - (1-\delta )\log _q(1-\delta )\).

Corollary 3

Let \(\delta _x\) and \(\delta _z\) be real numbers such that \(0 \le \delta _x \le 1-1/q\) and \(0 \le \delta _z \le 1-1/q\). If

$$\begin{aligned} h_q(\delta _x)< & {} 1-R_1 , \end{aligned}$$
(3)
$$\begin{aligned} h_q(\delta _z)< & {} R_2, \hbox { and } \nonumber \\ 0\le & {} R_1-R_2, \end{aligned}$$
(4)

then, for sufficiently large n, there exists an \([[n,\lfloor n R_1\rfloor - \lceil nR_2\rceil ,\lfloor n\delta _x\rfloor ,\lfloor n\delta _z\rfloor ]]_q\) CSS QECC exists.

In Corollary 3, \(R_1\) is the information rate of classical ECC \(C_1\), and \(R_2\) is the information rate of classical ECC \(C_2\). The corresponding quantum CSS code has information rate \(R_1-R_2\), relative distance \(\delta _x\) for bit errors, and relative distance \(\delta _z\) for phase errors.

Proof

Assume that Eq. (3) holds. Then for sufficiently large n, we have

$$\begin{aligned}&nh_q(\delta _x)< n-nR_1 \nonumber \\&\quad \Rightarrow q^{nh_q(\delta _x)}< (1/2) \frac{q^n}{q^{nR_1}} \nonumber \\&\quad \Rightarrow \frac{q^{nR_1}}{q^n}q^{nh_q(\delta _x)}< 1/2\nonumber \\&\quad \Rightarrow \frac{q^{\lfloor nR_1\rfloor }-q^{\lceil nR_2\rceil }}{q^n-1} \sum _{i=1}^{\lfloor n\delta _x\rfloor -1} {n \atopwithdelims ()i} (q-1)^i< 1/2. \end{aligned}$$
(5)

Similarly, for sufficiently large n Eq. (4) implies

$$\begin{aligned}&nh_q(\delta _z)< nR_2 \nonumber \\&\quad \Rightarrow q^{nh_q(\delta _z)}< (1/2) \frac{q^n}{q^{n(1-R_2)}} \nonumber \\&\quad \Rightarrow \frac{q^{n(1-R_2)}}{q^n}q^{nh_q(\delta _z)}< 1/2\nonumber \\&\quad \Rightarrow \frac{q^{n- \lceil nR_2\rceil }-q^{n-\lfloor nR_1\rfloor }}{q^n-1} \sum _{i=1}^{\lfloor n\delta _z\rfloor -1} {n \atopwithdelims ()i} (q-1)^i< 1/2. \end{aligned}$$
(6)

Equations (5) and (6) imply that the assumption of Theorem 2 becomes true for sufficiently large n, which shows Corollary 3. \(\square \)

3 A GV-type existential bound for the stabilizer codes

Let \(C \subset \mathbf {F}_q^{2n}\) be a \(\mathbf {F}_q\)-linear space of dimension \(n-k\) self-orthogonal with respect to the standard symplectic inner product in \(\mathbf {F}_q^{2n}\). C can be viewed as an \([[n,k]]_q\) stabilizer QECC. Let \(A_n\) be the set of all such C’s. A nonzero \(\mathbf {e} \in \mathbf {F}_q^{2n}\) can be viewed as a quantum error on n qudits. Let \(A_n(\mathbf {e})\) be the set of stabilizer codes that cannot detect \(\mathbf {e}\) as an error, that is, \(A_n(\mathbf {e}) = \{ C \in A_n \mid \mathbf {e} \in C^{\perp \mathrm {s}} {\setminus } C \}\), where \(C^{\perp \mathrm {s}}\) is the dual of C with respect to the symplectic inner product. Then \(\sharp A_n(\mathbf {e}) \le \frac{1-q^{-2k}}{1-q^{-2n}}\cdot \frac{1}{q^{n-k}}\sharp A_n\) [12, Lemma 9].

Recall that, for C to be \([[n,k,d_x,d_z]]_q\), C must be able to detect all \(d_x\) or less bit errors and all \(d_z\) or less phase errors. The number of such errors is

$$\begin{aligned} \sum _{i=1}^{d_x-1} {n \atopwithdelims ()i}(q-1)^i \times \sum _{i=1}^{d_z-1} {n \atopwithdelims ()i}(q-1)^i. \end{aligned}$$

By the same argument as [12, Remark 10] (or as the last section), we have the following theorem:

Theorem 4

Let n, \(k_1\), \(k_2\), \(d_x\) and \(d_z\) be positive integers such that

$$\begin{aligned} \frac{1-q^{-2k}}{1-q^{-2n}}\cdot \frac{1}{q^{n-k}} \sum _{i=1}^{d_x-1} {n \atopwithdelims ()i} (q-1)^i\times \sum _{i=1}^{d_z-1} {n \atopwithdelims ()i} (q-1)^i< 1 \end{aligned}$$

then there exists an \([[n,k,d_x,d_z]]_q\) stabilizer QECC. \(\square \)

By almost the same argument as Corollary 3, we can derive the following asymptotic version of Theorem 4.

Corollary 5

Let \(\delta _x\) and \(\delta _z\) be real numbers such that \(0 \le \delta _x \le 1-1/q\) and \(0 \le \delta _z \le 1-1/q\). If

$$\begin{aligned} h_q(\delta _x)+h_q(\delta _z) < 1-R \le 1 , \end{aligned}$$
(7)

then, for sufficiently large n, there exists an \([[n, \lfloor nR\rfloor , \lfloor n\delta _x\rfloor , \lfloor n\delta _z \rfloor ]]_q\) stabilizer QECC. \(\square \)

The quantum stabilizer code in Corollary 5 has information rate R, relative distance \(\delta _x\) for bit errors, and relative distance \(\delta _z\) for phase errors.

By the relation between the CSS and the stabilizer QECCs [3], we see that the assumption in Corollary 3 is less demanding than that in Corollary 5 for the same n, \(R=R_1-R_2\), \(\delta _x\) and \(\delta _z\), which means that Corollary 5 is a stronger existential bound than Corollary 3.

Remark 6

Theorems 2 and 4 and Corollaries 3 and 5 do not admit direct comparisons against previously known GV-type bounds even when \(d_x = d_z\). The reason is as follows: For a binary QECC to be \([[n,k,2,2]]_2\), it must detect at least \(n^2\) different errors. On the other hand, for a binary \([[n,k]]_2\) QECC to detect all single symmetric errors, it only has to detect 3n errors, which is generally much fewer than \(n^2\). The above example shows that the number of asymmetric quantum errors is much different from that of corresponding symmetric quantum errors, even if we assume the same number of bit errors and phase errors in asymmetric quantum errors.

In addition, the famous \([[5,1,3]]_2\) binary stabilizer code in [3, 8] can detect up to four bit errors if there is no phase error, and can detect up to four phase errors if there is no bit error. Thus, it is simultaneously both \([[5,1,1,5]]_2\) AQECC and \([[5,1,5,1]]_2\) AQECC. This phenomenon makes the direct comparison even more difficult.