Spacetime Code in Quantum Error Correction
- Spacetime code is a quantum error-correction framework where circuit processes and measurement outcomes merge into a single object spanning qubits and timesteps.
- It employs methods that lift Clifford circuit measurement outcomes to stabilizer operators, enabling decoding through standard error-correction techniques.
- Applications include dynamical codes like Floquet systems and tensor-network constructions, with performance evaluated via fault distance and LDPC properties.
In the circuit-centric quantum error-correction literature, a spacetime code is a representation in which a fault-tolerant process is treated as a single object distributed over qubits and timesteps rather than as a static code supplemented by a separate syndrome-extraction circuit. One formulation defines it as a subsystem stabilizer code on “spacetime qubits,” with one physical qubit degree of freedom for each qubittimestep in the circuit, and with stabilizers identified with the circuit’s detectors (Pesah et al., 11 Sep 2025). A complementary formulation starts from the set of all possible measurement outcomes of a Clifford circuit, organizes those outcomes as a linear code, and lifts that outcome code to a stabilizer “spacetime code” on virtual qubits (Delfosse et al., 2023). Related work extends the notion to Floquet and other dynamical codes, tensor-network descriptions, chain-complex models, and gauge-theoretic constructions (Blackwell et al., 7 Oct 2025).
1. Definition, scope, and contrast with static codes
A static stabilizer code is ordinarily specified by an Abelian stabilizer group together with a fixed syndrome-extraction circuit. In the spacetime-code viewpoint, the distinction between “the code” and “the circuit that protects it” is collapsed: code and syndrome extraction become one object, so that the fault distance is intrinsic to the spacetime code itself (Pesah et al., 11 Sep 2025). This is the sense in which dynamical codes, including Floquet codes and subsystem protocols with time-dependent gauges, fit naturally into the framework (Pesah et al., 11 Sep 2025).
In this formulation, gauge operators encode trivial circuit-level propagations, such as the placement of a Pauli before a gate versus after a gate, while stabilizers or “detectors” arise from redundancies among measurement outcomes or from input-stabilizer postselections (Pesah et al., 11 Sep 2025). A common misconception is that a spacetime code is merely a static code with repeated syndrome measurements written in an extended notation. The literature instead assigns it its own logical content, detector structure, and decoding problem at circuit level (Pesah et al., 11 Sep 2025).
The same broad perspective appears in dynamical-code work on periodic Pauli measurements. There, spacetime codes are described as a natural generalization of static Pauli stabilizer codes to settings in which quantum information is protected by an ongoing sequence of Pauli measurements rather than by a fixed stabilizer group (Blackwell et al., 7 Oct 2025). This suggests that the term is best understood not as a single construction, but as a family of closely related formalisms whose common feature is the promotion of time from external schedule to encoded structure.
2. Outcome codes and the stabilizer construction from Clifford circuits
For a depth- Clifford circuit on qubits with Pauli measurements, every run produces an -bit outcome string . The set of all possible outcome strings is an affine subspace of , and after a trivial sign redefinition it may be taken to be a linear subspace (Delfosse et al., 2023). Equivalently, one computes a full set of checks 0, writes the parity-check matrix 1, and characterizes the outcome code as
2
The spacetime code 3 is then obtained by lifting checks of 4 to Pauli operators on 5 virtual qubits. For each 6, one defines a “pre-fault” operator 7 by placing each measured Pauli 8 immediately before its measurement when 9, and then applies the back-cumulant or backward-propagation map 0 to obtain the spacetime-check operator
1
Proposition 4.2 and Theorem 4.3 show that 2 is a commuting set of Pauli operators without 3, and hence the stabilizer generators of a 4 code with
5
This construction extends earlier circuit-to-code correspondences to include intermediate and multi-qubit measurements (Delfosse et al., 2023).
The decoding statement is equally central. For a product-fault model on spacetime Pauli faults, a most-likely-error decoder for 6 can be transformed into a most-likely-fault decoder for the original circuit (Delfosse et al., 2023). In effect, fault correction for the circuit is reduced to error correction in a stabilizer code. This is operationally significant because the latter problem admits standard decoders and established complexity analyses.
The construction is algorithmic rather than merely existential. Outcome-code checks are obtained by a modified stabilizer-simulation routine in the Heisenberg picture, and the stated implementation runs in 7 time using tableau or Gauss-Jordan techniques (Delfosse et al., 2023). The paper also gives an algorithm to generate low-weight spacetime checks by searching bounded-radius balls in a spacetime graph and extracting local stabilizers by restricted Gaussian elimination (Delfosse et al., 2023).
Locality properties can be inherited from the circuit. If the family of circuits is “bounded,” meaning that the checks of 8 can be chosen to have 9 weight and 0 depth, and if every gate acts on 1 qubits, then each spacetime check has 2 weight and the resulting spacetime code is LDPC. If, in addition, gates are geometrically local in 3 spatial dimensions, then the spacetime graph is a 4-dimensional lattice and the spacetime checks are local in 5 dimensions (Delfosse et al., 2023).
3. Dynamical codes, benign errors, and spacetime distance
For dynamical codes built from periodic sets of commuting Pauli measurements, the spacetime formalism begins with a sequence 6, with 7 measured simultaneously at time 8. If 9, the code is a Floquet code of period 0 (Blackwell et al., 7 Oct 2025). The associated spacetime Pauli errors form the direct-sum space
1
where 2 is inserted immediately after the measurements at time 3. The natural weight is
4
Detectability is defined through detectors and ancestries of stabilizers. Measuring 5 at time 6 yields a detector, and an error is undetectable precisely when it commutes, in the spacetime sense, with every detector (Blackwell et al., 7 Oct 2025). This separates dynamical decoding from the simpler static picture: the relevant observables are not just instantaneous stabilizers, but spacetime parity relations generated by the measurement history.
A crucial distinction is the class of benign errors. These are generated by two operations: inserting a measurement operator 7 at the time it is measured, and inserting identical Pauli operators on adjacent time slices around a commuting measurement, forming a “sandwiching” error (Blackwell et al., 7 Oct 2025). Every benign error is undetectable, and every instantaneous stabilizer is itself benign (Blackwell et al., 7 Oct 2025). Equivalent errors are defined by quotienting by benign errors.
The main bounded-inference result states that, in any bounded-inference dynamical code, every undetectable error in the steady stage is equivalent to a one-time-slice error 8 commuting with the instantaneous stabilizer group at time 9; equivalently, it is benign plus a logical operator of the instantaneous code (Blackwell et al., 7 Oct 2025). The resulting dichotomy is sharp: an undetectable error is correctable if and only if it is benign (Blackwell et al., 7 Oct 2025). Accordingly, the code distance is defined as the minimal weight of an undetectable non-benign spacetime Pauli error in the steady stage (Blackwell et al., 7 Oct 2025).
This distance need not coincide with any instantaneous code distance. The planar honeycomb example has instantaneous surface-code distance 0 but admits a constant-weight spacetime logical of weight 1 (Blackwell et al., 7 Oct 2025). By contrast, for the Floquet Bacon–Shor code on a 2 grid, one finds 3 (Blackwell et al., 7 Oct 2025). A recurrent misunderstanding is therefore that large instantaneous distance automatically implies large spacetime distance; the cited examples show that the dynamical schedule can introduce much shorter non-benign undetectable histories.
4. Algebraic, graphical, and gauge-theoretic formalisms
One algebraic formulation models a spacetime code by a length-2 chain complex
4
with 5 the gauge space, 6 the error space, and 7 the detector space (Pesah et al., 11 Sep 2025). In this language,
8
is the space of logical errors, while
9
is the space of logical correlations (Pesah et al., 11 Sep 2025). The distance becomes
0
and minimum-weight decoding is the constrained minimization of 1 subject to 2 (Pesah et al., 11 Sep 2025).
This complex formalism supports transformations between spacetime codes. A weak chain map induces a map on 3, and a fault-tolerant map is defined as a weak quasi-isomorphism that preserves the number of encoded qubits, fault distance, and minimum-weight decoding problem (Pesah et al., 11 Sep 2025). The equivalence of spacetime codes is then characterized by the existence of fault-tolerant maps in both directions (Pesah et al., 11 Sep 2025). The same framework extends foliated cluster-state constructions from stabilizer codes to arbitrary spacetime codes and shows that any Clifford circuit can be transformed into a measurement-based protocol with the same fault-tolerant properties (Pesah et al., 11 Sep 2025).
A complementary graphical formalism represents any Clifford circuit with Pauli measurements as a three-colored tensor network built from blue, red, and green “spider” projectors corresponding to the Pauli bases (Fuente et al., 2024). Its basic invariants are Pauli flows: assignments of highlights to internal edges and measurement labels satisfying the projective symmetries of each tensor. Flows form an 4-vector space with color addition given by the 5 fusion rules, such as red+blue=green and 6any=none (Fuente et al., 2024). Detector flows, stabilizer flows, and logical flows then encode, respectively, detector constraints, commuting stabilizer groups on open legs, and logical Pauli action through the network (Fuente et al., 2024).
From detector flows one builds a decoding hypergraph or, equivalently, a factor graph with parity-check matrix 7. Decoding becomes a MAP or belief-propagation-plus-OSD problem on the induced classical code: find the lowest-weight fault configuration consistent with the measured detector syndrome, then infer logical flips from an observable matrix 8 (Fuente et al., 2024). An important claim of this framework is that a well-defined decoding problem can be derived from the tensor network and its Pauli flows alone, independent of any stabilizer code or fixed circuit (Fuente et al., 2024).
A further reformulation gauges the spacetime code into a 9 lattice gauge theory. Starting from the ECO matrix of a Clifford circuit, one introduces a gauge-field bit 0 for each elementary-circuit operator and imposes Gauss laws
1
for each matter site 2 (Lee, 4 Jun 2026). In this gauged theory, Gauss laws encode fault-equivalence under multiplication by elementary-circuit operators, while Wilson loops
3
for redundancies 4 are in one-to-one correspondence with detectors (Lee, 4 Jun 2026). The same paper identifies three applications: foliated MBQC, classical memory in topologically ordered mixed states, and learning of Pauli noise, where the learnable observables coincide with the gauge-invariant detector degrees of freedom (Lee, 4 Jun 2026).
5. Families, compilation methods, and concrete protocols
The spacetime-code viewpoint has been used not only to analyze existing protocols but also to generate new ones. One example is the XYZ ruby code, a family of Floquet codes derived from topological subsystem codes and described by the three-colored tensor-network calculus. Its instantaneous stabilizer groups alternate among three phases; at 5 one has the hexagonal color-code stabilizer group, while after 6 and 7 measuring steps one obtains phases locally equivalent to three decoupled toric codes (Fuente et al., 2024). Over each length-3 cycle, the protocol applies a 8 automorphism to the logical Pauli group, and circuit-level benchmarks on a torus report thresholds 9, 0, and 1 (Fuente et al., 2024).
A different construction, spacetime concatenation, treats a dynamical code as an instrument 2 connecting an incoming and an outgoing stabilizer code while preserving logical information up to a logical unitary (Xu et al., 11 Apr 2025). The map is decomposed into local Clifford gadgets connected by internal “bond” legs, with binary encoding matrices 3 and 4 satisfying the symplectic condition 5, or 6 in the CSS case (Xu et al., 11 Apr 2025). Two sufficient conditions for fault tolerance are isolated: the Bond-Kernel-Rank Condition, which prevents measurement of logical operators, and the strict-7-locality-preservation condition, which controls Pauli-web spreading. Under these conditions, Theorem 2 gives 8 for macroscopic static distance 9 (Xu et al., 11 Apr 2025). Explicit examples include the dynamical bivariate bicycle code and a dynamical Haah code, and local defect adaptations are described for broken connectors and qubit dropout, both with a reported distance reduction to 0 (Xu et al., 11 Apr 2025).
The same circuit-level perspective also supports the design of specific logical gates. For the surface code, a twist-defect braiding protocol has been proposed that implements a logical 1 gate in spacetime volume
2
compared with 3 and 4 for earlier schemes (Hirai et al., 15 Apr 2026). The protocol proceeds by expanding the patch, creating a triangular 5 domain-wall “tent,” braiding one twist defect diagonally, performing 6 rounds of sequential Pauli-7 measurements, and then shrinking the patch back to its original size (Hirai et al., 15 Apr 2026). Circuit-level realizations are given both with constant-length non-local gates and with nearest-neighbor two-qubit gates on a square grid, without additional two-qubit gate depth beyond standard syndrome extraction (Hirai et al., 15 Apr 2026).
The reported fault distances for this 8-gate block are 9 for the Bombín protocol, 00 for the Gidney protocol, 01 for the proposed non-local version, and 02 for the proposed local version (Hirai et al., 15 Apr 2026). Monte Carlo with PyMatching yields logical error rates at 03 for 04, and the proposed protocols are described as having logical error rates comparable to existing methods at large code distances 05 and physical error rates near 06 despite the reduced fault distance (Hirai et al., 15 Apr 2026). A plausible implication is that spacetime volume, rather than static code distance alone, can be the dominant optimization variable in compiled fault-tolerant operations.
6. Broader and distinct usages of the term
A distinct line of work uses “spacetime code” in a finite-geometric setting. There the boundary is a blown-up Gibbons–Hoffman–Wootters phase space 07, whose totally isotropic 08-planes correspond to maximal commuting sets of 09-qubit Pauli observables, while the bulk is obtained from the Grassmannian of these planes via the Plücker embedding into a projective space 10 with 11 (Lévay et al., 2018). Choosing an isotropic spread gives a constant-dimension subspace code in 12 over 13 with parameters 14 (Lévay et al., 2018).
In that model, messages are complete sets of commuting observables associated with Lagrangian subspaces, corrupted messages are lower- or higher-dimensional subspaces, and decoding is geometric: one maps an error subspace 15 to a Schubert variety 16, then intersects its Plücker image with a distinguished code slice 17 to recover the unique codeword (Lévay et al., 2018). For 18, the bulk is the Klein quadric 19, and line intersection on the boundary corresponds to light-like separation in the bulk (Lévay et al., 2018). This usage is related to error correction, but it is not the same as the circuit-level spacetime-code formalism of the recent quantum fault-tolerance literature.
An even looser, explicitly metaphorical usage appears in a paper deriving the Lorentz and Poincaré algebras from the commutator and anticommutator structure of the Pauli matrices. There, one may regard the Pauli-matrix algebra as the “code” underpinning spacetime symmetry: rotations arise from commutators, boosts from anticommutators, and translations from appropriately chosen vector matrices in a reducible representation (Shurtleff, 2010). This is conceptually suggestive, but it is not a coding-theoretic spacetime code in the quantum-error-correction sense.
Taken together, these usages show that “spacetime code” is not a monosemous term. In present arXiv usage, its dominant technical meaning is the QEC notion in which a protected dynamical process is encoded directly in spacetime, with detectors, logical action, and decoding defined at circuit level. Broader finite-geometric and algebraic usages retain the same intuition—that spacetime structure can itself be encoded—but deploy it in mathematically distinct ways (Delfosse et al., 2023).