A logical qubit is stored in a stabilizer code; errors are detected by measuring stabilizers.
Clifford gates map stabilizers to stabilizers, so they can be done transversally (qubit by qubit: errors do not spread) or by measuring Pauli products (lattice surgery).
Problem: given a fault-tolerant architecture that protects all Clifford operations
(Clifford gates, Pauli measurements, computational-basis preparation), how do we make it universal?
We need one fault-tolerant non-Clifford gate. One promising way: gate teleportation.
Start: a rotation on an ancilla , a CNOT from the data, and a measurement of the ancilla. Which angle can we teleport?
Push the rotation through the CNOT: the CNOT maps to , so the rotation becomes . The CNOT now acts on as its target and does nothing.
Measure : the data receive — the gate for , its inverse for , each with probability 1/2.
Correct: if , apply . A correction controlled by a measurement outcome is called feedforward.
Require the correction to be Clifford: gives . Then , and the teleported gate is .
Back to the initial circuit with : the ancilla state is the magic state. It can be prepared offline, before the data arrive; with it, costs only Clifford operations on the data.
Likewise and are products of rotations, teleported the same way.
Teleport through a code: many noisy encoded states → fewer better ones.
2
Code switching
Do in a code where it is transversal, then move to the Clifford code.
3
Postselected encoding
Encode, but check so carefully that bad runs are discarded — e.g. magic state cultivation.
Repair 1 · Distillation: many noisy in, fewer purer out
How? And only with the protected Clifford operations.
Repair 1 · Distillation: teleportation through a code
A bent wire is a Bell pair. Apply at one end and project onto : the gate slides around the bend, and the other end carries the magic state .
The same thing as a circuit. A CNOT prepares the Bell pair; the projection becomes an measurement with a known correction on R — teleportation again.
Encode the measured half in the code. on every qubit acts as a logical , so R again receives . The readout gives 4 parity checks: accept only if all pass.
Every is a gate-teleportation gadget. The inputs — noisy magic states — enter here, inside the circuit; the output leaves on R. A faulty input acts as a error on its line.
One faulty input is caught. Its error flips one outcome, and two of the parity checks fire: the run is rejected.
Two faulty inputs are caught too. At least one check always fires for one or two errors.
Three can pass. There are 35 such triples: . Bravyi–Haah: many outputs per run. Repeat in rounds for any target error.
Every line is a code patch. Each input is an encoded noisy magic state, and the whole circuit is a logical Clifford circuit, protected by the code.
Encode the physical into a small code, check it with enough redundancy that any low-weight fault is detected, and discard those runs.
An early example: Li (2015)
Inject into the surface code and postselect on the first two syndrome rounds: the encoded magic state's infidelity falls below half that of a single CNOT. The error is still first order in — which motivates checking the state itself.
Experiments: Postler et al., arXiv:2111.12654 (Innsbruck: fault-tolerant magic state with flag qubits, teleported as a logical ) · Gupta et al., arXiv:2305.13581 (IBM: encoded magic state beyond break-even)
Check the state: the magic state is an eigenstate of a Clifford
is a Clifford operator with . Measuring the logical checks the magic state — and a fault-tolerant Clifford measurement is something codes can do.
Cultivation: check a Clifford, keep only clean runs
color code, grow a surface codegrafted code, drop the color region: matchable
Inject a state into a color code.
Double check the logical transversally: a layer of , the check and its time reverse, a layer of . Postselect on every detector.
Grow to , stabilize, and double check again. Physical gates: 15 at , 53 at .
Escape: graft a large surface code onto the small color code, stabilize it, then drop the color-code region. The result is a large matchable code with standard decoders. Figure from Gidney, Shutty, Jones.
Cost moves into postselection
Acceptance at : 69 % at , 14 % at . It falls fast with distance, so cultivation stops at small and escapes — it does not scale up by itself.
Experiment · Google
color code grafted into a surface code; fidelity 0.9999(1), keeping 8 % of attempts.
Measures the logical Clifford by gauging, in constant depth.
129 at
Common skeleton: a logical Clifford check built from physical gates, with heavy postselection. One magic state out.
Three routes to an encoded magic state
Route
Why fault tolerant
Price
Distillation
code with transversal ; detects bad encoded inputs
many logical qubits and cycles
Code switching
transversal in a second code
3D connectivity or a switching circuit
Postselected encoding, cultivation
heavy checks, discard
acceptance falls with distance
All are noisy circuits from to an encoded magic state, with measurements, feedforward and postselection. Figures of merit: acceptance and logical error .
A key observation: many physical gates, little logical magic
Protocol
Hidden structure
Physical
Logical output
15-to-1 distillation
transversal on
15
one
Bravyi–Haah
triorthogonal code
copies of
Code switching
transversal on the 3D color code
15
one
Cultivation (color, RP², gauged, …)
layers implementing a transversal Clifford check
15–129
one
The physical count grows with the distance; the logical magic is fixed by the output. Maybe the code structure can remove the difficulty.
Two questions
Q1
Extract
Can a deterministic algorithm find this structure — with no human insight and no protocol-specific input?
Q2
Use
Can the simulation cost follow the logical magic — or even less — instead of the physical count?
physical count
Q1 · extract
?
Q2 · use
?
15-to-1 is one diagonal layer between stabilizer boundaries
Push a Clifford through rotations:. A Clifford maps a Pauli axis to a Pauli axis, so every rotation stays a rotation with a new axis, and the Cliffords pile up at the ends.
Start from the gadget form. Every is teleported: ancilla , CNOT, measurement, correction. The logical outcome sets the correction on R. Shown: 3 of the 15 code qubits.
Make all feedforward coherent (deferred measurement): becomes C from the ancilla, measured at the end; becomes CNOTs from R before the readout. The checks become projections.
Push the gadget CNOT into the initial Clifford. Passing only changes its axis, : a on the parity .
Combine the diagonal gates:: a on the code qubit and one on the ancilla.
Push the CNOTs from R in as well: becomes on the parity .
One commuting layer: rotations about products of 's, which all commute.
Abstract the ends: everything before the layer is one stabilizer state; the readout and checks are stabilizer projections. Any protocol gives this form.
A fault in the coherent 15-to-1 circuit: on code qubit 1 after the encoder. Shown: that qubit, its gadget ancilla and R. Push the fault to the readout, gate by gate.
Through a Clifford, the Pauli changes: the CNOT maps to , .
Through a rotation, only a sign changes. C is three rotations, about , and ; anticommutes with the first two, so their signs flip. In phases: gains , a Clifford term.
At the readout: commutes with ; flips the ancilla's record — the sign of a boundary stabilizer.
Only signs changed: of rotations, by Clifford terms, and of boundary stabilizers. Every Pauli insertion keeps the same boundaries, the same layer and the same remaining directions. Compile once; per sample, update signs. Faults are the first kind of Pauli insertion; decoder decisions will be the second.
Run the protocol with a fault draw . Its ending legs: output , postselection , and irrelevant (records no longer needed, discarded qubits).
puts the protocol next to its conjugate .
The trace joins the irrelevant legs of the two copies.
becomes projectors on the postselection legs.
Acceptance network: the output legs are traced too. Contracting it gives .
Fidelity network: the output legs meet a small noiseless target circuit . No intermediate or output state is ever built.
In the closed networks the output's magic meets its conjugate and cancels: one stabilizer term in every benchmark — even Bravyi–Haah 308-to-100, whose output is . Q2: logical magic → Clifford cost.
Nonlinear feedforward: decoders inside the circuit
Necessary: recall distillation with code patches: each input is an encoded patch; its correction depends on a logical outcome that a decoder infers from noisy syndromes — a nonlinear function .
Difficult for us: we reduce the whole circuit globally first, but this circuit is not determined until the outcomes are drawn.
Causality
A sampling network draws the early outcomes with their correct distribution without applying any later feedforward: the future is trace preserving.
Pauli covariance
Every feedforward enters as a Pauli insertion on a fixed compiled circuit, which does not change its structure.
Validation: logical-level 15-to-1, 102 qubits, 15 decoder rounds — the exact formula is reproduced down to . details →
Detail · Every decision becomes a Pauli insertion
The controlled gate is fixed at compile time, on a virtual control qubit. Only depends on the outcomes — exactly like a fault, so Pauli covariance applies.
Nonlinear postselection: the virtual qubit is projected onto in the acceptance and fidelity networks.
Detail · Sample the outcomes without the future
The sampling network, every outcome leg open (triangles): and as staircases, one step per round. Output and postselection are traced. Nothing is drawn and no decision is known yet.
Trace every round after round 1. Everything after round 1 is then trace preserving, so the later decisions, still unknown, drop out.
Draw from .
Only now can the decoder act: enters as a Pauli insertion. Return to the open network, with fixed.
Trace every round after round 2. The future is trace preserving again, and it needs only .
Draw from .
Insert , reopen, repeat: each conditional probability uses only decisions already made; each step is a Pauli update.
The whole cultivation family, with actual gates
Protocols from five groups, run with no change to the simulator; they agree with exact series from to .
RP² : 0.0088 ms per sample, against 7.5–193 ms for state-evolution simulators.
Gauged : 129 gates, one stabilizer term, logical error down to — to our knowledge the first actual- data.
GPU sampling: one version published in magna, another in preparation.
Clifford gates are the easy part of fault tolerance. The gate is supplied by encoded magic states, prepared offline with postselection: distillation, code switching, cultivation.
Simulating it
Factories hide a code: many physical gates, little logical magic. Extract it by linear algebra; Pauli insertions only flip signs; ask for two numbers, not a state; decoders enter as insertions. Clifford-like cost for actual- factories.