betaFeedback

WorksPhysics and Astronomy

Linear-Time Encodable Quantum Codes near the CSS GV Bound

Abstract

We construct quantum CSS codes with rate-distance tradeoff approaching the CSS GV bound, which can be encoded by a quantum circuit of logarithmic depth and a linear number of gates. Our construction is heavily inspired by a work of Brehm and Resch and can be viewed as a quantum analogue of classical repeat multiple accumulate codes. The encoder has a particularly simple structure, consisting of a single constant depth outer quantum circuit followed by several classical accumulation and inverse-accumulation layers.

Introduction

Recently, [WLZH26] constructed asymptotically good quantum codes that can be encoded and unencoded by quantum circuits consisting of a linear number of gates. These codes are relevant to the channel capacity setting, where a sender may perfectly encode a state before sending it over a noisy channel. Even when perfect encoding and unencoding is not guaranteed, a quantum processor can use an error-correcting code to run the encoding and unencoding operations at the logical level; low complexity encoding and unencoding is highly desirable to avoid blowup in the task being performed.

[WLZH26]’s construction is inspired by [24]’s construction of classical linear time encodable and decodable codes. While these codes have linear rate and distance, the rate-distance tradeoffs depend on the underlying expander graph and remain far from optimal. The same holds for [WLZH26]’s construction of linear time encodable and unencodable quantum error-correcting codes.

In the 2000s, a line of work [8, 20, 19, 5, 9, 22 KZKJ08] analyzed (classical) error-correcting codes with very fast encoding, called repeat multiple accumulate (RMA) codes. In an RMA code, the encoder starts by repeating each of the n/sn/s bits of the plaintext ss times. It then performs several rounds of permute and accumulate on the resulting nn bits. In each permute and accumulate round, first a random coordinate permutation is applied, followed by an accumulation, which is a prefix sum modulo 22. Importantly, accumulation can be implemented very quickly, in a log⁡n\log n depth circuit consisting of just 2n−12n - 1 XORs [16].

The distance of this very simple iterative encoder was analyzed in [9], who showed that as the number mm of accumulation rounds grows, the distance of the resulting RMA code approaches the Gilbert-Varshamov (GV) bound. The GV bound represents the best known achievable tradeoff of rate and distance in binary codes. The fact that such a simple encoder approaches it is quite beautiful.

In this work, we quantize RMA codes. Our main result is a construction of a quantum CSS code with an extremely efficient encoder, whose rate-distance tradeoff lies near the quantum CSS GV bound. By extremely efficient, we mean not only that the encoding circuit is of linear size and logarithmic depth, but the constants are also very reasonable.

Theorem 1.1. For any even s≥4s \ge4 and ε>0\varepsilon> 0, there is a quantum CSS code with rate R=1−2/sR = 1 - 2/s and also has both XX-distance and ZZ-distance ≥(δCSS-GV(R)−ε)⋅n\ge(\delta_{\mathrm{CSS\text{-}GV}}(R) - \varepsilon) \cdot n. The encoding circuit acts on (1−2/s)n(1 - 2/s)n logical qubits and n/sn/s ∣0⟩\lvert0 \rangle and n/sn/s ∣+⟩\lvert+ \rangle ancilla qubits, has depth O(log⁡n)O(\log n), and consists of O(n)O(n) CNOT gates.

In the above theorem, δGV(R)\delta_{\mathrm{GV}}(R) represents the largest relative distance we know to be achievable by a rate RR CSS code. It is achieved by a CSS code with randomly sampled XX and ZZ stabilizers.

Definition 1.2 ([7]). δCSS-GV(R)=h−1(1−R2)∈[0,12]\delta_{\mathrm{CSS\text{-}GV}}(R) = h^{-1}\left(\frac{1-R}{2}\right) \in[0, \frac{1}{2}].

In this work, we prove that the relative distance of our quantum code approaches δCSS-GV\delta_{\mathrm{CSS\text{-}GV}} as the number mm of accumulation rounds grows, but we do not give an explicit characterization of the rate of convergence. However, in practice, it appears that distance converges quite quickly to the CSS GV bound. In Figure 1, we numerically estimate the distances of our quantum code for a few code rates and number of encoding rounds. We see that after just 4 encoding rounds, the relative distance of our code is within 0.001 of the CSS GV bound; after 6, it is within 10−710^{-7}.

ssCode Ratem=3m=3m=4m=4m=5m=5m=6m=6CSS GV Bound
40.50.03118300.04131540.04169150.04169270.0416927
60.6670.01691720.02419120.02462070.02462350.0246235
80.750.01117110.01669380.01712450.01712870.0171287

Figure 1. Rates and numerically estimated asymptotic distances of our quantum code. The parameter mm describes the number of encoding rounds and controls the size of the encoding circuit, which has depth ≤2s+4mlog⁡2(n)\le2s+4m\log_2(n) and consists of ≤(4m+2)n\le(4m+2)n CNOT gates acting on (1−2s)n(1-\frac{2}{s})n logical qubits and n/sn/s ∣0⟩|0\rangle and n/sn/s ∣+⟩|+\rangle ancillas qubits.

Overview

A direct attempt to interpret a RMA code as a quantum code leads to horrible quantum distance. The reason is that, assuming the number of accumulation rounds is constant (as is typically the case), the dual of an RMA code contains codewords of constant weight.

Seeking to construct quickly encodable classical codes whose dual and itself both lie near the GV bound, [6] get around this by interleaving not just accumulation rounds, but also “derivative” rounds. A derivative simply takes, at every coordinate, the XOR of the current and immediately preceding coordinate, treating the 0’th coordinate as having value 0. It is also the inverse of the accumulation (prefix-sum) operation. The idea is that, while a derivative is unlikely to increase the distance of the code, it is likely to increase the distance of the dual code.

[6] thereby define a new family of codes where after the initial repetition step, permuted accumulation steps are interleaved with permuted derivative steps for mm rounds. They call this family of codes a R(AD)mR(AD)^m code. They analyze this code where the repetition factor is 2, obtaining a rate-12\frac{1}{2} code lying near the GV bound. Importantly, the dual code can be viewed as a R(DA)mR(DA)^m code, where after an initial 2-repetition, permuted derivatives and permuted accumulations are interleaved. They analyze the dual and show that it too is a rate-12\frac{1}{2} code lying near the GV bound.

Interpreted as a quantum code, [6]’s construction is a CSS code encoding 0 qubits. We will modify their construction to obtain a CSS code encoding a linear number of qubits. Let us view the primary R(AD)mR(AD)^m code as the XX stabilizers, and the dual R(DA)mR(DA)^m code as the ZZ stabilizers. By taking the repetition factor to be a larger even s≥4s\ge4, we obtain stabilizers for a CSS code CC of rate 1−2s1-\frac{2}{s}. The ZZ and XX distances respectively reduce to understanding the distance of a classical Ps(DA)mP_s(DA)^m and Ps(AD)mP_s(AD)^m code, which we define to have an ss-parity code as the outer encoder instead of the repetition code. The ss-parity code encodes (1−1s)n(1-\frac{1}{s})n bits by appending a single check-sum bit to each block of s−1s-1 bits. We remark that our analysis of the distance of Ps(DA)mP_s(DA)^m and Ps(AD)mP_s(AD)^m codes follows the same general outline as [6], but some work is needed to get suitable bounds on the outer weight enumerator (see Proposition 3.5). In particular, instead of working with exact spectral approximations to the weight enumerator, we will only give a suitable upper bound (see Definition 3.1), so that all the computed spectral shapes are loose upper bounds on the logarithm of the expected number of codewords of a given weight. This choice of upper bound on the outer weight enumerator cannot be too loose, however: we will need it to be tight enough to prove convergence to the CSS GV bound (see § 4).

One point to note is that this description of a CSS code by its XX and ZZ stabilizer code spaces does not automatically permit a linear time encoding, even if Ps(DA)mP_s(DA)^m and Ps(AD)mP_s(AD)^m themselves have fast encoding algorithms. The reason is that a quantum encoding algorithm needs to coherently encode the logical information into appropriate coset superpositions, which requires a compatible choice of bases for the two nested classical code spaces, not merely efficient encoders for the spaces individually. Instead, we show that one can encode C\mathcal{C} by first applying a quantum outer code, then applying interleaved accumulation and derivative rounds (see § 2.1).

We did not study error-correction/decoding complexity in this work. We remark that there is a vast literature on decoding classical RMA codes via belief propagation [3, 18, 13, 23, 17, 12] – it would be interesting to extend these techniques to our quantum code.

Related Work

The history of RMA codes can be traced back to the early work of [8], who introduced RARA codes consisting of a single repetition and accumulation round. Unfortunately, [14] showed that these single round codes do not have linear distance. This led Pfister and Siegel [20] to first study RAmRA^m codes with multiple permute and accumulate rounds. They numerically estimated the expected number of low weight codewords, and found that with two or more rounds, RAmRA^m codes appeared to have positive relative distance quite close to the GV bound. This was extended in Chapter 3 of Pfister’s thesis [19], which contains the first formal proof that RAmRA^m codes have positive relative distance for m≥2m \ge2, as well as precise numerical estimates of the minimum distance attained by RAmRA^m codes of varying rates and number of rounds. At this point, Pfister’s proof only showed small positive relative distance, still far from the simulated distances approaching the GV bound.

It was a few years before [KZKJ08] used Stirling’s approximation to simplify the complicated IOWEF formulas, leading to the first formal proof of the distances in Pfister’s numerical estimates. This work only showed that as nn grows, the RAmRA^m codes were increasingly likely to have the described minimum distances, but did not dictate how quickly this convergence happened. [9] first showed that the probability an RAmRA^m code has the prescribed distance grows as 1−1/poly⁡(n)1 - 1/\operatorname{poly}(n). Moreover, they prove that this minimum distance converges to the GV bound as mm grows (previously, this was conjectured, but not formally proven). Much more recently, [2] characterize this probability more precisely, proving that we can expect RAmRA^m codes to have good distance for concrete block lengths nn.

We work in our paper with generalized RMA codes, where the first outer encoder is a parity encoder rather than a repetition encoder. Repeat accumulate codes with a different outer encoder were studied by [19, 11, 22]. Pfister studied in his thesis [19] the case where the outer encoder is a parity code. The work of [11] studied repeat accumulate codes with a Hamming outer encoder. [22] generalized this and proved distance approaching the GV bound under general assumptions on the outer encoder and the interleavers.

There have been some attempts to import these classical techniques to the quantum front. [25] construct entanglement assisted quantum codes using classical quaternary irregular repeat-accumulate codes as an underlying graphical architecture, where the sender and receiver are assumed to pre-share some entangled bits. [21], using ideas of recursive encoding, developed quantum serial turbo codes in the standard setting without pre-shared entanglement. They found a fundamental difference in the quantum setting compared to classical: for ordinary stabilizer convolutional codes, the recursive encoder is necessarily catastrophic, which means roughly that small errors are undetectably propagated into large logical errors by the inverse encoder. [10] later gave a proof of the same limitation. They therefore instantiate their code using nonrecursive, noncatastrophic convolutional constituents, resulting in a code with bounded minimum distance. [26] found entanglement-assistance bypasses this limitation and constructed an entanglement-assisted quantum convolutional encoder with improved iterative-decoding on the depolarizing channel. We remark that in all these works above, the focus was on decoders against randomized noise (such as the depolarizing channel). The work of [1] analyzes the minimum distance of a quantum turbo-code, though they only showed small polynomial distance for their particular ensemble. As far as we know, we are the first to prove good (in fact, near the CSS GV bound) quantum distance of a quantum code with an iterated encoder.

The Code

We will build our code by first defining an “outer code” C0C_0, then amplifying its distance by applying a sequence of unitaries to obtain the final code CC.

The Outer Code. Let s≥4s \ge4 be an even integer, and let PsP_s denote the (classical) parity code of block length ss: that is, it consists of length ss binary strings with an even number of 1’s. Note that PsP_s has dimension s−1s-1 as the first s−1s-1 bits fix the last, and its dual code is RsR_s, the ss-repetition code consisting of just two codewords, 0s0^s and 1s1^s.

The code P~s:=Psn/s\widetilde{P}_s := P_s^{n/s} is an nn-bit code where codewords consist of x1∥x2∥⋯∥xn/sx_1 \Vert x_2 \Vert\cdots\Vert x_{n/s} where each xi∈Psx_i \in P_s. It has rate R=1−1/sR = 1 - 1/s, and its dual code is R~s:=Rsn/s\widetilde{R}_s := R_s^{n/s} consisting of nn-bit codewords y1∥y2∥⋯∥yn/sy_1 \Vert y_2 \Vert\cdots\Vert y_{n/s} where each yi∈Rsy_i \in R_s. Since ss is even, we have that R~sTR~s=0\widetilde{R}_s^{\mathsf{T}}\widetilde{R}_s = 0. In particular, Sx0=R~sS_x^0 = \widetilde{R}_s, Sz0=R~sS_z^0 = \widetilde{R}_s defines a CSS code C0C_0 on nn qubits with k=(1−2s)⋅nk = (1 - \frac{2}{s}) \cdot n logical qubits.

Amplifier Operators. We define two (classical) operators on nn bits. The first is the “accumulation” operator, defined as

A=(100⋯0110⋯0111⋯0⋮⋮⋮⋱⋮111⋯1)A = \begin{pmatrix} 1 & 0 & 0 & \cdots& 0 \\ 1 & 1 & 0 & \cdots& 0 \\ 1 & 1 & 1 & \cdots& 0 \\ \vdots& \vdots& \vdots& \ddots& \vdots\\ 1 & 1 & 1 & \cdots& 1 \end{pmatrix}

The second classical operator is the “derivative” operator, defined as

D=(1000⋯001100⋯000110⋯000011⋯00⋮⋮⋮⋮⋱⋮⋮0000⋯11)D = \begin{pmatrix} 1 & 0 & 0 & 0 & \cdots& 0 & 0 \\ 1 & 1 & 0 & 0 & \cdots& 0 & 0 \\ 0 & 1 & 1 & 0 & \cdots& 0 & 0 \\ 0 & 0 & 1 & 1 & \cdots& 0 & 0 \\ \vdots& \vdots& \vdots& \vdots& \ddots& \vdots& \vdots\\ 0 & 0 & 0 & 0 & \cdots& 1 & 1 \end{pmatrix}

One can check that D=A−1D = A^{-1}.

References

  1. [1][AT11] Mamdouh Abbara and Jean-Pierre Tillich. The minimum distance of classical and quantum turbo-codes, 2011. 4arxiv.org/abs/1109.0215
  2. [2][BCF+25] Martijn Brehm, Binyi Chen, Ben Fisch, Nicolas Resch, Ron D. Rothblum, and Hadas Zeilberger. Blaze: Fast snarks from interleaved raa codes. In Advances in Cryptology – EUROCRYPT 2025: 44th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Madrid, Spain, May 4–8, 2025, Proceedings, Part IV, page 123–152, Berlin, Heidelberg, 2025. Springer-Verlag. 3DOI
  3. [3][BDMP98] S. Benedetto, D. Divsalar, G. Montorsi, and F. Pollara. Serial concatenation of interleaved codes: performance analysis, design, and iterative decoding. IEEE Transactions on Information Theory, 44(3):909–926, 1998. 3
  4. [4][Bec75] William Beckner. Inequalities in fourier analysis. Annals of Mathematics, 102(1):159–182, 1975. 28DOI
  5. [5][BMS09] Louay Bazzi, Mohammad Mahdian, and Daniel A. Spielman. The minimum distance of turbo-like codes. IEEE Transactions on Information Theory, 55(1):6–15, 2009. 1DOI
  6. [6][BR26] Martijn Brehm and Nicolas Resch. Linear Time Encodable Binary Code Achieving GV Bound with Linear Time Encodable Dual Achieving GV Bound. In Shubh̄angi Saraf, editor, 17th Innovations in Theoretical Computer Science Conference (ITCS 2026), volume 362 of Leibniz International Proceedings in Informatics (LIPIcs), pages 28:1–28:19, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. 2, 7, 11, 12, 15, 16, 19, 24, 29arxiv.org/abs/2509.07639
  7. [7]A. R. Calderbank and Peter W. Shor. Good quantum error-correcting codes exist. Phys. Rev. A, 54:1098–1105, Aug 1996. 1pubmed.ncbi.nlm.nih.gov/9913578
  8. [8]Dariush Divsalar, Hui Jin, and Robert J McEliece. Coding theorems for “turbo-like” codes. In Proceedings of the annual Allerton Conference on Communication control and Computing, 36:201–210, 1998. 1, 3
  9. [9]Fabio Fagnani and Chiara Ravazzi. Spectra and minimum distances of repeat multiple accumulate codes. In 2008 Information Theory and Applications Workshop, pages 77–86, 2008. 1, 3, 13, 15, 24
  10. [10]Monireh Houshmand and Mark M. Wilde. Recursive quantum convolutional encoders are catastrophic: A simple proof. IEEE Transactions on Information Theory, 59(10):6724–6731, 2013. 4
  11. [11]Alexandre Graell I Amat and Raphael Le Bidan. Minimum distance and convergence analysis of hamming-accumulate-accumulate codes. IEEE Transactions on Communications, 57(12):3518–3523, 2009. 3DOI
  12. [12]Alexandre Graell I Amat and Eirik Rosnes. Good concatenated code ensembles for the binary erasure channel. IEEE Journal on Selected Areas in Communications, 27(6):928–943, 2009. 3arxiv.org/abs/0904.2482
  13. [13]F.R. Kschischang, B.J. Frey, and H.-A. Loeliger. Factor graphs and the sum-product algorithm. IEEE Transactions on Information Theory, 47(2):498–519, 2001. 3
  14. [14]N. Kahale and R. Urbanke. On the minimum distance of parallel and serially concatenated codes. In Proceedings. 1998 IEEE International Symposium on Information Theory (Cat. No.98CH36252), pages 31–, 1998. 3DOI
  15. [16]Richard E. Ladner and Michael J. Fischer. Parallel prefix computation. J. ACM, 27(4):831–838, October 1980. 1, 6DOI
  16. [17]M.M. Mansour. High-performance decoders for regular and irregular repeat-accumulate codes. In IEEE Global Telecommunications Conference, 2004. GLOBECOM ’04., volume 4, pages 2583–2588 Vol.4, 2004. 3
  17. [18]R.J. McEliece, D.J.C. MacKay, and Jung-Fu Cheng. Turbo decoding as an instance of pearl’s ”belief propagation” algorithm. IEEE Journal on Selected Areas in Communications, 16(2):140–152, 1998. 3DOI
  18. [19]Henry David Pfister. On the capacity of finite state channels and the analysis of convolutional accumulate-m codes. PhD thesis, University of California, San Diego, La Jolla, CA, USA, March 2003. 1, 3, 31
  19. [20]H.D. Pfister and P.H. Siegel. The serial concatenation of rate-1 codes through uniform random interleavers. IEEE Transactions on Information Theory, 49(6):1425–1438, 2003. 1, 3DOI
  20. [21]David Poulin, Jean-Pierre Tillich, and Harold Ollivier. Quantum serial turbo codes. IEEE Transactions on Information Theory, 55(6):2776–2798, 2009. 3
  21. [22]Chiara Ravazzi and Fabio Fagnani. Minimum distance properties of multiple-serially concatenated codes. In 2010 6th International Symposium on Turbo Codes and Iterative Information Processing, pages 78–82, 2010. 1, 3DOI
  22. [23]A. Roumy, S. Guemghar, G. Caire, and S. Verdu. Design methods for irregular repeat accumulate codes. In IEEE International Symposium on Information Theory, 2003. Proceedings., pages 2–, 2003. 3
  23. [24]D.A. Spielman. Linear-time encodable and decodable error-correcting codes. IEEE Transactions on Information Theory, 42(6):1723–1731, 1996. 1
  24. [25]Yunjiang Wang, Baoming Bai, Wenbo Zhao, and Xinmei Wang. Entanglement-assisted Quantum Error-correcting Codes Constructed From Irregular Repeat Accumulate Codes. Int. J. Quant. Inf., 07(07):1373–1389, 2009. 3DOI
  25. [26]Mark M. Wilde, Min-Hsiu Hsieh, and Zunaira Babar. Entanglement-assisted quantum turbo codes. IEEE Trans. Inf. Theor., 60(2):1203–1222, February 2014. 4DOI

Paper details

vlnc:W_e8pmw6ns
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents