Quantum computing · Theory and numerical analysis
Foliated surface codes correct atom loss as well in time as in space
arXiv:2611.28219v1 ↗PDF ↗Submitted 20 November 2026
- Question
- In neutral atoms, trapped ions and dual-rail qubits, a common error is leakage: the qubit leaves its computational space, for instance when an atom is lost, and every later gate on it does nothing. Leakage that is located is easy to correct; a distance-\(d\) code can then fix \(d-1\) such errors, against \(\lfloor(d-1)/2\rfloor\) unknown Pauli errors. Mid-circuit leakage checks are costly, so many designs only detect leakage when each qubit is finally measured, and the circuits must measure every qubit periodically. Two designs do this: SWAP-based circuits that exchange data and ancilla roles, and foliated circuits that teleport the code onto fresh qubits each round. How many leakage errors can each correct, not only in space (memory) but in time (stability, the error type that matters for lattice surgery)?
- Result
- Foliated surface-code circuits correct as many leakage errors as they can detect, both in space and in time: with a decoder that respects the fact that a qubit can leak only once, \(d-1\) in memory and \(r-1\) in a stability experiment of \(r\) rounds. The best SWAP-based circuit, which is optimal in memory, corrects only about \(r/2\) in time. Simulations agree. With leakage at \(0.5\%\) of CZ gates, adding two rounds to a distance-4 rotated stability experiment cuts failures by a factor of \(1380\pm50\) for foliation and \(63\pm1\) for the best SWAP-based circuit, while in memory the two are comparable. Under a realistic neutral-atom noise model foliation wins in stability for both code layouts, and SWAP-based moonwalking wins unrotated memory when ordinary gate errors dominate loss.
The paper in detail
When leakage is detected only at the final measurement, the decoder learns which qubits leaked but not when. Each leaked qubit therefore has several candidate leakage times, and the code must separate the errors these different times would cause. The longer a qubit lives between reset and measurement, and the more different roles it plays, the more candidates there are. In SWAP-based surface-code circuits, walking and moonwalking, each atom serves as data and then as ancilla and lives through two rounds. In a foliated circuit each qubit is prepared, takes part in at most four CZ gates and is measured.
Foliation measures the \(Z\) checks with ancillas and CZ gates, then teleports the logical state onto fresh qubits with one layer of CZ gates, which also exchanges the code with its dual, so the next layer measures the original \(X\) checks. All gates are CZ and every qubit is prepared in \(\ket+\) and measured in the \(X\) basis. A compact version interleaves the teleportation gates with the check gates and needs only four CZ layers per round, against ten for the basic version.
The analysis replaces each leakage event by its Pauli envelope, the set of Pauli errors whose effects include those of the leakage. In a CZ-only circuit the envelope of a leak at time \(t\) is just an arbitrary single-qubit Pauli at \(t\). The difference between two candidate times on one qubit is then either a single error or a pair of \(X\) errors on that qubit at different times. A pair of \(X\) errors on a qubit propagates through the CZ gates between them, and the authors check case by case that with the standard N/Z gate order these pairs never align with a logical operator. With no weight-1 or weight-2 hook errors, a logical failure needs at least \(d\) leaked qubits in space, or \(r\) in time.
In SWAP-based circuits a qubit changes from control to target, and the envelope places Paulis at each change. Concatenating pairs of time-like mismatches then builds a time-like logical path from about \(r/2\) leakage events. Exhaustive searches on small circuits confirm the counts in Table 1, and fits of logical error rates to \(p_L\propto(p/p_0)^{\alpha d}\) or \(P_{\rm fail}\propto(p/p_0)^{\alpha r}\) give \(\alpha\approx1\) for foliation in both experiments and \(\alpha\approx\tfrac12\) in stability for the SWAP-based circuits. The neutral-atom simulations add atom loss during gates and trap handoffs, Pauli gate errors, state-preparation and measurement errors, and shuttling decoherence.
Transferable methods
Pauli envelope of skip-gate leakage in a CZ-only circuit
A leaked qubit makes later gates on it do nothing. For CZ gates, doing nothing is the same as the leaked qubit sitting in \(\ket0\), and replacing a qubit by \(\ket0\) can be written as a single Pauli error at the leakage time, chosen according to the qubit's state.
Editorial derivation. \(\mathrm{CZ}=\ket0\!\bra0\otimes I+\ket1\!\bra1\otimes Z\), so a CZ whose first qubit is \(\ket0\) is the identity. A skipped gate therefore acts like a gate with the leaked qubit replaced by \(\ket0\) at time \(t\). That replacement is a \(Z\)-basis measurement followed by \(X\) if the outcome is \(1\), and the measurement is the Pauli mixture \(\tfrac12(\rho+Z\rho Z)\). In each branch the error at \(t\) is one of \(I,X,Y,Z\). The final measurement of a leaked qubit is flagged and its outcome discarded, which is covered by a \(Z\) before the \(X\)-basis readout, and that \(Z\) commutes with every CZ and moves back to \(t\). So in foliation the envelope is a single arbitrary Pauli \(P_i(t_i)\).
Two candidate times \(t_i,t_i^\prime\) for the same leaked qubit are confusable only through the product \(P_i(t_i)P_i^\prime(t_i^\prime)\). Because \(Z\) commutes with the CZ gates, \(Z(t)Z(t^\prime)\) is trivial, mixed products reduce to a \(Z\) plus \(X\) errors, and the only new error is \[X_i(t_i)\,X_i(t_i^\prime),\] a pair of bit flips on one qubit. The code fails only if such products over the leaked set form a logical operator, which needs at least \(d\) leaked qubits when no single-qubit pair grows into a distance-reducing error.
In a circuit where a qubit switches between control and target, written as CZ gates with Hadamards, the envelope places a Pauli after every Hadamard on the qubit, and products over more time points appear. This is the origin of the higher-weight hook errors in SWAP-based circuits.
How to reuse it
Reasoning with Pauli envelopes applies to any detectable leakage or loss model in Clifford circuits; circuits built so that each qubit keeps one role, always control or always target, inherit a single-Pauli envelope and the simpler hook analysis.
Counting leakage events needed for a time-like logical failure
In a stability experiment a failure is a time-like string of measurement errors spanning all rounds. Optimal correction means needing one leakage event per round to build it; SWAP-based circuits let one leaked atom span two rounds, halving the cost.
A pair of \(X\) errors on an ancilla separated by \(j\) CZ gates leaves \(Z\) errors on \(j\) of its data qubits: one is harmless, two are placed perpendicular to the logical by the N/Z order, three equal one up to a stabilizer, and four are the stabilizer itself. On a data qubit, pairs separated by one or three gates become a single error in an adjacent layer, and pairs separated by two gates become one space-like and one time-like error, or measurement errors on two different time-like logicals. None reduces the distance.
For walking and moonwalking each atom lives through two rounds, so the mismatch between two candidate leakage times of one atom can flip detectors in two consecutive rounds. Chaining such weight-2 time-like pieces across \(r\) rounds gives a logical path of about \(r/2\) leakage events, and the paper shows no cheaper path exists. With the fit \(P_{\rm fail}=c\,(p/p_0)^{\alpha r}\), the suppression from two more rounds is \[\Lambda=\frac{P_{\rm fail}(r)}{P_{\rm fail}(r+2)}=\Bigl(\frac{p_0}{p}\Bigr)^{2\alpha},\] so halving \(\alpha\) takes the square root of \(\Lambda\) at fixed \(p_0\).
Editorial comparison: the measured \(\Lambda\) at \(0.5\%\) CZ loss, \(1380\) for foliation against \(63\) for moonwalking, has \(\log1380/\log63\approx1.75\), close to the factor of \(2\) between exponents \(1\) and \(\tfrac12\); the thresholds \(p_0\) of the two circuits differ, so exact agreement is not expected.
How to reuse it
Counting the minimum number of located faults that build a logical operator, separately in space and time, is the right figure of merit for any erasure-dominated platform. It guides the choice between SWAP-based and teleportation-based circuits for other codes, including Floquet and qLDPC codes.
Context & limitations
Why it matters. Time-like failures limit lattice surgery and windowed decoding, so a circuit that is optimal only in memory leaves performance on the table for logical gates. The paper isolates the property that makes leakage correction optimal with end-of-the-line detection, the absence of weight-2 hook errors, and shows it holds for foliation because every qubit plays the same role in every gate. It also shows that the best circuit depends on the logical operation, which argues for designing error-correction circuits together with the logical circuit.
Limitations. The analysis assumes the skip-gate leakage model and perfect end-of-the-line detection; leakage that also dephases the partner qubit is left open. The branch-and-bound decoder that achieves the optimal counts is slow, and the fast marginal decoder loses part of the advantage in memory. Exhaustive minimum-weight searches are for small circuits, \(3\times3\) and \(2\times3\), and larger sizes rely on fitted exponents. Foliation needs more CZ layers and atom handoffs per round, which costs it in memory under realistic noise, and the neutral-atom comparison depends on hardware choices such as a single mobile trap array. Foliating a general CSS code roughly doubles the qubit count. None of the simulations was rerun here.