Research Explained · Error Correction
Surface Codes: Towards Practical Large-Scale Quantum Computation
Austin G. Fowler, Matteo Mariantoni, John M. Martinis, and Andrew N. Cleland
University of California, Santa Barbara · 2012 · Difficulty ★★★★★
Reference
Fowler, A. G., Mariantoni, M., Martinis, J. M., & Cleland, A. N. (2012). Surface codes: Towards practical large-scale quantum computation. Physical Review A, 86, 032324. arXiv:1208.0928.
Preprint: arXiv:1208.0928
This page is an independent explanation. For exact wording, figures, and data, read the original paper.
The short version
This long review explains how to build a fault-tolerant quantum computer from the surface code, a grid of qubits with local parity checks. It covers the code, decoding, logical gates, magic states, and a resource estimate for factoring a 2000-bit number, and it became the standard reference for the architecture.
Key findings
- The surface code needs only a two-dimensional array of qubits with nearest-neighbor interactions, and has a high error threshold, on the order of one percent.
- Error correction proceeds by repeated measurement of four-qubit parity checks and classical decoding of the results by minimum-weight perfect matching.
- Logical qubits are encoded in patches or defects of the lattice, and logical gates are performed by braiding defects or, in later formulations, lattice surgery.
- Factoring a 2000-bit number would need on the order of a billion physical qubits and about a day, under the assumptions of the time.
Background: why this paper was written
Kitaev's toric code, proposed in 1997, put qubits on the edges of a torus and showed that logical information can be stored in global topological properties, with errors detected by local checks. Bravyi and Kitaev adapted it to a planar surface with boundaries in 1998. Dennis, Kitaev, Landahl, and Preskill analyzed the code's thresholds in 2002, and Raussendorf and Harrington found a high circuit-level threshold of about 0.75 percent in 2007.
Meanwhile, superconducting qubit experiments at Santa Barbara, led by John Martinis and Andrew Cleland, were reaching the stage where a small array of qubits with nearest-neighbor coupling could be built. Austin Fowler, a theorist who had worked on the surface code for several years, joined with the experimentalists to write a thorough account of how a large machine could be designed around it.
What the researchers did
The paper begins with the structure of the code. Data qubits and measurement qubits sit on a square lattice in a checkerboard pattern, and each measurement qubit is coupled to its four neighbors. In each cycle, the measurement qubits perform a sequence of CNOT gates with the data qubits and are then measured, giving the outcomes of the X-type and Z-type parity checks. The pattern of check outcomes, the syndrome, signals where errors have occurred.
The authors describe decoding by minimum-weight perfect matching: errors are inferred by pairing up the changes in the syndrome in a way that minimizes the total length of error chains, using an efficient graph algorithm. They discuss how the threshold depends on the noise model, with a circuit-level threshold around 0.6 to 1 percent, and how logical errors fall exponentially with the code distance below threshold.
For computation, they explain how to hold logical qubits as regions of the lattice with holes, or defects, how to apply logical CNOT gates by braiding defects around one another, and how to prepare and distill magic states to provide non-Clifford gates. They then use the framework to estimate the cost of Shor's algorithm for a 2000-bit number, finding of order one billion physical qubits and about a day of computation, in which most of the qubits are used for magic state distillation.
Results
The paper gives a unified, practical description of fault-tolerant computation with the surface code and a method to compare designs.
The resource estimate of a billion qubits for factoring focused attention on the overhead problem and prompted work to reduce it, which lowered the estimates to 20 million in 2019 and below one million in 2025.
Experiments confirmed key elements: Google showed distance-3 and distance-5 surface codes in 2021 and 2023 and below-threshold scaling to distance 7 in 2024.
Key facts and numbers
| Item | Detail |
|---|---|
| Year and venue | 2012, Physical Review A |
| Layout | 2D square lattice with nearest-neighbor couplings |
| Threshold | Roughly 0.6 to 1 percent for circuit-level noise |
| Decoder | Minimum-weight perfect matching |
| Factoring estimate (2012) | About a billion physical qubits and about a day for a 2000-bit number |
Limitations and caveats
The code has a large overhead, about 2 d squared physical qubits per logical qubit at distance d, and quantum LDPC codes, such as IBM's gross code, aim to reduce it by about ten times.
The braiding picture of logical gates was later replaced by lattice surgery, which is more efficient, and the resource estimate has been superseded.
The review assumes error models that do not include leakage, correlated errors, and cosmic-ray events, which matter in real devices.
Why it matters
The paper set out the blueprint that Google and others followed in building surface-code experiments, including the 2024 below-threshold result, and it shaped how the resources needed for large-scale quantum computing are estimated.
What happened next
The paper is a standard reference for the surface code, with thousands of citations. It was followed by work on lattice surgery by Horsman, Fowler, Devitt, and Van Meter in 2012, on faster decoders, on magic state cultivation, and on yoked surface codes by Gidney and others.
It also set the tone for resource estimation as a research field, which turned the question of when large quantum computers might exist into a set of quantitative, improvable calculations.
How to read the original paper
The paper is long, about sixty pages, and is organized so that the first sections give a self-contained introduction to the code. Readers can skip the detailed gate constructions on a first pass.
The surface code, code distance, and logical error rate pages on this site summarize the main ideas and the recent experiments.
Original abstract (paraphrased)
Quantum error correction techniques such as the surface code, which requires only a two-dimensional array of qubits with nearest-neighbor interactions, have high thresholds and are therefore a promising route to a large-scale quantum computer. The paper reviews the surface code and its use for fault-tolerant computation, including state preparation, gates, error decoding, and magic state distillation, and presents an estimate of the resources needed to factor a 2000-bit number.
Frequently asked questions
Why is the surface code so popular?
It works with a flat grid of qubits and nearest-neighbor couplings, tolerates error rates around one percent, and has well-developed decoders.
What is the drawback of the surface code?
A large overhead: hundreds to about a thousand physical qubits per logical qubit for the reliability needed by large algorithms.
Did the paper predict the qubit needs for factoring?
It estimated about a billion qubits for a 2000-bit number, and later work reduced the estimate by factors of a thousand.
Keep exploring
- Algorithm: Quantum Error-Correcting Codes (Shor Code, Surface Code)
- Algorithm: Shor's Algorithm
- Hardware: Google Willow
- Hardware: Google Sycamore
- Dictionary: Surface Code
- Dictionary: Code Distance
- Dictionary: Logical Qubit
- Dictionary: Magic State Distillation
- Dictionary: Threshold Theorem
- 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.