The Surface Code
The surface code protects one logical qubit with a flat grid of physical qubits. The qubits are linked only by small parity checks between next-door neighbours. Flat superconducting chips already have that kind of wiring. Companies settled on it for two reasons. It still works when physical error rates are around 1%, which is unusually forgiving. And you scale it up by simply making the patch bigger.
Why did the industry converge on the surface code?
Dozens of quantum error-correcting codes exist. One family leads the engineering roadmaps of superconducting-qubit companies: the surface code. It grew out of Alexei Kitaev's 1997 toric code. Three features explain why so many teams chose it.
- Everything is local. Every parity check (see stabilizers and syndromes) involves only a qubit's next-door neighbours on a flat grid. There are no long-range links and no crossing wires. That matches what a flat chip can actually do. See connectivity and topology.
- A forgiving threshold. Every code has a threshold: a break-even physical error rate. Below it, adding more qubits helps instead of hurts. The surface code's threshold is around 1%. Published estimates fall around 0.5–1%, depending on the noise model. That is orders of magnitude (several powers of ten) more forgiving than the stacked codes of the 1990s required. It is within reach of today's best hardware.
- Smooth scaling. Want more protection? Make the patch bigger. No redesign, just more of the same tiles.
Think of floor tiles. To cover a bigger room, you don't design a new tile. You just lay more of the same ones. Unlike floor tiles, a bigger patch doesn't just cover more space. It makes the stored qubit safer.
Status, stated plainly: the theory is proven. The code has been demonstrated at small scale on real hardware (details at the end of this chapter). Nobody yet runs the large surface-code machines, with many logical qubits, that the roadmaps describe.
- What does a surface-code patch look like?
- What does "distance" actually buy you?
- What does distance 3 look like in action?INTERACTIVE
- What happens when two errors hit a distance-3 code?INTERACTIVE
- What is the threshold, and why does ~1% matter so much?
- What can't this lesson show you?
- Where does the surface code stand on real hardware today?
You’ve read the opening of chapter 8. Pro unlocks the other 7 sections — plus every chapter of every course, with circuits you can run right on the page. That’s $11.99 a month, about the price of a coffee, or $99.99 a year (save 30%). The first chapter of every course, and the whole math course, stay free.