Research Explained · Error Correction
Good Quantum Error-Correcting Codes Exist
A. R. Calderbank and Peter W. Shor
AT&T Research · 1996 · Difficulty ★★★★☆
Reference
Calderbank, A. R., & Shor, P. W. (1996). Good quantum error-correcting codes exist. Physical Review A, 54, 1098-1105. arXiv:quant-ph/9512032.
Preprint: arXiv:quant-ph/9512032
This page is an independent explanation. For exact wording, figures, and data, read the original paper.
The short version
Calderbank and Shor show how to build quantum error-correcting codes from pairs of classical codes, and prove that families of such codes exist with a positive rate and good error-correcting power. The construction, now called CSS, is the basis for the surface code and many other codes.
Key findings
- Two classical linear codes, one contained in the other, can be combined to produce a quantum code that corrects both bit flips and phase flips.
- The quantum code's parameters follow from the classical codes, so decades of classical coding theory can be reused.
- A quantum analogue of the Gilbert-Varshamov bound shows that good codes exist, whose rate stays positive as the length grows while they correct a fixed fraction of errors.
- The paper also shows how the construction relates to the codes of Shor and Steane, which are special cases.
Background: why this paper was written
In 1995, Shor had found a code that protects one qubit with nine, and Steane in 1996 had found a seven-qubit code. These were single examples, and it was not known whether quantum codes could reach the efficiency of classical codes, which can protect long messages against a constant fraction of errors with a rate that stays above zero. A negative answer would have meant that the overhead of error correction grows with the size of the computation in a way that makes large machines impractical.
Calderbank, an expert in classical coding theory at AT&T Bell Laboratories, and Shor worked on the problem together. They saw that the technique used in the seven-qubit code, which separates bit flips from phase flips and handles each with a classical code, could be generalized.
What the researchers did
The construction starts with two classical linear codes, C1 and C2, where C2 is a subspace of C1. The quantum code space is spanned by states that are equal superpositions of the codewords of C2 shifted by a codeword of C1, one state for each coset of C2 in C1. The number of cosets gives the dimension of the code, so the number of logical qubits is the difference of the dimensions of the two codes.
Errors of the bit flip type are detected and corrected using the parity checks of C1, since the code states are superpositions of codewords of C1. Errors of the phase flip type look like bit flips after a Hadamard transform, and they are corrected using the parity checks of the dual of C2. If C1 corrects t errors and the dual of C2 corrects t errors, then the quantum code corrects arbitrary errors on up to t qubits.
To prove that good codes exist, the authors use a random choice of the classical codes and apply the classical Gilbert-Varshamov argument, which shows that long codes with a given rate and a given relative distance exist. They obtain a quantum version of the bound, showing that there are quantum codes with a rate approaching one minus twice the binary entropy of a function of the relative distance. The rate is positive for error fractions up to a threshold of a few percent in this bound.
Results
The CSS construction is a general recipe that turns pairs of classical codes into quantum codes with computable parameters.
The existence result shows that quantum codes are not fundamentally less efficient than classical ones, in the sense of having a positive rate with a growing number of protected errors.
Steane's seven-qubit code is the CSS code made from the Hamming code and its dual, and Shor's nine-qubit code is a closely related example, which shows the unifying role of the construction.
Key facts and numbers
| Item | Detail |
|---|---|
| Year and venue | 1996, Physical Review A |
| Ingredients | Two classical codes with C2 contained in C1 |
| Logical qubits | Dimension of C1 minus dimension of C2 |
| Existence bound | Quantum Gilbert-Varshamov bound; rate approaches 1 minus 2H(2 delta) |
| Examples | Steane code, surface code, color codes, bivariate bicycle codes |
Limitations and caveats
The existence proof is non-constructive and does not give efficient encoding and decoding, and the codes it yields are not local, so they are not suited to planar hardware.
The bound is not tight, and better codes are possible, as later work on quantum LDPC codes showed.
CSS codes cannot implement all gates transversally, and the code family does not by itself answer the problem of fault-tolerant gates.
Why it matters
CSS codes are the foundation of most practical quantum error correction, including the surface code, color codes, and quantum LDPC codes, and the idea of importing classical coding theory remains the main way new quantum codes are found.
What happened next
Gottesman's stabilizer formalism generalizes CSS codes, and the surface code, color codes, hypergraph product codes, and bivariate bicycle codes are all CSS codes. Panteleev and Kalachev's 2021 proof of asymptotically good quantum LDPC codes is a CSS construction.
The paper is a standard example of the interplay between classical and quantum information theory, and it is cited whenever a new quantum code is built from classical ingredients.
How to read the original paper
The first sections explain the construction and are readable with basic coding theory. The existence proof uses counting arguments that can be read selectively.
The stabilizer code and qLDPC code pages on this site show where CSS codes are used today.
Original abstract (paraphrased)
The paper shows that good quantum error-correcting codes exist, by constructing them from classical binary codes. Given two classical linear codes C1 and C2 with C2 contained in C1, such that both C1 and the dual of C2 have good error-correcting properties, it constructs a quantum code, and it proves a lower bound on the achievable rate analogous to the classical Gilbert-Varshamov bound.
Frequently asked questions
What is a CSS code?
A quantum error-correcting code built from two classical linear codes, one contained in the other, so that bit flips and phase flips are corrected by separate classical parity checks.
What does 'good codes exist' mean?
There are quantum codes whose rate stays above zero while they correct a fixed fraction of errors, as the length grows.
Which codes are CSS codes?
The Steane code, the surface code, color codes, and many quantum LDPC codes, among others.
Keep exploring
- Algorithm: Quantum Error-Correcting Codes (Shor Code, Surface Code)
- Hardware: Google Willow
- Dictionary: Stabilizer Code
- Dictionary: Code Distance
- Dictionary: Quantum LDPC Code
- Dictionary: Surface Code
- Industry: Quantum Computing for Cybersecurity
Explanations on this page summarize published work for education (last reviewed September 30, 2026). Numbers are taken from the cited paper or from widely reported follow-up work, and later results may have updated or challenged them. Check the reference above before citing.