Research Explained · Error Correction
Error Correcting Codes in Quantum Theory
Andrew M. Steane
University of Oxford · 1996 · Difficulty ★★★★☆
Reference
Steane, A. M. (1996). Error correcting codes in quantum theory. Physical Review Letters, 77(5), 793-797.
This page is an independent explanation. For exact wording, figures, and data, read the original paper.
The short version
Andrew Steane builds a quantum error-correcting code from the classical Hamming code that encodes one qubit into seven and corrects any single-qubit error. The code is more efficient than Shor's nine-qubit code and became the model for a large family of codes.
Key findings
- A quantum code can be built from a classical error-correcting code by using it twice: once to correct bit flips and once, in a rotated basis, to correct phase flips.
- Applying this to the classical [7,4] Hamming code gives a code that protects one qubit using seven.
- The code can correct an arbitrary error on any single qubit, and logical Clifford gates can be performed transversally, qubit by qubit.
- The paper points to a general method for obtaining quantum codes from classical codes, developed with Calderbank and Shor into the CSS construction.
Background: why this paper was written
Shor's nine-qubit code of 1995 had shown that error correction is possible for quantum information, in spite of the no-cloning theorem and the continuous nature of errors. But the code was constructed in an ad hoc way by nesting two simple codes, and it was not clear how to find others or whether it was efficient.
Steane, working at Oxford with Artur Ekert's group, was familiar with classical coding theory, in which codes are designed by choosing parity-check matrices. He asked whether the classical theory could be used to generate quantum codes systematically. His first paper on the subject, on multiple-particle interference and quantum error correction, appeared in the Proceedings of the Royal Society in 1996, and the letter in Physical Review Letters gave a clear description of the seven-qubit code.
What the researchers did
The classical [7,4] Hamming code encodes four bits in seven and corrects any single bit flip. It is defined by a parity-check matrix whose columns are the seven nonzero three-bit strings, so that the syndrome of a single flip is the binary label of the position of the error. Steane notes that a quantum bit flip error can be detected and corrected in the same way, by measuring the three parity checks, without learning anything about the encoded state.
For phase flips, he applies the same idea after a Hadamard transformation, which swaps bit flips and phase flips. The code space is the set of states that are superpositions of the codewords of the Hamming code whose bits belong to a particular subcode, so the logical zero is an equal superposition of the eight codewords of the even-weight subcode of the Hamming code, and the logical one is the superposition of the codewords of its complement. Both kinds of error are then detected by measuring six parity checks, three of each type.
The paper shows that this code corrects any single-qubit error, since any error can be expanded in bit flips, phase flips, and both, and discusses how to extend the idea to other classical codes that satisfy a containment condition, in which the dual of the code lies inside the code. It also notes the existence of better codes with larger distance, which would follow from the theory of classical codes.
Results
The seven-qubit code is shown to correct any single-qubit error, with a simple syndrome extraction.
Calderbank and Shor independently found the same general construction in 1996, and it is now called the CSS construction after Calderbank, Shor, and Steane.
The code has the useful property that the Hadamard, phase, and CNOT gates can be performed transversally, by applying the corresponding gate to each of the seven qubits, which avoids spreading errors, and this made it a standard example in the theory of fault tolerance.
Key facts and numbers
| Item | Detail |
|---|---|
| Year and venue | 1996, Physical Review Letters |
| Code parameters | [[7, 1, 3]]: seven qubits, one logical qubit, distance three |
| Classical basis | The [7,4] Hamming code |
| Transversal gates | Hadamard, phase, and CNOT |
| Related construction | CSS codes (Calderbank, Shor, and Steane) |
Limitations and caveats
The code corrects only one error, and the transversal gates do not include the T gate, so universal computation needs additional techniques such as magic state distillation.
Seven qubits per logical qubit is a small overhead for a small code, but the code's distance is only three, so its protection is limited.
Practical architectures use codes with higher distance and local connectivity, such as the surface code, since the Steane code needs nonlocal connections between its qubits.
Why it matters
The seven-qubit Steane code is one of the standard small codes, used in experiments and in textbooks, and the construction behind it, CSS codes, underlies the surface code and quantum LDPC codes, including IBM's gross code.
What happened next
The Steane code has been demonstrated experimentally in trapped ions, with logical qubit experiments by the Innsbruck group and by Quantinuum, which used it to show fault-tolerant operations including logical gates and error correction with real-time feedback.
The CSS construction is the foundation of the surface code, the color codes, and the bivariate bicycle codes, and the idea of drawing on classical coding theory to design quantum codes continues in the study of quantum LDPC codes.
How to read the original paper
The letter is short, and the construction of the code is explained step by step. Readers should know the basics of parity-check matrices to follow it.
The stabilizer code page on this site explains the more general formalism that includes this code.
Original abstract (paraphrased)
The paper shows that quantum error correction is possible with codes built from classical linear codes. It describes a code that encodes a single qubit in seven qubits and corrects any single error, using the parity-check matrix of the classical Hamming code to detect bit flips and phase flips separately, and discusses the general conditions under which a classical code can be used to protect quantum information.
Frequently asked questions
What is the Steane code?
A quantum error-correcting code that encodes one qubit in seven, built from the classical Hamming code, and corrects any single-qubit error.
How is it different from Shor's code?
It uses seven qubits instead of nine, and it is built from a classical code by a systematic method that gave rise to the CSS family.
Has it been used in experiments?
Yes. Trapped-ion experiments have demonstrated logical qubits and fault-tolerant operations using the Steane code.
Keep exploring
- Algorithm: Quantum Error-Correcting Codes (Shor Code, Surface Code)
- Hardware: Quantinuum H2
- Hardware: IonQ Forte (and Forte Enterprise)
- Dictionary: Stabilizer Code
- Dictionary: Logical Qubit
- Dictionary: Syndrome Measurement
- Dictionary: Code Distance
- 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.