KnowledgeCookies logo Understanding the language of quantum science
QPicDepict / Noise and error correction

Surface code

A surface code uses local X and Z checks on a two-dimensional patch to detect errors in encoded information.

Surface code infographic. A reading guide and explanation follow.
Locate the data qubits, both check types and the logical strings ending on compatible boundaries. Artwork from the supplied QPicDepict collection. Open full-size image Download PNG

How it works

  1. Check

    Measure local products of X or Z on data qubits using ancillas. A data error flips nearby checks of the opposite Pauli type.

  2. Repeat

    Compare outcomes across rounds to distinguish data faults from measurement faults in a spacetime picture.

  3. Decode

    Infer a compatible correction class. An undetected chain spanning suitable boundaries can implement a logical operator.

Equation and quantities

t=⌊d−12⌋t=\left\lfloor\frac{d-1}{2}\right\rfloor

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.

Related reading