Surface Code
The surface code is a family of two-dimensional, geometrically local CSS stabilizer codes. Quantum information is stored nonlocally in a patch or closed surface, local parity checks are measured repeatedly, and a classical decoder interprets the resulting spacetime syndrome.
Its practical appeal is concrete: the elementary checks have bounded weight and can be scheduled using mostly nearest-neighbor interactions on a two-dimensional array. Its protection is not automatic. A working surface-code memory or computer is a coupled system containing:
- data qubits and measurement ancillas;
- a precise patch geometry and boundary convention;
- a fault-tolerant check-extraction circuit;
- reset, measurement, and leakage-handling procedures;
- a noise model or calibrated detector-error model;
- a decoder with enough throughput for continuous operation;
- logical operations, routing, and non-Clifford resource factories.
Consequently, a phrase such as “distance-5 surface code” does not specify an experiment, and a phrase such as “the surface-code threshold” does not specify a number. A quantitative claim needs an architecture contract:
| Item | What must be stated |
|---|---|
| code layout | toric, planar, rotated, punctured, twisted, XZZX, or another variant |
| qubit placement | edges, vertices, or circuit-specific data and ancilla locations |
| boundaries | which checks terminate and which string operators may end |
| extraction circuit | gate ordering, idle locations, reset, measurement, and number of rounds |
| noise | code-capacity, phenomenological, circuit-level, biased, correlated, leakage, or calibrated |
| decoder | matching, union-find, tensor-network, belief-propagation, or another rule |
| metric | logical error per round, memory experiment, logical operation, or spacetime volume |
This page is the canonical home for surface-code architecture, planar patches, detector geometry, code-specific decoding examples, threshold interpretation, lattice-surgery geometry, and overhead. Topological Codes owns the general topological-code taxonomy, homological dictionary, and active-versus-passive protection distinction; this page retains the concrete two-dimensional patch and circuit architecture. CSS Codes owns the general paired-matrix, logical-quotient, distance, and split-syndrome algebra; this page retains lattice and patch geometry, boundaries, logical strings, extraction schedules, detector graphs, code-specific decoders, thresholds, lattice surgery, and overhead. Fault-Tolerant Gates owns the general gate-gadget contract and comparison among transversality, deformation, surgery, gauge fixing, pieceable circuits, and teleportation. Decoders owns the general logical-coset objective, algorithm families, calibrated noise models, and real-time contract. Stabilizer Formalism owns the general algebra of stabilizers, normalizers, syndromes, and Clifford updates. Syndrome Measurement owns code-independent signed check circuits, ordered fault propagation, repeated outcomes, and detector construction; this page retains star–plaquette scheduling, hook orientation relative to boundaries and logical strings, surface-code spacetime geometry, and effective distance. Topological Order Preview owns the toric-code Hamiltonian, anyons, global ground sectors, and topological order. Topological Quantum Computation owns the distinct finite-anyon fusion-space computation record—encoding, braid/fusion/charge-measurement program, induced projective logical channel, completion, and verification—while this page retains actively stabilized CSS patches, repeated syndrome extraction, decoding, thresholds, and lattice surgery. The Surface Code model card remains a compact lookup entry.
Quantum Error Correction and Fault Tolerance routes a two-dimensional local-protection claim to this construction and then to the relevant evidence and resource owners; this page retains surface-code geometry, checks, repeated extraction, spacetime decoding, code-specific threshold conventions, lattice surgery, and overhead.
Lattice and Stabilizer Checks
Section titled “Lattice and Stabilizer Checks”Edge-qubit convention
Section titled “Edge-qubit convention”A transparent starting convention places one data qubit on every edge of a square cellulation. For each vertex and face , define
is an -type star check and is a -type plaquette check. In the ideal code space,
The notation is a convention, not a law of nature. Some layouts exchange and , move data qubits to vertices, or display the same incidence structure as a rotated lattice. What matters is the check-support graph and its boundary conditions.
Why the checks commute
Section titled “Why the checks commute”Two star checks contain only operators and therefore commute; two plaquette checks contain only operators and commute. A star and a plaquette on the square lattice share either zero edges or two edges. Every shared edge contributes one anticommutation , so
The even-overlap rule is the local reason the stabilizer group is abelian. It is also a useful layout audit: an isolated odd overlap between an check and a check would make the proposed code inconsistent.
CSS check matrices
Section titled “CSS check matrices”Ordering the data qubits turns the checks into binary matrices and . Their commutation condition is
For a Pauli error represented by binary supports , the ideal syndromes are
Thus errors are detected by checks and errors by checks. A error can contribute to both syndrome sectors. Decoding the two CSS sectors independently is convenient, but it can discard correlations carried by faults or by the hardware circuit.
Errors as Chains
Section titled “Errors as Chains”The geometry becomes useful when a Pauli error is viewed as a chain.
Consider a product of operators along a connected path of primal edges:
Every interior vertex of touches two error edges, so its star check commutes with . An endpoint touches one error edge and anticommutes. The syndrome therefore records the boundary of the chain:
Likewise, an error chain is naturally represented on the dual lattice. Its endpoints are violated -type plaquette checks.
Three cases must be distinguished:
- Open chain in the bulk. Its endpoints produce a syndrome.
- Contractible closed chain. It has no endpoints and is a product of local stabilizers, so it acts trivially on encoded information.
- Topologically nontrivial chain. It has no detectable endpoints but cannot be reduced to stabilizers; it acts as a logical Pauli.
The decoder never learns the microscopic error chain directly. It receives its boundary, together with a probabilistic model, and must choose the correct equivalence class.
Closed Surface and Planar Patches
Section titled “Closed Surface and Planar Patches”Toric parent code
Section titled “Toric parent code”On a torus, let , , and denote the numbers of vertices, edges, and faces. There are data qubits. The products of all star checks and of all plaquette checks are each the identity, so only checks are independent. Euler’s relation for a torus is
The number of encoded qubits is therefore
The two logical qubits correspond to the two independent noncontractible cycles. Direct-lattice loops and dual-lattice loops crossing an odd number of times anticommute. This count is the coding interpretation of the toric parent model; the many-body interpretation belongs to Topological Order Preview.
Boundaries
Section titled “Boundaries”Cutting the surface open permits error strings to end at selected boundaries without leaving a check violation. Naming conventions vary in drawings, so the operational definition should always accompany the name:
- a rough boundary is a boundary at which a string may terminate;
- a smooth boundary is a boundary at which an string may terminate.
Equivalently, the excitation detected by a star check can condense at a rough boundary, while the excitation detected by a plaquette check can condense at a smooth boundary.
A standard one-qubit planar patch has two rough and two smooth boundary segments. One may choose
and
Representatives may be deformed by multiplying stabilizers. Every valid representative crosses every valid conjugate representative an odd number of times, so
Schematic edge-qubit patch. The solid string joins rough boundaries; the dashed dual path marks the support of joining smooth boundaries. Their single shared data qubit gives the required anticommutation. The highlighted and indicate representative local checks, not a complete syndrome-extraction circuit.
Distance
Section titled “Distance”The code distance is
where is the stabilizer group and its Pauli normalizer. Geometrically, is the shortest undetectable nontrivial string, including paths that join compatible boundaries or encircle a defect.
A nominally wide patch can still have small distance if one boundary neck is narrow, if a hole approaches another boundary, or if a circuit-level correlated fault creates a dangerous short logical path. Distance is a property of the complete code and extraction schedule, not the visual area alone.
Holes, punctures, and defects
Section titled “Holes, punctures, and defects”Turning off a connected set of checks creates a puncture whose boundary can condense one syndrome type. Logical information may then be represented by a loop around a hole and a conjugate string joining that hole to another compatible boundary or defect. Moving or resizing holes by changing which checks are measured is code deformation.
Holes are useful for routing and logical operations, but each deformation must preserve a minimum spacetime distance. A large geometric separation at one instant does not protect against a short fault path created during the motion.
Rotated Planar Patches
Section titled “Rotated Planar Patches”The rotated planar code redraws the same CSS incidence structure so that a one-logical-qubit distance- patch can use fewer data qubits. For the common odd- square patch:
The independent checks divide evenly:
If every check has a dedicated measurement ancilla, the idealized patch contains
qubits before adding routing, couplers, spare qubits, flag or leakage-removal ancillas, and control hardware. By comparison, a common unrotated distance- planar layout uses
These formulas are layout counts, not universal resource estimates.
For example, an idealized rotated distance-5 patch has 25 data qubits and 24 check ancillas, for 49 qubits under the one-ancilla-per-check convention. Its abstract distance permits correction of every data-qubit Pauli error of weight
That statement does not mean every pair of circuit faults is corrected. Propagated ancilla faults, measurement faults, leakage, and boundary-time effects must be included in the circuit-level distance.
Syndrome Extraction
Section titled “Syndrome Extraction”Star–plaquette scheduling
Section titled “Star–plaquette scheduling”An edge-data layout assigns each star and plaquette check a measurement ancilla, but the local check definitions do not yet determine a circuit schedule. A complete round must place every incident data–ancilla interaction into time steps such that no qubit participates in two gates at once. It must also declare preparation, reset, readout, idle locations, and any boundary check whose weight is reduced. The result is a global star–plaquette schedule, not merely a collection of independent weight-four parity circuits.
Different valid schedules can implement the same ideal stabilizers while producing different correlated errors under a single circuit fault. The chronological order around each star or plaquette fixes which pairs of data qubits can inherit an ancilla fault. Neighboring orders therefore have to be chosen together, including the truncated checks at rough and smooth boundaries.
Hook orientation and spacetime history
Section titled “Hook orientation and spacetime history”A correlated two-data hook is a short chain segment. Its orientation matters because a sequence of aligned hooks can create a nontrivial string using fewer faults than the nominal code distance suggests. A surface-code schedule is audited by comparing every allowed hook with the patch’s logical string directions and boundaries. The safe ordering depends on whether the check is star or plaquette, on the patch convention, and on which logical operator a boundary can terminate; there is no code-independent clockwise ordering rule.
Repeated rounds turn the scheduled patch into a spacetime object. In the bulk, a data-chain segment has endpoints on neighboring checks, while a transient readout fault commonly produces time-separated violations at one check. Spatial boundaries permit some chains to terminate, and temporal boundaries permit endpoints to pair with preparation or final-data parity relations. A surface-code detector graph must encode those boundary attachments, the actual gate schedule, and known frame offsets. Omitting them can reduce the circuit-level distance even when the static patch distance is unchanged.
Circuit-level hazards
Section titled “Circuit-level hazards”Repeated extraction brings several physical mechanisms into the code:
- ancilla preparation and measurement errors;
- two-qubit-gate propagation and hook orientation;
- data-idle errors during a schedule;
- crosstalk and coherent calibration drift;
- leakage outside the computational subspace;
- reset failure and delayed leakage removal;
- long-range bursts and time-correlated faults;
- classical latency or dropped syndrome data.
A code-capacity model that places independent Pauli errors only on data qubits is useful for theory, but it cannot by itself predict circuit-level hardware performance.
Decoding the Syndrome History
Section titled “Decoding the Syndrome History”Recovery as an equivalence-class decision
Section titled “Recovery as an equivalence-class decision”Suppose the actual data error is and a decoder chooses a Pauli recovery with the same syndrome. Then has zero syndrome and lies in the normalizer. Recovery succeeds when
and fails logically when
The decoder does not need to reconstruct exactly. It needs the correct logical equivalence class modulo stabilizers. This distinction is central because many microscopic chains share the same boundary and act identically on the code space.
In practice, is usually not applied as a layer of physical Pauli gates. The controller updates a Pauli frame and reinterprets later measurements or adapts later Clifford operations. Avoiding unnecessary corrections prevents additional gate faults.
Minimum-weight perfect matching
Section titled “Minimum-weight perfect matching”For sparse stochastic faults, detection events often appear in pairs or connect to allowed boundaries. A matching decoder constructs a graph whose vertices are detection events. An edge represents a candidate fault chain joining two events or joining an event to a boundary.
The minimum-weight perfect matching section derives calibrated log-odds weights and distinguishes a most likely path from a most likely logical class. In the surface-code graph, matching pairs every detection event, possibly to a boundary, and the associated paths define a recovery class.
Several qualifications matter:
- shortest geometric distance is appropriate only for a sufficiently uniform noise model;
- circuit faults can create diagonal, time-like, or correlated graph edges;
- and matching graphs treated separately can miss correlations;
- degeneracy means many chains can realize the same logical class;
- an exact maximum-likelihood decoder compares sums of probabilities over equivalence classes, not only the single most likely chain;
- real-time operation imposes latency, memory, and throughput constraints absent from an offline benchmark.
Matching is therefore an important decoder, not a definition of the surface code. The decoder comparison places union–find, tensor-network, renormalization, belief-propagation with ordered-statistics postprocessing, correlated matching, and learned decoders on their different accuracy–latency–hardware tradeoffs.
A one-dimensional decoding analogy
Section titled “A one-dimensional decoding analogy”Suppose two -check detection events are separated by three lattice edges. A decoder may infer a length-3 chain joining them. Another chain with the same endpoints that differs by a plaquette boundary is stabilizer-equivalent and equally safe. A competing chain that reaches rough boundaries can differ by and cause a logical error.
The syndrome fixes the endpoints, not which homology class produced them. Increasing makes the shortest wrong-class explanation longer, which is the geometric origin of error suppression below threshold.
Thresholds Without a Universal Number
Section titled “Thresholds Without a Universal Number”Operational meaning
Section titled “Operational meaning”Consider a family of increasing distances with the same local architecture, noise model, extraction protocol, decoder, and logical-error metric. A threshold separates two scaling regimes:
- for , increasing suppresses the logical error rate;
- for , increasing does not provide asymptotic suppression.
The threshold is therefore a property of the complete family and contract. Code-capacity noise, phenomenological measurement noise, depolarizing circuit noise, biased noise, erasures, leakage, and correlated noise generally produce different values. Decoder choice changes the value as well.
Useful fit and its limits
Section titled “Useful fit and its limits”For odd distances in a sufficiently low-error regime, simulation data are often summarized by
where and are fit parameters for a specified experiment. The exponent reflects the leading number of faults needed to defeat a distance- fault-tolerant construction.
This formula is not a theorem, and it is not reliable arbitrarily close to threshold, at very small , under strongly correlated noise, or when different fault mechanisms dominate different distances. A serious scaling claim reports uncertainty, fit range, rounds, decoder, leakage treatment, and the definition of .
Pseudothreshold and finite-size crossings
Section titled “Pseudothreshold and finite-size crossings”A pseudothreshold is a finite-size comparison, often the physical error rate at which a particular encoded circuit performs as well as a chosen unencoded reference. Curves for distances and may also cross near a finite-size estimate of the asymptotic threshold. Neither quantity is automatically the constant in the Threshold Theorem, which first fixes the code, gadgets, architecture, noise class, and metric.
Logical error per cycle, logical failure after rounds, logical parity-measurement error, and logical CNOT error are different metrics. Quoting one as though it described every operation obscures the architecture.
What scaling evidence establishes
Section titled “What scaling evidence establishes”Observing
under matched conditions is direct evidence that the tested system operates in a below-threshold scaling regime for that metric and distance range. It does not by itself establish:
- arbitrarily low logical error;
- a universal threshold;
- fault-tolerant non-Clifford gates;
- scalable classical decoding;
- acceptable fabrication yield or cryogenic control;
- an application-level resource advantage.
Experiments have nevertheless made this hierarchy measurable. Repeated surface-code detection, distance scaling, leakage handling, and logical operations test distinct layers of the fault-tolerance stack and should be reported as such.
Lattice Surgery
Section titled “Lattice Surgery”Lattice surgery performs logical operations by temporarily changing stabilizer measurements along adjacent patch boundaries. A merge introduces joint checks spanning two patches; a split restores separate boundaries. Repeating the new checks for enough rounds protects the parity result against measurement faults.
The essential operation is a joint logical Pauli measurement such as
or
The outcome reveals only a parity. It does not reveal the individual eigenvalues of and . For example, the eigenspace of contains both logical basis states and , so a parity measurement can preserve coherent superpositions within that subspace.
A logical CNOT can be built, up to tracked Pauli corrections, using an ancilla patch prepared in , a joint measurement between control and ancilla, a joint measurement between ancilla and target, and a final logical- measurement of the ancilla. Classical feed-forward determines the Pauli-frame updates.
The geometric operation is not instantaneous. To maintain distance , a merge, split, or boundary move typically occupies syndrome rounds and qubit area. Exact constants depend on layout, routing, check schedule, and whether neighboring operations can be packed in parallel. Fault-Tolerant Gates places surgery inside the general error-containment contract. Lattice Surgery owns the patch conventions, protected parity protocols, correction tables, and scheduling details; the canonical surface-code principle here is the protected measurement of joint logical parity.
Resource Overhead
Section titled “Resource Overhead”Space, time, and spacetime volume
Section titled “Space, time, and spacetime volume”A one-qubit rotated patch uses data and measurement qubits. A protected measurement or deformation typically lasts code cycles. The natural leading resource for an operation is therefore a spacetime volume of order
before constant factors and parallel scheduling are included.
This scaling alone does not determine a machine size. A resource estimate must allocate:
- logical data patches;
- routing and temporary ancilla patches;
- magic-state distillation or cultivation factories;
- storage buffers and communication lanes;
- decoder hardware and classical reaction time;
- physical qubits unavailable because of defects or yield;
- calibration, reset, leakage-removal, and readout resources;
- an error budget divided among all logical operations.
For many algorithms, non-Clifford state factories dominate the footprint. For others, data storage, routing congestion, or a slow measurement cycle dominates. Reporting only qubits per patch can therefore understate total resources by a large architecture-dependent factor.
Choosing distance
Section titled “Choosing distance”Distance should be selected from an error budget, not from a slogan. If a computation uses logical locations and the allowed total failure probability is , a first union-bound allocation might require
One then uses measured or simulated logical scaling under the intended architecture to choose . Different operations may justify different distances, and optimized systems can allocate nonuniform error budgets. Extrapolation beyond validated distances must be labeled as a model prediction.
Hardware Relevance
Section titled “Hardware Relevance”The surface code trades qubit efficiency for locality and repeated measurement. Its bounded-weight checks align naturally with platforms offering a two-dimensional coupling graph, fast mid-circuit readout, reset, and stable repeated gates. Those advantages explain its central role in superconducting-qubit roadmaps and its broader use as an architectural benchmark.
The code does not make local hardware imperfections irrelevant. Several effects are particularly consequential:
- leakage: a leaked qubit can corrupt several later checks until it is reset or replaced;
- correlated faults: crosstalk, shared control, radiation events, and bursts can defeat independent-edge decoders;
- coherent errors: systematic rotations need not behave like stochastic Pauli faults at short times;
- measurement latency: slow readout lengthens data-idle exposure and decoder deadlines;
- connectivity defects: disabled qubits and couplers reshape checks and shorten paths unless the patch is adapted;
- calibration drift: decoder weights and circuit error models can become stale;
- classical backlog: a decoder that is accurate but slower than syndrome production is not operationally scalable.
The surface code is an actively corrected topological code, not a self-correcting memory at nonzero temperature. Without repeated syndrome extraction and energy-consuming feedback or frame tracking, thermally or environmentally generated error strings can grow and become logical. Topological language describes the nonlocal equivalence classes; it does not supply passive lifetime growth by itself.
Variants and Naming
Section titled “Variants and Naming”Several related constructions share the surface-code idea:
| Variant | Distinguishing feature |
|---|---|
| toric code | periodic boundaries and two logical qubits on a torus |
| unrotated planar code | open patch in the original edge-qubit geometry |
| rotated planar code | reduced data-qubit count for a common square one-qubit patch |
| defect or hole encoding | punctures support loop and connecting-string logicals |
| twist-based layout | boundary-type changes and twists alter logical-string endpoints |
| XZZX surface code | locally transformed check pattern useful under certain biased-noise contracts |
| subsystem surface code | gauge measurements replace some direct stabilizer measurements |
These names do not remove the need for a circuit and decoder specification. In particular, a favorable threshold for one variant under tailored biased noise should not be transferred to a different device model.
Common Mistakes
Section titled “Common Mistakes”- Treating “surface code” and “toric code” as exact synonyms.
- Defining rough and smooth boundaries by appearance instead of stating which Pauli strings may terminate.
- Counting geometric width as distance without checking every logical path and the extraction circuit.
- Inferring the microscopic error chain uniquely from its syndrome endpoints.
- Applying physical corrections after every round when a Pauli frame suffices.
- Quoting a threshold without the noise model, schedule, decoder, and metric.
- Calling a finite-size pseudothreshold an asymptotic threshold.
- Counting only data qubits while omitting check ancillas, routing, factories, and classical decoding.
- Describing active topological error correction as passive self-correction.
- Assuming independent CSS matching captures leakage, correlations, and burst errors automatically.
Exercises
Section titled “Exercises”1. Star–plaquette commutation
Section titled “1. Star–plaquette commutation”Prove that an edge-qubit star commutes with every plaquette on the square lattice.
Solution
If is not a corner of , the operators have disjoint support and commute. If is a corner of , the star and plaquette share the two boundary edges meeting at that corner. On each shared qubit, anticommutes with , producing a factor . The two factors cancel:
Thus every -type and -type generator has even support overlap.
2. Encoded qubits on a torus
Section titled “2. Encoded qubits on a torus”Use stabilizer counting and Euler’s relation to show that the edge-qubit toric code encodes two qubits.
Solution
There are data qubits. There are nominal checks, but the product of all stars and the product of all plaquettes are identities, leaving rank
The number of encoded qubits is
Euler’s relation on the torus gives , hence .
3. Why a logical string has no syndrome
Section titled “3. Why a logical string has no syndrome”Explain why a string connecting two rough boundaries commutes with every measured stabilizer but is not generally a stabilizer.
Solution
Every bulk vertex along the path touches zero or two supported edges, so the string commutes with every star check. Its two endpoints lie on boundaries where strings are permitted to terminate, so no endpoint syndrome is measured there. It also commutes with all plaquette checks because both contain only operators.
The string cannot generally be contracted to a product of local plaquette boundaries while keeping its endpoints on the same boundary. It joins distinct rough boundaries and represents a nontrivial relative homology class. Therefore it lies in and acts as .
4. A distance-5 rotated patch
Section titled “4. A distance-5 rotated patch”For the common odd-distance rotated patch with one dedicated ancilla per check, find the number of data qubits, check ancillas, total patch qubits, and guaranteed correctable data-error weight at .
Solution
The layout formulas give
and
With one ancilla per check, the idealized total is qubits. The abstract distance guarantees correction of all data Pauli errors of weight at most
This count excludes routing, spare qubits, leakage-removal resources, and circuit-level correlated faults.
5. One faulty check measurement
Section titled “5. One faulty check measurement”Suppose the true stabilizer eigenvalue is constant and equal to , but round reports while rounds and report . Locate the detection events.
Solution
By definition,
and
The single measurement fault therefore produces two time-separated detection events at the same spatial check location. This is represented by a time-like edge in the decoding graph.
6. Same syndrome, successful recovery
Section titled “6. Same syndrome, successful recovery”Let be the actual error and a decoder’s correction with the same syndrome. Why is the success condition rather than ?
Solution
Equal syndromes imply that has zero syndrome and preserves the code space. Stabilizers act as the identity on every encoded state, so if then
for every code state. The microscopic chains and may differ while having the same logical action. If instead , their difference is a nontrivial logical Pauli and recovery fails.
7. Audit a threshold claim
Section titled “7. Audit a threshold claim”A report states, “The surface-code threshold is .” List at least five missing pieces needed to interpret the claim.
Solution
The report should specify at least:
- the code variant and boundary layout;
- whether noise is code-capacity, phenomenological, or circuit-level;
- the probabilities assigned to gates, idles, reset, and measurement;
- whether leakage and correlations are included;
- the check-extraction schedule and number of rounds;
- the decoder and its weighting model;
- the logical-error metric;
- the distance range and finite-size fitting procedure.
Without this contract, the number cannot be transferred to another architecture.
8. Joint parity without individual readout
Section titled “8. Joint parity without individual readout”Show that measuring does not reveal the individual logical values.
Solution
The parity subspace is spanned by
while the parity subspace is spanned by
Each outcome leaves two possible individual value pairs. Moreover, a coherent state such as
remains coherent after obtaining parity . The measurement reveals only the product eigenvalue.
9. Why a Pauli frame helps
Section titled “9. Why a Pauli frame helps”Explain why a decoder can record a correction instead of immediately applying physical Pauli gates.
Solution
Pauli corrections can be propagated through later Clifford gates by conjugation and absorbed into the interpretation of later measurements. The controller therefore records the accumulated logical and physical Pauli frame. This produces the same logical statistics as applying the gates, while avoiding extra faulty control operations. A non-Clifford operation or adaptive measurement may require the frame to influence later control, but it still need not be realized as an immediate physical Pauli pulse.
10. Active versus self-correcting protection
Section titled “10. Active versus self-correcting protection”Why does nonlocal logical information not make a two-dimensional surface-code memory passively self-correcting?
Solution
Nontrivial logical strings are extended, but local errors can build such a string one segment at a time without an energy barrier that grows with system size in the ordinary two-dimensional toric-code setting. At nonzero temperature or under continuing environmental noise, faults therefore accumulate. Repeated parity measurements, decoding, and frame updates are needed to remove them before they form a logical class. The code is topological and actively corrected, not a passive memory whose lifetime diverges solely because the patch is larger.
Further Connections
Section titled “Further Connections”- Why Quantum Error Correction Is Possible
- Stabilizer Formalism
- Color Codes owns the neighboring three-colored face-check geometry and transversal-Clifford structure; this page retains primal and dual strings, rough and smooth boundaries, extraction, detector graphs, matching, thresholds, surgery, and overhead.
- Error-Correction Case Studies compares repetition-code records, finite-distance surface-code memories, logical-lifetime references, and bosonic break-even evidence.
- Stabilizer Simulation develops repeated-round detector generation, batched Pauli-fault sampling, decoder isolation, logical-failure scoring, and threshold-experiment validation.
- Superconducting Qubits
- Common Noise Models
- Quantum Software Stack places code cycles, decoder deadlines, logical operations, factories, and failure budgets inside fault-tolerant lowering.
- Resource Estimation maps logical locations, code-distance fits, patch liveness, factory flow, routing, and cycle time into qubit, runtime, failure, and spacetime ledgers.
- Resource Estimation Tools develops the versioned software workflow for evaluating and validating those scenarios.
- Topological Order Preview
- Topological Order
- Anyons and Braiding
- Topological Quantum Computation Bridge
- Surface Code model card
- Stabilizer Identities
- Quantum Information Roadmap
References
Section titled “References”- A. Y. Kitaev, “Fault-tolerant quantum computation by anyons,” Annals of Physics 303, 2–30, 2003, doi:10.1016/S0003-4916(02)00018-0.
- E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, “Topological quantum memory,” Journal of Mathematical Physics 43, 4452–4505, 2002, doi:10.1063/1.1499754.
- S. B. Bravyi and A. Y. Kitaev, “Quantum codes on a lattice with boundary,” 1998, arXiv:quant-ph/9811052.
- A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, “Surface codes: Towards practical large-scale quantum computation,” Physical Review A 86, 032324, 2012, doi:10.1103/PhysRevA.86.032324.
- D. Horsman, A. G. Fowler, S. Devitt, and R. Van Meter, “Surface code quantum computing by lattice surgery,” New Journal of Physics 14, 123011, 2012, doi:10.1088/1367-2630/14/12/123011.
- A. M. Stephens, “Fault-tolerant thresholds for quantum error correction with the surface code,” Physical Review A 89, 022321, 2014, doi:10.1103/PhysRevA.89.022321.
- B. M. Terhal, “Quantum error correction for quantum memories,” Reviews of Modern Physics 87, 307–346, 2015, doi:10.1103/RevModPhys.87.307.
- D. S. Wang, A. G. Fowler, and L. C. L. Hollenberg, “Surface code quantum computing with error rates over 1%,” Physical Review A 83, 020302(R), 2011, doi:10.1103/PhysRevA.83.020302.
- D. Litinski, “A game of surface codes: Large-scale quantum computing with lattice surgery,” Quantum 3, 128, 2019, doi:10.22331/q-2019-03-05-128.
- J. P. Bonilla Ataides, D. K. Tuckett, S. D. Bartlett, S. T. Flammia, and B. J. Brown, “The XZZX surface code,” Nature Communications 12, 2172, 2021, doi:10.1038/s41467-021-22274-1.
- N. Delfosse and N. H. Nickerson, “Almost-linear time decoding algorithm for topological codes,” Quantum 5, 595, 2021, doi:10.22331/q-2021-12-02-595.
- Google Quantum AI and Collaborators, “Suppressing quantum errors by scaling a surface code logical qubit,” Nature 614, 676–681, 2023, doi:10.1038/s41586-022-05434-1.
- Google Quantum AI and Collaborators, “Quantum error correction below the surface code threshold,” Nature 638, 920–926, 2025, doi:10.1038/s41586-024-08449-y.
Summary
Section titled “Summary”The surface code converts local parity information into protection of nonlocal logical strings. In the edge-qubit picture, commuting star and plaquette checks detect the endpoints of and error chains. Boundaries determine which strings may terminate, and code distance is the shortest nontrivial logical representative.
Real protection comes from repeated, fault-tolerant syndrome extraction and spacetime decoding. A decoder must choose the correct equivalence class, not reconstruct the exact microscopic error. Thresholds, scaling laws, and overhead are meaningful only after fixing the complete architecture contract. Lattice surgery then turns protected boundary-parity measurements into logical operations, while the physical machine must still manage leakage, correlations, decoding latency, routing, and non-Clifford resources.