Under every “quantum computers don't work yet” headline sits a pattern-recognition problem, and an AI now reads that pattern better than the rules people wrote for it. Pick a depth below. The depth you pick is part of the link, so a page you share opens at the same depth for whoever you send it to.
You'll be able to say why a quantum computer needs constant error correction, and what an AI decoder adds.
One analogy, no equations, about two minutes. The Working tier builds the machinery and Formal carries the derivation.
A quantum computer is a choir in which every singer slowly drifts off key, and glancing at any one of them to check makes that singer forget the song. (Singer = qubit, the machine's basic unit of information. Off key = the small error every qubit collects simply by existing. Those are the only two terms you need.)
Read that twice, because it is the knot every quantum engineer is trying to untie: you cannot fix what you are not allowed to look at.
Error correction hires a conductor who never listens to a soloist. The only question they put, to one neighbouring pair at a time, is do you two match? Since nobody is heard alone, nobody forgets the song, and two clashes side by side still point straight at the singer who drifted.
← swipe the diagram to see all of it →
For thirty years the conductor's rulebook was written by hand. In 2024 Google DeepMind trained an AI, AlphaQubit, to write its own, by listening to one real choir's recordings until it learned that choir's bad habits. It makes about 30% fewer wrong calls than correlated matching, a hand-written rulebook that is fast enough to run on a live machine, and about 6% fewer than a tensor-network decoder, the most careful rulebook but far too slow to run live. Two separate facts, then: it is more accurate than both of them, and it is itself still too slow to conduct a live performance. Making it fast enough is the race everyone is now running.
Every promise you have read about quantum computers (breaking encryption, designing drugs, cracking optimisation) stands on this one unglamorous job, the way a skyscraper stands on plumbing nobody photographs. None of it happens on a machine that forgets its own state halfway through.
What is finally making the job work is a machine-learning model doing what it does best: noticing a pattern nobody wrote down. A technology famous for being roughly right is rescuing one that only works when it is exactly right. That odd partnership is why this site exists.
Check yourself · 1 of 3
Five singers stand in a row and the conductor compares each neighbouring pair. The pairs 2-3 and 3-4 both clash and the others agree. Who drifted?
A clash means one of the two singers in that pair drifted. Only singer 3 is in both clashing pairs, so one drift explains both clashes and nothing else does. Nobody was heard alone, which is the whole point.
The tempting wrong answers.
The mechanism, one worked number, and the picture you should have in your head. No derivations; those are in Formal.
The same story with its real names: the singers are physical qubits, a clash between neighbours is a parity check that fired, and the conductor is the decoder. From here those pieces get numbers.
Physical qubits fail constantly, roughly 1 error per 1,000 operations on good hardware. The fix is not a better qubit; it is redundancy with a twist. You encode one logical qubit across many physical ones in a surface code, then never measure the data at all.
Instead, extra measurement qubits sitting between the data qubits run parity checks, the syndrome measurements. Each one asks only whether its neighbours agree, never what they are. Everything hangs on that distinction: a parity check extracts the fact that something flipped without extracting the value that would collapse the superposition. A decoder then infers the most likely error pattern from the history of those checks, the way a doctor diagnoses from symptoms rather than by opening the patient.
Draw a checkerboard. Every corner is a data qubit, holding part of your one logical qubit. Every square is a measurement qubit that watches the four corners touching it and reports a single bit: even or odd. The squares alternate between two flavours (one watches for bit flips, the other for phase flips) because a qubit can fail in two independent ways and you need to catch both.
Run every square once and you get a snapshot: mostly zeros, with a few squares lit up. A single flipped data qubit lights the squares around it. A chain of flips lights only the two squares at its ends; everything in the middle cancels. So the decoder never sees the error, it sees a scattering of endpoints and has to guess the cheapest set of chains that would produce exactly those endpoints. That is why decoding is a matching problem, and why a 1965 graph algorithm ended up inside a quantum computer.
Here is the one calculation worth doing by hand, because it shows where "about a thousand qubits to make one" comes from, and why the honest figure depends on how good the hardware is. It is a ladder of three numbers. Climb one rung at a time.
Now climb, starting from the distance-5 patch Google measured. A rotated surface-code patch of distance d costs 2d² − 1 physical qubits.
The first thousandfold (three of the six factors of ten) costs log(1000)/log(2.14) ≈ 9.08, so nine whole steps: 2.149 ≈ 941. Nine steps takes you from d = 5 to d = 23, and one logical qubit now occupies 1,057 physical qubits. That is where the familiar "about a thousand" lives, and by itself it is only halfway up: you have bought roughly 1,000×, not the full million.
The full million (all six factors) costs 19 steps, d = 5 to d = 43, and 3,697 physical qubits at today's Λ. That is the exchange rate.
| What you buy | Λ | Steps | Distance | Physical qubits per logical qubit |
|---|---|---|---|---|
| The first 1,000× (not the full million) | 2.14 | 9 | 5 → 23 | 1,057 |
| The full 1,000,000× | 2.14 | 19 | 5 → 43 | 3,697 |
| The full 1,000,000× on hardware good enough that Λ = 10 | 10 | 6 | 5 → 17 | 577 |
The last row is why Λ is the single most important number in the field: it is the interest rate on every qubit you will ever build. Better hardware does not make the surface code a little cheaper, it removes most of the steps. None of these counts include routing or magic-state factories, and all of them are back-of-envelope: they round to whole steps, ignore the prefactor, count the whole million from a distance-5 patch, and assume Λ stays constant far past the d = 7 where it was measured. The Formal tier shows where the exponent comes from.
← swipe the diagram to see all of it →
The classic decoder, minimum-weight perfect matching, assumes errors are independent and simple. Real hardware is not: errors correlate across neighbours, qubits leak out of the computational space entirely, and the noise drifts between calibrations. Matching cannot express any of that, because its model has no vocabulary for it.
AlphaQubit is a recurrent transformer trained first on hundreds of millions of simulated samples, then fine-tuned on thousands of samples from the real chip, so it learns the actual noise rather than the idealised model, and it reads the analog "soft" readout signal instead of a hard 0/1. Result: about 30% fewer logical errors than correlated matching, a hand-written decoder fast enough to run live, and about 6% fewer than a tensor-network decoder, which is very accurate but impractically slow. AlphaQubit itself is not yet fast enough to run live on a superconducting chip.
The catch is the return arrow in the diagram above. The decoder has to finish inside the cycle, or the backlog grows forever, so an accurate decoder that is too slow does not count. That, not accuracy, is the open engineering problem.
Check yourself · 2 of 3 · a new case
A lab is at code distance d = 7 with Λ = 2.14 and wants about 100 times fewer logical errors. Roughly what distance does it need?
Each step of d → d+2 divides the logical error rate by 2.14. Six steps give 2.14⁶ ≈ 96, close to 100, since log(100)/log(2.14) ≈ 6.05. Six steps of two take d from 7 to 19.
The tempting wrong answers.
Formalism, one derivation carried through, primary sources, and the problems still open. Assumes stabilizer formalism. The Working tier carries the same content without the algebra. Independently verified 2026-07-13.
Rotated surface code with code distance d: d² data qubits, d²−1 syndrome qubits, so a patch costs 2d²−1 physical qubits. Stabilizers are weight-4 X/Z plaquette operators in the bulk (weight-2 on boundaries), measured each cycle. Decoding is inference over the syndrome volume: given syndrome history σ, find the most probable logical equivalence class of errors, not the most probable error, which is a different and worse objective.
The scaling law quoted everywhere is worth deriving once, because the exponent is where the recurring off-by-one in this field lives.
A distance-d code corrects any error of weight t = ⌊(d−1)/2⌋. So the lowest-order event the decoder cannot fix requires t+1 = ⌊(d+1)/2⌋ physical faults. Below threshold each independent fault carries probability ∝ p, and the number of weight-(t+1) fault patterns is a binomial prefactor in the patch size. Summing the lowest-order term:
with A and pth absorbing the combinatorics and the decoder's quality. Two consequences follow immediately, and both are routinely stated wrong:
Working the exchange rate the other way: buying 10³ suppression at Λ = 2.14 needs log(10³)/log(2.14) ≈ 9.08 steps, so nine steps gives 2.149 ≈ 941×, taking d = 5 → 23 and one logical qubit to 2(23²)−1 = 1,057 physical qubits. The million-fold suppression a billion-operation algorithm needs costs 19 steps on the same count: d = 43 and 3,697 physical qubits, as the Working tier's table shows.
Note what the ratio construction buys you: expressing everything relative to d = 3 cancels the unknown prefactor A exactly, so the suppression curve is a parameter-free prediction rather than a fit. Real devices depart from it near threshold, where the lowest-order truncation stops being enough.
← swipe the diagram to see all of it →
MWPM solves the inference on a decoder graph with edge weights drawn from an assumed independent-Pauli plus phenomenological noise model: provably good under that model, degraded under correlated noise, leakage, cross-talk and non-Markovian drift. The failure is structural rather than computational: the model has no term for the thing that is happening.
AlphaQubit: recurrent transformer over per-round syndrome inputs, including analog "soft" readout rather than binarized measurements, which hands it more information to work with, on top of being a bigger model. Pretrained on hundreds of millions of simulated samples, fine-tuned on thousands of experimental samples from a Sycamore processor. Reported ~6% fewer logical errors than tensor-network decoders (near-optimal, far too slow for real time) and ~30% fewer than correlated matching. The real-device data is d = 3 and d = 5; the d = 11 result is simulation only, a distinction frequently lost in secondary coverage, and one we got wrong here once — caught in editing, before the corrections log started counting; the earlier record holds what was written up.
Below threshold, a decoder that effectively raises pth or sharpens the exponent compounds through every future distance increase. Decoder quality is hardware you do not have to build, which is the entire economic argument for this site's thesis.
Stated as problems rather than as a roadmap, because for most of them the truthful answer is that nobody knows yet.
• AlphaQubit: Bausch et al., "Learning high-accuracy error decoding for quantum processors," Nature 635, 834 (2024). arXiv:2310.05900 · Google announcement
• Below-threshold surface code (Willow): Google Quantum AI, "Quantum error correction below the surface code threshold," Nature 638, 920 (2025). arXiv:2408.13687. Source of Λ = 2.14 ± 0.02, regressed across d = 3, 5, 7
• Rotated surface-code layout: Tomita & Svore, arXiv:1404.3747. The d = 3 lattice drawn above
• Surface codes, practical: Fowler et al., arXiv:1208.0928. The standard reference for thresholds and the d→d+2 convention
• Topological memory: Dennis, Kitaev, Landahl & Preskill, quant-ph/0110143 (2001). Where matching-based decoding of the surface code begins
• Real-time FPGA neural decoder: arXiv:2605.04892 (2026). 550 ns system latency inside a 1.25 μs cycle
Check yourself · 3 of 3 · from What is a qubit?
A qubit sits in an even combination of 0 and 1. You measure it and read 0, then apply H and measure again. What do you expect?
A measurement leaves the qubit in the state it found, here 0. H then turns an arrow at the north pole into one on the equator, which reads 0 or 1 with equal odds. H undoing itself needs two Hs with nothing between them.
The tempting wrong answers.