Skip to content

Menu

WorksPhysics and Astronomy

Algebraic Framework and Optimal Thresholds for Topological Codes in Spacetime

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_dz8x2qe9. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Quantum error-correcting codes offer increasingly versatile routes to fault-tolerant quantum computation, but their intrinsic noise resilience remains difficult to quantify. In this work, we develop an algebraic framework that unifies topological protection, optimal-threshold computation, and gauge-structure analysis in spacetime. Through a free-resolution construction of the spacetime fault complex and exactness transfer across CSS sectors, our framework establishes local stabilizer data as the complete algebraic input for determining optimal thresholds and code-induced gauge structures. Computational machinery built on this framework enables calculations in the thermodynamic limit for structurally complex codes. The application to six prominent codes spanning qLDPC, higher-dimensional topological, and fracton families yields previously unknown optimal thresholds, establishing their intrinsic error resilience. Our results cover more recent bivariate bicycle code families and resolve long-standing threshold problems for the three-dimensional color code and Haah's code. Moreover, we uncover new spacetime gauge theories with higher-form, translation-enriched, subsystem, and fractal structures and demonstrate a general construction of their order parameters from gauge-charge neutrality. Our work provides a constructive foundation for assessing the fault-tolerance potential of quantum stabilizer codes and for the systematic discovery of unconventional gauge theories.

Introduction

Quantum error-correcting codes increasingly exploit intricate stabilizer structures and nonlocal connectivity to achieve more versatile logical operations and higher encoding efficiency [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]. These advantages become consequential for fault-tolerant quantum computation only if the codes are sufficiently resilient to noise. A code’s noise resilience depends on the collective behavior of an ensemble of error configurations, not merely on the minimum weight of a logical error. The optimal threshold quantifies this resilience by marking the code’s correctability boundary and governing logical-error suppression [15, 16]. Nevertheless, it is undetermined even for prominent code families.

Determining the optimal threshold is both theoretically revealing and technically challenging. Optimal decoding admits a statistical-mechanical description in which the loss of correctability corresponds to a phase transition in a spin model with quenched disorder [15]. This correspondence has long driven efforts to locate optimal thresholds and explore unconventional states of matter [17, 18, 19, 20, 21, 22, 23]. However, the standard route has relied heavily on model-specific analysis and large-scale numerical simulations. For structurally complex codes, it can entail substantial analytical effort and prohibitive computational cost [22, 23]. Recent advances have broadened diagnostic approaches and representations of fault-tolerance properties in quantum codes [24, 25, 26, 27, 28, 29, 30, 31, 32]. They remain largely focused on benchmarking against known thresholds and establishing code-distance scaling. Yet frameworks that provide a general formulation of code fault tolerance and enable systematic quantification of error resilience are still elusive.

In this Letter, we develop a constructive algebraic framework for determining optimal thresholds of topological codes in spacetime. Going beyond representation, the framework establishes topological protection in spacetime and unifies threshold computation and gauge-structure analysis. This unification is achieved through a free-resolution construction of the spacetime fault complex and the transfer of exactness across CSS sectors to the dual interaction complex. Within this framework, we construct computational machinery in which local stabilizer data supply the complete algebraic input for determining optimal thresholds, even for structurally complex codes. From the same data, the framework also specifies the complete local gauge structure encoding the spacetime constraints on code excitations.

To demonstrate its reach, we compute the previously unknown optimal thresholds for six prominent codes under spacetime decoherence, summarized in Table I. These codes span structurally distinct code families and include more recent bivariate bicycle (BB) codes alongside computationally challenging examples such as the 3D color code and Haah’s code, introduced in 2006 and 2011, respectively [2, 3]. The two BB families containing the gross and two-gross codes both yield pth=0.029(2)p_{\mathrm{th}}=0.029(2), despite their different maximal logical-qubit counts. For the 3D color code, a paradigmatic route to fault-tolerant non-Clifford gates, we obtain pth=0.011(1)p_{\mathrm{th}}=0.011(1), resolving its long-standing threshold problem. Moreover, we reveal exceptional error resilience of fracton codes, with pth=0.034(2)p_{\mathrm{th}}=0.034(2), 0.034(1)0.034(1), and 0.022(1)0.022(1) for Haah’s, checkerboard, and X-cube codes, respectively.

CodeOptimal ThresholdInduced Gauge Theory
BB(1ˉ,1ˉ,3,3)(\bar{1},\bar{1},3,3)0.029(2)3D, symmetry enriched
BB(1ˉ,1ˉ,3,3ˉ)(\bar{1},\bar{1},3,\bar{3})0.029(2)
3D color0.011(1)4D, higher-form
Haah0.034(2)4D, fractal
Checkerboard0.034(1)4D, subsystem
X-cube0.022(1)4D, subsystem

Table I. Optimal thresholds and induced gauge theories for six representative codes under spacetime decoherence, spanning qLDPC, higher-dimensional topological, and fracton families. All these thresholds were previously unknown and would be difficult to determine using conventional approaches. The code-induced gauge theories exhibit novel gauge structures and order parameters.

In addition, the codes investigated here induce new spacetime gauge theories with higher-form, symmetry-enriched, subsystem, and fractal structures. We construct their gauge-invariant order parameters and demonstrate a fundamental distinction between gauge-charge closure and geometric closure.

Algebraic spacetime framework

We first recall the standard algebraic description of a translation-invariant Calderbank-Shor-Steane (CSS) code [33]. Let Rs=F2[x1±1,…,xD±1]R_s = \mathbb{F}_2[x_1^{\pm1}, \ldots, x_D^{\pm1}] be the Laurent polynomial ring of translations on a DD-dimensional spatial lattice, and suppose each unit cell contains aa XX-type checks, bb ZZ-type checks, and qq qubits. The static code can be represented by the chain complex

C1→∂1C0→∂0C−1.(1)C_1 \xrightarrow{\partial_1} C_0 \xrightarrow{\partial_0} C_{-1}. \tag*{(1)}

Here C1=Rsa⊕RsbC_1 = R_s^a \oplus R_s^b, C0=Rsq⊕RsqC_0 = R_s^q \oplus R_s^q, and C−1=Rsb⊕RsaC_{-1} = R_s^b \oplus R_s^a are the free RsR_s-modules of check labels, Pauli supports, and syndromes, respectively. The differentials ∂1=(Aˉ00B)\partial_1 = \begin{pmatrix} \bar{A} & 0 \\ 0 & B \end{pmatrix} and ∂0=(B†00Aˉ†)\partial_0 = \begin{pmatrix} B^\dagger& 0 \\ 0 & \bar{A}^\dagger\end{pmatrix} are the stabilizer and syndrome maps, respectively, where Aˉ\bar{A} and BB specify the supports of the XX- and ZZ-type stabilizers. The code is topological if the complex is exact on the infinite lattice, namely, im⁡∂1=ker⁡∂0\operatorname{im}\partial_1 = \ker\partial_0.

Promoting the chain complex to spacetime is necessary because realistic syndrome measurements are intrinsically noisy. To obtain a unified description of the stabilizer structure and repeated syndrome measurements, we construct a spacetime fault complex:

F∙: ⋯⟶F2→□2F1→□1F0→□0F−1⟶0.(2)F_\bullet:\ \cdots\longrightarrow F_2 \xrightarrow{\square_2} F_1 \xrightarrow{\square_1} F_0 \xrightarrow{\square_0} F_{-1} \longrightarrow0. \tag*{(2)}

Here, the spacetime modules Fi=(Ci⊕Ci−1)⊗RsRstF_i = (C_i \oplus C_{i-1}) \otimes_{R_s} R_{st} combine two adjacent modules of the static complex, with spacetime ring Rst=F2[x1±1,…,xD±1,t±1]R_{st} = \mathbb{F}_2[x_1^{\pm1}, \ldots, x_D^{\pm1}, t^{\pm1}] and time translation tt. Two successive measurement rounds are coupled through the spacetime differentials

□i≥1=(∂i(t−1)I0∂i−1),□0=(∂0(t−1)I).(3)\square_{i\geq1} = \begin{pmatrix} \partial_i & (t-1)I \\ 0 & \partial_{i-1} \end{pmatrix}, \qquad\square_0 = \begin{pmatrix} \partial_0 & (t-1)I \end{pmatrix}. \tag*{(3)}

The physical interpretation of this construction is transparent: F0F_0 is the fault-history module, containing both data-qubit and measurement faults, while F1F_1 and F−1F_{-1} label local fault deformations and detection events, respectively. The differentials □1\square_1 and □0\square_0 are the fault-deformation and detector maps, respectively. The higher differentials □i≥2\square_{i\geq2} generate a hierarchy of local relations and complete a free resolution of the fault-deformation module. The static complex is correspondingly extended to C∙:⋯→C2→∂2C1→∂1C0→∂0C−1C_\bullet:\cdots\to C_2 \xrightarrow{\partial_2} C_1 \xrightarrow{\partial_1} C_0 \xrightarrow{\partial_0} C_{-1}.

This formulation also makes the spacetime exactness relations and their physical consequences transparent. The spacetime fault complex in Eq. (2) factors as F∙=C∙⊗RsK∙F_\bullet= C_\bullet\otimes_{R_s} K_\bullet, where repeated syndrome measurements are encoded by a single-generator Koszul complex K∙=[Rst→t−1Rst]K_\bullet= [R_{st} \xrightarrow{t-1} R_{st}]. As K∙K_\bullet resolves Rst/(t−1)≃RsR_{st}/(t-1) \simeq R_s, the tensor product extension preserves static homology: Hi(F∙)≃Hi(C∙)H_i(F_\bullet) \simeq H_i(C_\bullet). The static topological condition thus extends to spacetime as im⁡□1=ker⁡□0\operatorname{im}\square_1 = \ker\square_0, ensuring topological protection and a diverging fault distance as the spacetime system grows. Likewise, the higher exactness of C∙C_\bullet transfers to im⁡□i+1=ker⁡□i\operatorname{im}\square_{i+1} = \ker\square_i for i≥1i \geq1, ensuring that the free resolution of im⁡□1\operatorname{im}\square_1 encodes complete information about local fault deformations and their higher relations. See SM [34] for proofs.

Whereas F∙F_\bullet describes the spacetime stabilizer structure, the optimal decoding problem is encoded in a dual formulation. To faithfully represent fault-class likelihoods, the formulation must account for the full kernel of □1†\square_1^\dagger and its higher relations. However, the ordinary dual of F∙F_\bullet does not generally inherit its exactness. We need to supply the missing generators to remove the cohomological obstruction to completeness.

The resulting formulation is an interaction cochain complex. For clarity, we decompose the CSS fault complex sectorwise as F∙=F∙X⊕F∙ZF_\bullet= F_\bullet^X \oplus F_\bullet^Z by taking the two diagonal blocks of ∂1\partial_1 and ∂0\partial_0. The most relevant segment is

F~2μ→□~2μF0μ→□~1μ=(□1μ)†F1μ→(□2μ)†F~2μ,(4)\widetilde{F}_2^\mu\xrightarrow{\widetilde{\square}_2^\mu} F_0^\mu\xrightarrow{\widetilde{\square}_1^\mu=(\square_1^\mu)^\dagger} F_1^\mu\xrightarrow{(\square_2^\mu)^\dagger} \widetilde{F}_2^\mu, \tag*{(4)}

with {μ,ν}={X,Z}\{\mu,\nu\} = \{X,Z\} and F~1ν=(C0ν⊕C1ν)⊗RsRst≃F1μ\widetilde{F}_1^\nu= (C_0^\nu\oplus C_1^\nu)\otimes_{R_s}R_{st} \simeq F_1^\mu written in the reversed block order. On this adjoint side, (□1μ)†(\square_1^\mu)^\dagger defines the interaction map of the auxiliary-spin model underlying optimal decoding, while (□2μ)†(\square_2^\mu)^\dagger encodes its gauge structure. To generate all finite-support interaction relations, we construct

References

  1. [1]E. T. Campbell, B. M. Terhal, and C. Vuillot, Roads towards fault-tolerant universal quantum computation, Nature 549, 172 (2017).DOI
  2. [2]H. Bombin and M. A. Martin-Delgado, Topological computation without braiding, Phys. Rev. Lett. 98, 160502 (2007).pubmed.ncbi.nlm.nih.gov/17501406
  3. [3]J. Haah, Local stabilizer codes in three dimensions without string logical operators, Phys. Rev. A 83, 042330 (2011).
  4. [4]A. A. Kovalev and L. P. Pryadko, Quantum repeater sum-product low-density parity-check codes with finite rate, Phys. Rev. A 88, 012311 (2013).DOI
  5. [5]J.-P. Tillich and G. Zémor, Quantum ldpc codes with positive rate and minimum distance proportional to the square root of the blocklength, IEEE Transactions on Information Theory 60, 1193 (2014).DOI
  6. [6]H. Bombín, Gauge color codes: Optimal transversal gates and gauge fixing in topological stabilizer codes, New Journal of Physics 17, 083002 (2015), arXiv:1311.0879 [quant-ph].arxiv.org/abs/1311.0879
  7. [7]S. Vijay, J. Haah, and L. Fu, Fracton topological order, generalized lattice gauge theory, and duality, Phys. Rev. B 94, 235157 (2016).DOI
  8. [8]A. Krishna and D. Poulin, Fault-tolerant gates on hypergraph product codes, Phys. Rev. X 11, 011023 (2021).DOI
  9. [9]N. P. Breuckmann and J. N. Eberhardt, Quantum low-density parity-check codes, PRX Quantum 2, 040101 (2021).DOI
  10. [10]P. Panteleev and G. Kalachev, Asymptotically good quantum and locally testable classical ldpc codes, in Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2022 (Association for Computing Machinery, New York, NY, USA, 2022) p. 375–388.arxiv.org/abs/2111.03654
  11. [11]A. Leverrier and G. Zémor, Quantum tanner codes, in 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS) (2022) pp. 872–883.arxiv.org/abs/2202.13641
  12. [12]S. Bravyi, A. W. Cross, J. M. Gambetta, D. Maslov, P. Rall, and T. J. Yoder, High-threshold and low-overhead fault-tolerant quantum memory, Nature 627, 778 (2024), arXiv:2308.07915.DOI
  13. [13]Q. Xu, J. P. Bonilla Ataides, C. A. Pattison, N. Ravendran, D. Bluvstein, J. Wurtz, B. Vasić, M. D. Lukin, L. Jiang, and H. Zhou, Constant-overhead fault-tolerant quantum computation with reconfigurable atom arrays, Nature Physics 20, 1084 (2024).arxiv.org/abs/2308.08648
  14. [14]D. J. Williamson and T. J. Yoder, Low-overhead fault-tolerant quantum computation by gauging logical operators, arXiv preprint arXiv:2410.02213 (2024).DOI
  15. [15]E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Topological quantum memory, Journal of Mathematical Physics 43, 4452 (2002).DOI
  16. [16]C. T. Chubb and S. T. Flammia, Statistical mechanical models for quantum codes with correlated noise, Annales de l’Institut Henri Poincaré D 8, 269 (2021).
  17. [17]C. Wang, J. Harrington, and J. Preskill, Confinement-higgs transition in a disordered gauge theory and the accuracy threshold for quantum memory, Annals of Physics 303, 31 (2003).DOI
  18. [18]H. G. Katzgraber, H. Bombin, and M. A. Martin-Delgado, Error threshold for color codes and random three-body ising models, Phys. Rev. Lett. 103, 090501 (2009).
  19. [19]R. S. Andrist, H. G. Katzgraber, H. Bombin, and M. A. Martin-Delgado, Tricolored lattice gauge theory with randomness: fault tolerance in topological color codes, New Journal of Physics 13, 083006 (2011).DOI
  20. [20]H. Bombin, R. S. Andrist, M. Ohzeki, H. G. Katzgraber, and M. A. Martin-Delgado, Strong resilience of topological codes to depolarization, Phys. Rev. X 2, 021004 (2012).
  21. [21]A. Kubica, M. E. Beverland, F. Brandão, J. Preskill, and K. M. Svore, Three-dimensional color code thresholds via statistical-mechanical mapping, Phys. Rev. Lett. 120, 180501 (2018).DOI
  22. [22]H. Song, J. Schömnier-Kromer, K. Liu, O. Viyuela, L. Pollet, and M. A. Martin-Delgado, Optimal thresholds for fracton codes and random spin models with subsystem symmetry, Phys. Rev. Lett. 129, 230502 (2022).DOI
  23. [23]G. Canossa, L. Pollet, M. A. Martin-Delgado, H. Song, and K. Liu, Error resilience of fracton codes and near saturation of code-capacity threshold in three dimensions, Phys. Rev. B 113, 104204 (2026).DOI
  24. [24]R. Fan, Y. Bao, E. Altman, and A. Vishwanath, Diagnostics of mixed-state topological order and breakdown of quantum memory, PRX Quantum 5, 020343 (2024), arXiv:2301.05689 [quant-ph].
  25. [25]K. Su, Z. Yang, and C.-M. Jian, Tapestry of dualities in decohered quantum error correction codes, Phys. Rev. B 110, 085158 (2024), arXiv:2401.17359 [cond-mat.str-el].DOI
  26. [26]L. Colmenarez, Z.-M. Huang, S. Diehl, and M. Müller, Accurate optimal quantum error correction thresholds from coherent information, Phys. Rev. Res. 6, L042014 (2024), arXiv:2312.06664 [quant-ph].DOI
  27. [27]A. Lyons, Understanding stabilizer codes under local decoherence through a general statistical mechanics mapping, arXiv preprint arXiv:2403.03955 (2024).arxiv.org/abs/2403.03955
  28. [28]Y. Li, N. O’Dea, and V. Khemani, Perturbative stability and error-correction thresholds of quantum codes, PRX Quantum 6, 010327 (2025), arXiv:2406.15757 [quant-ph].DOI
  29. [29]T. Hillmann, G. Dauphinais, I. Tzitrin, and M. Vasmer, Single-shot and measurement-based quantum error correction via fault complexes, Phys. Rev. A 112, L040401 (2025), arXiv:2410.12963 [quant-ph].DOI
  30. [30]C. T. Aitchison and B. Béri, Spacetime spins: Statistical mechanics for error correction with stabilizer circuits, arXiv preprint arXiv:2512.21991 (2025).arxiv.org/abs/2512.21991
  31. [31]Y. Xu, Y. Wang, and Z.-W. Liu, A framework for low-overhead quantum fault tolerance via spacetime lifting, arXiv preprint arXiv:2606.06365 (2026).arxiv.org/abs/2606.06365
  32. [32]G. Lee, G. Gauging the spacetime code, arXiv preprint arXiv:2606.05664 (2026).arxiv.org/abs/2606.05664
  33. [33]J. Haah, Commuting pauli hamiltonians as maps between free modules, Communications in Mathematical Physics 324, 351 (2013).
  34. [34]See Supplemental Material for the stabilizer and excitation maps, the spacetime statistical-mechanical mapping with measurement errors, the boundary-generated linked-cluster expansion, and the code-induced gauge theories and gauge-invariant order parameters, which includes Refs. [44–51].
  35. [35]K. Chen, Y. Liu, Y. Zhang, Z. Liang, Y.-A. Chen, K. Liu, and H. Song, Anyone theory and topological frustration of high-efficiency quantum low-density parity-check codes, Physical Review Letters 135, 076603 (2025), arXiv:2503.04699 [quant-ph].DOI
  36. [36]T. J. Yoder, E. Schoute, P. Rall, E. Pritchett, J. M. Gambetta, A. W. Cross, M. Carroll, and M. E. Beverland, Tour de gross: A modular quantum computer based on bivariate bicycle codes (2025), arXiv:2506.03094 [quant-ph].arxiv.org/abs/2506.03094
  37. [37]J.-Z. Xu, Y. Zhong, M. A. Martin-Delgado, H. Song, and K. Liu, Phenomenological noise models and optimal thresholds of the 3d toric code, Quantum Science and Technology 11, 035022 (2026).DOI
  38. [38]C. Yin and A. Lucas, Low-density parity-check codes as stable phases of quantum matter, PRX Quantum 6, 030329 (2025).DOI
  39. [39]W. De Roeck, V. Khemani, Y. Li, N. O’Dea, and T. Rakovszky, Low-density parity-check stabilizer codes as gapped quantum phases: Stability under graph-local perturbations, PRX Quantum 6, 030330 (2025).DOI
  40. [40]G. Zhu, A topological theory for qldpc: non-clifford gates and magic state fountain on homological product codes with constant rate and beyond the n^{1/3} distance barrier, arXiv preprint arXiv:2501.19375 (2025).arxiv.org/abs/2501.19375
  41. [41]S. Zhang, T.-C. Wei, and N. Tantivasadakarn, Coupled-layer construction of quantum product codes (2026), arXiv:2603.08711 [quant-ph].arxiv.org/abs/2603.08711
  42. [42]D. Vodola, M. Rispler, S. Kim, and M. Müller, Fundamental thresholds of realistic quantum error correction circuits from classical spin models, Quantum 6, 618 (2022), arXiv:2104.04847.
  43. [43]B.-B. Wang, J.-Z. Xu, H.-J. Liao, H. Song, and K. Liu, Data for "Algebraic Framework and Optimal Thresholds for Topological Codes in Spacetime", Zenodo (2026), version 1.0.arxiv.org/abs/2611.37575
  44. [44]H. Song, Superselection rigidity of topological calderbank–shor–steane codes: From koszul-complex models to nonsplit extensions, arXiv preprint arXiv:2608.09913 (2026).arxiv.org/abs/2608.09913
  45. [45]C. A. Weibel, An Introduction to Homological Algebra, Cambridge Studies in Advanced Mathematics, Vol. 38 (Cambridge University Press, Cambridge, 1994).DOI
  46. [46]F. Butt, L. Esser, and M. Müller, Decoding three-dimensional color codes with boundaries, Phys. Rev. A 113, 042416 (2026).DOI
  47. [47]M. Hellmund and W. Janke, Star-graph expansions for bond-diluted Potts models, Phys. Rev. E 67, 026118 (2003).pubmed.ncbi.nlm.nih.gov/12636759
  48. [48]M. Hellmund and W. Janke, High-temperature series for the bond-diluted Ising model in 3, 4, and 5 dimensions, Phys. Rev. B 74, 144201 (2006), arXiv:cond-mat/0606320 [cond-mat.stat-mech].DOI
  49. [49]D. H. Redelmeier, Counting polyominoes: Yet another attack, Discrete Mathematics 36, 191 (1981).DOI
  50. [50]B. Ruba and B. Yang, Homological invariants of Pauli stabilizer codes, Commun. Math. Phys. 405, 126 (2024), arXiv:2204.06023 [math-ph].DOI
  51. [51]H. Song, N. Tantivasadakarn, W. Shirley, and M. Hermele, Fracton self-statistics, Phys. Rev. Lett. 132, 016604 (2024).DOI

Machine contribution statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How machine contributions are recorded

Paper details

Citation

Cite
Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Table I

1 / 2
Contents

Pick where to look, or just type