Overview
Threshold estimates for quantum codes are usually quoted for depolarizing noise, in which , and errors are equally likely and nothing is known about where they occur. Real devices have more structure, and structure is a resource. Two kinds matter most.
- Bias. One type of error is much more frequent than the others. Qubits that dephase faster than they relax are biased towards errors, and cat qubits are engineered to be so by many orders of magnitude.
- Erasure. The error may be arbitrary, but the hardware reports which qubit suffered it. Photon loss in optics is the classic example; neutral atoms and superconducting circuits can be designed so that their dominant errors are of this kind.
A third kind of structure is harmful instead of helpful: leakage out of the qubit subspace, which a code built for Pauli errors does not see until it has spread.
This page defines these notions, states what a code can gain from each, describes the tailored variants of the surface code (the XY and XZZX codes), and lists the conditions under which the gains survive in a real circuit.
Intuition
A code spends its redundancy guarding against errors. If phase flips are a hundred times more common than bit flips, guarding equally against both wastes most of the effort. In the extreme case of pure dephasing, a classical repetition code in the right basis is enough, and it works up to an error rate of 50%. A tailored code arranges its checks so that the common error is handled almost as well as a repetition code would handle it, while the rare errors are still corrected.
Erasure is a stronger kind of help. Decoding is hard because the decoder has to work out where errors happened. If the positions are given, only what happened on those positions is unknown, and a code can then cope with twice as many faulty qubits. A hardware change that turns unknown errors into flagged ones can therefore pay for itself even if it raises the total error rate.
Prerequisites
Pauli channels, amplitude and phase damping (quantum channels); the distance of a code and the Knill–Laflamme conditions (quantum error correction); the surface code and its thresholds (surface codes).
Mathematical Definitions
A Pauli channel on one qubit is
Its bias towards dephasing is
The usual one-parameter family sets , so that and . Then is the depolarizing channel and is pure dephasing. This is the convention of Tuckett, Bartlett and Flammia.
The hashing bound of the channel is the rate , with the Shannon entropy in bits, which random stabilizer codes achieve. The error rate at which it reaches zero is a benchmark for code-capacity thresholds: about 18.9% at , rising to 50% as .
A bias is a property of a specified operation. The bias of an idling qubit, of a two-qubit gate and of a measurement generally differ, and a gate can convert the dominant error into the rare one. Aliferis and Preskill define biased noise at the level of gates for exactly this reason.
With these probabilities the bias of the idle channel is , and to first order in
where is the pure-dephasing time. Two checks: gives , the depolarizing value, and (no pure dephasing) gives at first order. A large idle bias therefore requires . The amplitude- and phase-damping channels are those of chapter 8 of Nielsen and Chuang.
- A qubit idling for time under amplitude damping to with relaxation time and exponential decay of coherences with time constant .
- The channel is replaced by its Pauli twirl; the non-unital part of amplitude damping is discarded by the twirl.
Proof · Derivation of the idle Pauli probabilities from T1 and T2
Write the idle channel in the Bloch picture. Under relaxation with time and coherence decay with time , a state with Bloch vector evolves to
The twirl keeps three numbers. The Pauli twirl of is , the sum running over . For a Pauli define . Since with the same sign appearing twice, , while the terms with , including the shift , acquire signs that cancel in the sum. So maps each Pauli to and is a Pauli channel. From the Bloch map,
From eigenvalues to probabilities. A Pauli channel with probabilities multiplies by , because and anticommute with ; cyclically, and . Solving the three linear equations,
Inserting the values of gives and .
Short times. To first order in , and , so . Substituting gives .
The quantum erasure channel with erasure probability maps a qubit state to
where the flag state is orthogonal to the qubit space. Measuring the projector reveals whether the qubit was erased without disturbing an unerased qubit. An erasure error on a set of qubits of a code is any error supported on together with the classical information that is where it occurred. After the flagged qubits are replaced by fresh ones in a fixed state, an erasure is equivalent to an arbitrary unknown channel acting on a known set of qubits. Codes for this channel were first studied by Grassl, Beth and Pellizzari; its quantum capacity is (Bennett, DiVincenzo and Smolin), which vanishes at .
An erasure check is a measurement that tests whether a physical qubit has left its computational subspace. Erasure conversion is the design of a qubit and its operations so that the dominant physical error takes the system to a state outside the computational subspace that an erasure check detects (Wu et al.; Kubica et al.). The fraction of all errors that are detected in this way is the erasure fraction. The remaining errors are ordinary Pauli errors, and an erasure that the check misses is a leakage error.
Let a physical system have Hilbert space , where is the two-dimensional computational subspace and contains every other state, for example the second excited state of a transmon or other hyperfine levels of an atom.
- A leakage error is a noise process that moves population from to . The reverse process is called seepage.
- A leakage reduction unit is an operation that acts as the identity on , when no fault occurs in it, and maps every state in to a state in (Aliferis and Terhal). Examples are teleporting the qubit's state into a fresh qubit, swapping it with a freshly reset qubit, and a reset that also empties the higher levels.
Leakage differs from the errors a stabilizer code is designed for in three ways. The operators that create it are not linear combinations of Pauli operators on , so discretisation by syndrome measurement does not apply to them. A leaked qubit stays leaked until something removes it, so one event corrupts many rounds. And gates applied to a leaked qubit act wrongly on its partners, spreading errors that are correlated in space and time (Fowler; Suchara, Cross and Gambetta). A leakage reduction unit turns a leakage event into an ordinary error of bounded duration; if the removal is also detected, the event becomes an erasure. Aliferis and Terhal prove a threshold theorem for local leakage noise when such units are inserted. In superconducting processors, removal has been demonstrated with a reset protocol that returns a qubit to its ground state from the relevant higher levels (McEwen et al.) and by removing leakage from all qubits in every cycle, which reduced the steady-state leakage population of the data qubits tenfold (Miao et al.).
Theorems
Let be a quantum code of distance on systems, with projector .
- For every set of at most systems there is a recovery channel such that on for every channel that acts as the identity outside . In particular corrects the erasure of any systems.
- If is a stabilizer code with stabilizer group , a set of any size has this property if and only if no element of , up to phase, is supported on .
By comparison, errors at unknown positions are correctable when they affect at most systems. Knowing the positions doubles the number of tolerated errors; this is the observation of Grassl, Beth and Pellizzari.
- A quantum code of distance , and exact recovery.
- The set of affected systems is known to the recovery operation; the error on that set is arbitrary.
Proof · Proof that a code of distance d corrects d − 1 erasures
Part 1. Let and let be a basis of the operators that act as the identity outside . For any the product also acts as the identity outside , so it acts non-trivially on fewer than systems. By the definition of the distance, every such operator satisfies for a scalar . Hence
which is the Knill–Laflamme condition for the set . The theorem provides a recovery channel that corrects every map whose operation elements are linear combinations of the , and every channel acting only on is of that form. The recovery depends on , which is why the positions must be known.
If the positions are unknown, one recovery must serve all sets of size at once. The relevant products then have one factor supported on a set and the other on a set , hence support of size up to , and the same argument needs .
Part 2. Let be a stabilizer code and take for the Pauli operators supported on ; the products are again, up to phase, the Pauli operators supported on . For a Pauli operator there are three cases. If up to phase then . If anticommutes with some element of then . If then maps to itself and acts on it as a non-trivial logical Pauli operator, so is not a multiple of .
If no element of is supported on , only the first two cases occur, the Knill–Laflamme condition holds, and Part 1's argument gives the recovery. Conversely, if such an element is supported on , the two errors and , both supported on , give , so the condition fails and no recovery exists. Since a non-trivial logical operator has weight at least , the criterion is automatically met when , in agreement with Part 1.
For the surface code the criterion in part 2 has a geometric meaning: an erased set is uncorrectable exactly when it contains a path of erased qubits joining two opposite boundaries. With independent erasures this is bond percolation on the square lattice, so the code-capacity threshold for loss is 50%, which is also the largest value any code can reach, since the erasure capacity vanishes there (Stace, Barrett and Doherty). Decoding erasures is also easy: the peeling decoder of Delfosse and Zémor is a linear-time maximum-likelihood decoder for surface codes on the erasure channel, and the union-find decoder extends it to mixtures of erasures and Pauli errors.
Tailored surface codes
Changing the Pauli basis of some qubits of a surface code changes nothing for depolarizing noise and a great deal for biased noise.
- The XY code (the "tailored surface code") measures products of in place of products of on half of the faces, so that a error is detected by both types of check. With a tensor-network decoder its code-capacity threshold is 43.7(1)% for pure dephasing and 28.2(2)% at bias , at or near the hashing bound for all biases studied (Tuckett, Bartlett and Flammia). A later analysis proves that the threshold for pure dephasing is 50% and shows that the logical failure rate below threshold depends strongly on the shape and boundary of the patch (Tuckett et al.). With unreliable measurements, a matching decoder that uses the symmetries of the syndrome gives thresholds above 6% for phenomenological noise at infinite bias and about 5% at (Tuckett et al.).
Definition. Place qubits on the vertices of a square lattice. For every face with corner qubits at its south-west, south-east, north-west and north-east, the check is
Two faces that share an edge share two qubits, and on each of them one face acts as and the other as ; the two anticommutations cancel. Two faces that share only a corner act on it with the same Pauli. So all checks commute. With the boundaries of the rotated surface code a patch has parameters .
Relation to the CSS surface code. Applying a Hadamard gate to every qubit of one sublattice maps the checks to those of the standard surface code, so the two codes have the same parameters and the same threshold for depolarizing noise, which is invariant under single-qubit Clifford gates. They differ for any noise that distinguishes from . Codes obtained from the surface code by other single-qubit Clifford changes are studied by Dua et al.; the tailored code with - and -type checks of Tuckett et al. is another member.
Why bias helps. A error on a qubit anticommutes only with the two checks that act on it as : the faces of which it is the north-east or the south-west corner. These two faces are neighbours along one diagonal of the lattice. Chains of errors therefore create syndromes only along that diagonal direction, and under pure dephasing the decoding problem splits into independent repetition codes, one per diagonal line. errors behave the same way along the other diagonal. A repetition code tolerates any error rate below 50%.
Thresholds (Bonilla Ataides et al.).
- Code capacity. With a tensor-network decoder the threshold matches the hashing bound of the channel for every single-qubit Pauli noise channel, and numerical evidence indicates that it exceeds the hashing bound for a range of biases. For the related tailored code, Tuckett et al. prove a 50% threshold for pure dephasing.
- Faulty measurements. For dephasing-dominated noise with unreliable syndrome measurements, the paper reports a practical decoder whose thresholds exceed those known before it.
- With bias-preserving hardware. Concatenated with Kerr-cat qubits, simulations give a threshold near 6.5% in the infidelity of the noisiest gate (Darmawan et al.).
- Biased erasure. For metastable ytterbium qubits whose dominant error is a detectable decay from one computational state, a threshold of 8.2% in the two-qubit gate error is reported, without bias-preserving controlled-NOT gates (Sahay et al.).
Caveat. At finite bias and finite size the logical failure rate depends on the shape of the patch, because the lowest-weight logical operator made only of the dominant error can be much longer than .
- Threshold statements are for the noise model and decoder named with each number; they do not transfer between code-capacity, phenomenological and circuit-level settings.
Other single-qubit Clifford deformations of the surface code, including random ones, can outperform both at finite bias (Dua et al.).
Worked Examples
Bias of an idling qubit
Take , and an idle time . Then
and . The short-time formula gives ; equivalently and . If instead , close to the limit , the same calculation gives : the idle noise is then biased away from , because relaxation produces and errors.
How much a code could gain from bias
The hashing bound gives a reference error rate for each bias, with . Solving numerically:
| Bias | 0.5 | 1 | 3 | 10 | 100 | 1000 | |
|---|---|---|---|---|---|---|---|
| Error rate at zero hashing rate | 18.9% | 19.4% | 22.2% | 27.8% | 39.0% | 45.6% | 50% |
For example at and the probabilities are and their entropy is 1 bit. The measured 28.2(2)% threshold of the XY code at sits at this value. A CSS surface code whose two error types are matched separately is instead limited by the dominant type alone, for which the matching threshold is 10.3%.
Erasures against Pauli errors at distance 5
A distance-5 code corrects any 2 Pauli errors at unknown positions and any 4 erasures. With independent error probability per qubit, a logical failure needs at least 3 Pauli errors or at least 5 erasures, so the failure probabilities scale as and . At these are of order and , up to combinatorial factors counting the failing patterns. In general the exponent rises from to .
Applications
Erasure conversion in neutral atoms
Wu et al. proposed encoding a qubit in a metastable electronic level of , so that the dominant gate errors are decays to levels outside the qubit that fluorescence imaging detects. They estimate that 98% of errors can be converted into erasures and find, in circuit-level simulations of the surface code, a threshold of 4.15% against 0.937% without conversion. Ma et al. demonstrated the qubit, with one- and two-qubit gate fidelities of 0.9990(1) and 0.980(1) and mid-circuit detection of decays that disturbs the remaining qubits with probability below . When the detectable decay comes from only one computational state the erasures are also biased, and the XZZX code gains again (Sahay et al.).
Erasure qubits in superconducting circuits
A dual-rail qubit stores one excitation in two modes, and . Energy relaxation takes both states to , outside the code space, where a check detects it (Kubica et al.; Teoh et al.). With a pair of tunable transmons, Levine et al. measure an erasure probability of per single-qubit gate with residual errors about 40 times rarer, and mid-circuit erasure checks that add less than 0.1% dephasing. With a pair of cavities, Chou et al. detect more than 99% of cavity decay events as erasures.
Biased-noise architectures
Aliferis and Preskill showed that a fault-tolerant scheme built from operations whose noise is strongly biased has a provably higher threshold. The scheme works only if the gates preserve the bias, which leads to the next section.
Limitations and Common Pitfalls
- Bias of the memory is not bias of the gates. A controlled-NOT gate maps a error on its target to errors on both qubits, and a gate that rotates about an axis other than converts a error during the gate into an error with an component. A bias-preserving controlled-NOT is impossible in a strictly two-level system; cat qubits allow one because the gate is a rotation in phase space (Puri et al.). Quote the bias of the whole syndrome-extraction circuit.
- Code-capacity numbers are ceilings. The 43.7% and 50% figures assume perfect syndrome measurement. With faulty measurements the tailored codes reach about 5–6% at high bias, and circuit-level values depend on the gate set.
- Thresholds and low-error behaviour can disagree. A tailored code can have a higher threshold and still need more qubits well below threshold if its shortest logical operator of the dominant type is short for the chosen patch shape.
- Erasure conversion is not free. Dual-rail encoding uses two modes per qubit and adds check operations with their own errors. The comparison that matters is at fixed hardware, and the figures above are per-platform simulations or measurements, not general guarantees.
- A missed erasure is worse than a Pauli error. The decoder treats unflagged qubits as reliable, and a qubit that has left the computational subspace without being flagged is leaked.
- Leakage is not depolarizing noise. Modelling it as independent Pauli errors ignores its persistence and spreading and gives optimistic predictions; simulate the leaked state and the removal schedule explicitly (Suchara, Cross and Gambetta; Miao et al.).
- The depolarizing hashing value of 18.9% is not an upper bound on thresholds. It is the rate of random non-degenerate codes (Bennett et al.); degenerate codes can exceed it, and the XZZX code appears to for some biases.
State of the Art
As of 2026-11, the components of erasure-based error correction have been demonstrated separately: high-fidelity gates with mid-circuit erasure detection in metastable ytterbium (Ma et al., 2023) and dual-rail erasure qubits with transmons and with cavities (Levine et al., 2024; Chou et al., 2024). For biased noise, a repetition code of cat qubits with a noise-biased controlled-NOT has been operated below its phase-flip threshold; see cat codes. This page does not yet record a logical memory that combines erasure conversion with a two-dimensional code.