Surface code
A surface code uses local X and Z checks on a two-dimensional patch to detect errors in encoded information.
How it works
Check
Measure local products of X or Z on data qubits using ancillas. A data error flips nearby checks of the opposite Pauli type.
Repeat
Compare outcomes across rounds to distinguish data faults from measurement faults in a spacetime picture.
Decode
Infer a compatible correction class. An undetected chain spanning suitable boundaries can implement a logical operator.
Equation and quantities
- d · shortest nontrivial logical operator weight
- syndrome · check changes
- t · ideal correction radius
Worked example
A distance-3 patch corrects one arbitrary data-qubit error under ideal syndrome extraction. Two errors can be misdecoded as a different single error.
Why it matters
Local checks make surface codes a prominent approach to fault-tolerant quantum hardware.
Limits and assumptions
Exact layout, distances, thresholds and qubit counts depend on the variant, boundaries, extraction circuit and noise model.
Why are several rounds of syndrome measurements needed?
A flipped check reading can mimic a data error in one round. Changes in time help separate the two.