[Jump to code hierarchy]

Self-correcting quantum code [1,2]

Alternative Names: Self-correcting quantum memory, Thermally stable encoding.

Description

A block quantum code that forms the ground-state subspace of an \(n\)-body geometrically local Hamiltonian whose logical information is recoverable for arbitrarily long times in the \(n\to\infty\) limit after interaction with a sufficiently cold thermal environment. Typically, one also requires a decoder whose decoding time scales polynomially with \(n\) and a finite energy density.

The original criteria for a self-correcting quantum memory, informally known as the Caltech rules [3,4], also required finite-spin Hamiltonians. A concatenated quantum code with self-simulating control elements based on work by Gacs [5–8] yields a self-correcting quantum memory in 2D [9].

The effect of a Markovian thermal environment consists of a Lindbladian in Davies form admitting a Gibbs steady state at some temperature \(T\) [10]. To test whether a system is self-correcting, an initial codeword \(\rho(0)\) is evolved under the Davies Lindbladian and the code Hamiltonian to the state \(\rho(t)\) at time \(t\). The code Hamiltonian can be replaced by a code Lindbladian if extra passive protection is allowed. The state \(\rho(t)\) is then decoded via a decoding map \(\cal{D}\). The memory time \(\tau\) is defined to be \begin{align} \tau=\sup\left\{ t>0\,|\left\Vert {\cal D}( \rho(t) )-\rho(0)\right\Vert _{1}<\epsilon\right\}\tag*{$(1)$} \end{align}for some fixed \(\epsilon\). For a self-correcting memory, there exists a critical temperature \(T_\star>0\) such that \(\tau\to\infty\) (typically, exponentially with \(n\)) as \(n\to\infty\) for any temperature \(T<T_{\star}\) and any codeword \(\rho(0)\). A memory is partially self-correcting if \(\tau\) scales polynomially with \(n\) up to some cutoff \(n_{max}\). A self-correcting memory is typically associated with a (stable) phase of quantum matter.

Protection

Self-correcting classical memories exist in two and higher dimensions, with the canonical example being the classical Ising model. In that model, a classical bit is stored in the overall magnetization. The magnetization is thermally stable due to the fact that there is an \(n\)-dependent (i.e., macroscopic) energy cost of flipping a contiguous region of physical bits [10,11]. This cost scales with the surface area of the region, and the surface area is \(n\)-dependent for dimensions greater than one.

Self-correcting quantum memories are known in three [12] and higher dimensions, and a concatenated construction with self-simulating control elements yields one in 2D [9]. Existence in one dimension is impossible (see, e.g., Ref. [13]). For similar reasons as the classical 2D Ising model is a self-correcting classical memory, the 4D loop toric code is a self-correcting quantum memory due to an order \(O(n)\) energy cost of creating a logical error [1,2]. On the other hand, the 2D surface code is not thermally stable [14–18] because its string-like logical operators anti-commute with stabilizer generators supported only at their ends, and thus have a constant energy cost of creation. There is a general upper bound on the relaxation rate of a qubit stabilizer or qubit subsystem stabilizer quantum memory interacting with a Markovian environment [19].

An \(n\)-dependent energy barrier to creating all logical errors is likely necessary for a thermally stable memory, having been shown as such for a large class of 2D topological phases [20,21] including Abelian [22] and non-Abelian [23] quantum doubles. Two-dimensional stabilizer codes [24] and encodings of frustration-free code Hamiltonians [25] admit only constant-energy excitations, and so do not admit such a barrier. No-go theorems for 3D models are much more restrictive [26], e.g., a 3D lattice stabilizer code with a locality-preserving non-Clifford gate cannot have a microscopic energy barrier [27]. A 3D lattice stabilizer code family with macroscopic distance is not self-correcting if its stabilizer geometry, projected along some direction, has Assouad dimension below two [28; Thm. 11]. Such a family admits a logical operator inside a constant-radius tube along that direction and hence has a constant energy barrier [28; Thm. 11]. This no-go extends to subsystem codes obtained by gauging such local stabilizer Hamiltonians [28; Thm. 11]. More generally, translationally invariant CSS codes are not self-correcting at high temperature [29,30]. There exist several candidates for self-correction as well as several partially self-correcting memories (see cousins below).

The lifetime of a ground-state memory protected by a Hamiltonian alone can increase at most logarithmically with \(n\) under depolarizing noise [31,32], and a clock Hamiltonian can saturate this bound [32].

Notes

Reviews of self-correcting memories [10,33].

Cousins

  • Kitaev surface code— The surface code is not thermally stable [14–18] because its string-like logical operators anti-commute with stabilizer generators supported only at their ends, and thus have a constant energy cost of creation. Various candidates for self-correcting quantum memories have been constructed by coupling neighboring anyons in the code so as to prevent them from spreading [34–41].
  • 2D lattice stabilizer code— 2D stabilizer codes [24] and encodings of frustration-free code Hamiltonians [25] admit only constant-energy excitations, and so do not have an energy barrier.
  • Quantum-double code— An \(n\)-dependent energy barrier to creating all logical errors is likely necessary for a thermally stable memory, having been shown as such for a large class of 2D topological phases [20,21] including Abelian [22] and non-Abelian [23] quantum doubles.
  • 3D lattice stabilizer code— 3D translationally-invariant qubit stabilizer code families with constant \(k\) support logical string operators and thus cannot be self-correcting [42]. For non-constant \(k\), such families can support at most a logarithmic energy barrier [43]. A 3D lattice stabilizer code family with macroscopic distance whose stabilizer geometry, projected along some direction, has Assouad dimension below two cannot be self-correcting [28; Thm. 11].
  • 3D surface code— The welded surface code has a power-law energy barrier [44,45] and is partially self-correcting [45]. The 3D toric code is a classical self-correcting memory, whose protected bit admits a membrane-like logical operator [4], but it is not a quantum self-correcting memory because the star terms thermalize [30].
  • 3D subsystem surface code— The 3D subsystem surface code is not a self-correcting quantum memory despite being a single-shot code [46].
  • \((2,2)\) Loop toric code— For similar reasons as the classical 2D Ising model is a self-correcting classical memory, the 4D loop toric code is a self-correcting quantum memory due to an order \(O(n)\) energy cost of creating a logical error [1,2].
  • Color code— The 6D color code is a self-correcting quantum memory and admits a fault-tolerant universal gate set in 7D [47].
  • Haah cubic code (CC)— Cubic code 1 has a logarithmic energy barrier [26] and is partially self-correcting below a temperature-dependent system-size cutoff [48]. Under Davies dynamics with single-qubit \(X\) and \(Z\) couplings on a periodic lattice, it thermalizes in time \(O(\log n)\) at every positive temperature [49]. Its memory time is therefore at most logarithmic in \(n\) for any decoder, so it is not self-correcting [49].
  • Lattice stabilizer code— Translationally invariant CSS codes are not self-correcting at high temperature [29,30].
  • Quantum repetition code— The bit-flip repetition code associated with the 2D classical Ising model is a self-correcting classical memory [10; Sec. V.A].
  • Repetition code— The repetition code associated with the 2D classical Ising model is a self-correcting classical memory [50][10; Sec. V.A].
  • 3D Bacon-Shor code— 3D Bacon-Shor codes were conjectured to be self-correcting [51], but there remain issues to be resolved in order to validate this conjecture (see [10; Sec. IX.B]).
  • Expander code— Constant-rate random (quantum) expander codes are self-correcting (quantum) memories, but have no thermodynamic phase transitions [52].
  • Quantum expander code— Constant-rate random (quantum) expander codes are self-correcting (quantum) memories, but have no thermodynamic phase transitions [52].
  • Hypergraph product (HGP) code— There are bounds on the energy barrier of hypergraph product codes [53].
  • QLDPC code— Linear confinement of QLDPC (LDPC) codes implies (classical) self-correction [52].
  • Low-density parity-check (LDPC) code— Linear confinement of QLDPC (LDPC) codes implies (classical) self-correction [52].
  • Concatenated quantum code— A concatenated quantum code with self-simulating control elements based on work by Gacs [5–8] yields a self-correcting quantum memory in 2D [9].
  • Matrix-model code— Matrix-model codes are similar to self-correcting memories in the sense that memory time becomes infinite in the thermodynamic limit, but with corrections being polynomial in \(N\).
  • Cat-repetition code— The cat-repetition code on a 2D mode lattice is a candidate for a memory that may be self-correcting, but only in the limit of infinite energy per mode [54].
  • Single-shot code— The presence of an energy barrier (i.e., confinement) is sufficient for a code to be single shot, and is also conjectured to be necessary for a code to be a self-correcting memory. Linear confinement of QLDPC (LDPC) codes implies (classical) self-correction [52].
  • Quantum locally testable code (QLTC)— The notion of an energy barrier in a self-correcting memory is intimately related to the soundness of a QLTC.
  • Cubic theory code— A family of five-dimensional cubic theory codes with Abelian loop excitations and non-Abelian membrane excitations is argued to be self-correcting below a critical temperature via a Peierls argument [55].
  • Layer code— The energy barrier of excitations for layer codes constructed using asymptotically good QLDPC codes scales as order \(\Theta(n^{1/3})\) [56]. Layer codes are partially self-correcting quantum memories [57,58]. Layer codes constructed from random CSS codes have near-optimal scaling of code parameters and a polynomial energy barrier, exhibiting behavior consistent with partial self-correction [57].
  • Fractal surface code— The classical codes underlying the fractal product code form classical self-correcting memories [59–61].

Primary Hierarchy

Parents
Self-correcting quantum codes do no require a symmetry for protection, so in that sense they are protected by a trivial symmetry.
Self-correcting quantum code
Children
Below a critical temperature, a logical qubit thermally encoded in the recursive 3D self-correcting code has memory time at least \(\exp(\Theta(n^{\eta}))\) for a constant \(\eta>0\) (using asymptotic notation) [12; Thm. 3.16]. The bound holds for Markovian thermal dynamics with single-qubit Pauli jump operators [12; Sec. 5].

References

  1. [1]

    E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, “Topological quantum memory”, Journal of Mathematical Physics 43, 4452 (2002) arXiv:quant-ph/0110143 DOI

  2. [2]

    R. Alicki, M. Horodecki, P. Horodecki, and R. Horodecki, “On thermal stability of topological qubit in Kitaev’s 4D model”, (2008) arXiv:0811.0033

  3. [3]

    C. G. Brell, “A proposal for self-correcting stabilizer quantum memories in 3 dimensions (or slightly less)”, New Journal of Physics 18, 013050 (2016) arXiv:1411.7046 DOI

  4. [4]

    O. Landon-Cardinal, B. Yoshida, D. Poulin, and J. Preskill, “Perturbative instability of quantum memory based on effective long-range interactions”, Physical Review A 91, (2015) arXiv:1501.04112 DOI

  5. [5]

    P. Gács, “Reliable computation with cellular automata”, Proceedings of the fifteenth annual ACM symposium on Theory of computing - STOC ’83 32 (1983) DOI

  6. [6]

    P. Gács, “Reliable computation with cellular automata”, Journal of Computer and System Sciences 32, 15 (1986) DOI

  7. [7]

    P. Gács, “Self-Correcting Two-Dimensional Arrays”, Advances in Computing Research 5, 223-326 (1989)

  8. [8]

    P. Gács, “Reliable Cellular Automata with Self-Organization”, Journal of Statistical Physics 103, 45 (2001) arXiv:math/0003117 DOI

  9. [9]

    G. Dünnweber, G. Styliaris, and R. Trivedi, “Quantum Memory and Autonomous Computation in Two Dimensions”, (2026) arXiv:2601.20818

  10. [10]

    B. J. Brown, D. Loss, J. K. Pachos, C. N. Self, and J. R. Wootton, “Quantum memories at finite temperature”, Reviews of Modern Physics 88, (2016) arXiv:1411.6643 DOI

  11. [11]

    R. Peierls, “On Ising’s model of ferromagnetism”, Mathematical Proceedings of the Cambridge Philosophical Society 32, 477 (1936) DOI

  12. [12]

    S. Balasubramanian, M. Davydova, and T.-C. Lin, “A passive self-correcting quantum memory in three dimensions”, (2026) arXiv:2605.10943

  13. [13]

    T. Bergamaschi and C.-F. Chen, “Fast Mixing of Quantum Spin Chains at All Temperatures”, (2026) arXiv:2510.08533

  14. [14]

    R. Alicki, M. Fannes, and M. Horodecki, “A statistical mechanics view on Kitaev’s proposal for quantum memories”, Journal of Physics A: Mathematical and Theoretical 40, 6451 (2007) arXiv:quant-ph/0702102 DOI

  15. [15]

    Z. Nussinov and G. Ortiz, “Autocorrelations and thermal fragility of anyonic loops in topologically quantum ordered systems”, Physical Review B 77, (2008) arXiv:0709.2717 DOI

  16. [16]

    R. Alicki, M. Fannes, and M. Horodecki, “On thermalization in Kitaev’s 2D model”, Journal of Physics A: Mathematical and Theoretical 42, 065303 (2009) arXiv:0810.4584 DOI

  17. [17]

    F. Pastawski, A. Kay, N. Schuch, and I. Cirac, “Limitations of Passive Protection of Quantum Information”, (2009) arXiv:0911.3843

  18. [18]

    Z. Ding, Z. Landau, B. Li, L. Lin, and R. Zhang, “Polynomial-Time Preparation of Low-Temperature Gibbs States for 2D Toric Code”, (2025) arXiv:2410.01206

  19. [19]

    S. Chesi, D. Loss, S. Bravyi, and B. M. Terhal, “Thermodynamic stability criteria for a quantum memory based on stabilizer and subsystem codes”, New Journal of Physics 12, 025013 (2010) arXiv:0907.2807 DOI

  20. [20]

    A. Kay and R. Colbeck, “Quantum Self-Correcting Stabilizer Codes”, (2008) arXiv:0810.3557

  21. [21]

    K. Temme, “Thermalization time bounds for Pauli stabilizer Hamiltonians”, (2016) arXiv:1412.2858

  22. [22]

    A. Kómár, O. Landon-Cardinal, and K. Temme, “Necessity of an energy barrier for self-correction of Abelian quantum doubles”, Physical Review A 93, (2016) arXiv:1601.01324 DOI

  23. [23]

    A. Lucia, D. Pérez-García, and A. Pérez-Hernández, “Thermalization in Kitaev’s quantum double models via tensor network techniques”, Forum of Mathematics, Sigma 11, (2023) arXiv:2107.01628 DOI

  24. [24]

    S. Bravyi and B. Terhal, “A no-go theorem for a two-dimensional self-correcting quantum memory based on stabilizer codes”, New Journal of Physics 11, 043029 (2009) arXiv:0810.1983 DOI

  25. [25]

    O. Landon-Cardinal and D. Poulin, “Local Topological Order Inhibits Thermal Stability in 2D”, Physical Review Letters 110, (2013) arXiv:1209.5750 DOI

  26. [26]

    S. Bravyi and J. Haah, “Energy Landscape of 3D Spin Hamiltonians with Topological Order”, Physical Review Letters 107, (2011) arXiv:1105.4159 DOI

  27. [27]

    F. Pastawski and B. Yoshida, “Fault-tolerant logical gates in quantum error-correcting codes”, Physical Review A 91, (2015) arXiv:1408.1720 DOI

  28. [28]

    Y. Lu, E. X. Fu, and Z.-W. Liu, “Intrinsic locality dimension of quantum codes”, (2026) arXiv:2605.31441

  29. [29]

    K. Temme and M. J. Kastoryano, “How fast do stabilizer Hamiltonians thermalize?”, (2015) arXiv:1505.07811

  30. [30]

    S. Stengele, Á. Capel, L. Gao, A. Lucia, D. Pérez-García, A. Pérez-Hernández, C. Rouzé, and S. Warzel, “Modified Logarithmic Sobolev Inequalities for CSS Codes”, Communications in Mathematical Physics 407, (2026) arXiv:2510.03090 DOI

  31. [31]

    A. Kay, “Nonequilibrium Reliability of Quantum Memories”, Physical Review Letters 102, (2009) arXiv:0807.0287 DOI

  32. [32]

    F. Pastawski, A. Kay, N. Schuch, and I. Cirac, “How Long Can a Quantum Memory Withstand Depolarizing Noise?”, Physical Review Letters 103, (2009) arXiv:0904.4861 DOI

  33. [33]

    J. R. Wootton, “Quantum memories and error correction”, Journal of Modern Optics 59, 1717 (2012) arXiv:1210.3207 DOI

  34. [34]

    A. Hamma, C. Castelnovo, and C. Chamon, “Toric-boson model: Toward a topological quantum memory at finite temperature”, Physical Review B 79, (2009) arXiv:0812.4622 DOI

  35. [35]

    S. Chesi, B. Röthlisberger, and D. Loss, “Self-correcting quantum memory in a thermal environment”, Physical Review A 82, (2010) arXiv:0908.4264 DOI

  36. [36]

    C. Stark, L. Pollet, A. Imamoğlu, and R. Renner, “Localization of Toric Code Defects”, Physical Review Letters 107, (2011) arXiv:1101.6028 DOI

  37. [37]

    D. Poulin, “Decoding problem for topological quantum codes”, Simons Center for Geometry and Physics, Stony Brook University, 2011 URL

  38. [38]

    M. Herold, E. T. Campbell, J. Eisert, and M. J. Kastoryano, “Cellular-automaton decoders for topological quantum memories”, npj Quantum Information 1, (2015) arXiv:1406.2338 DOI

  39. [39]

    M. Herold, M. J. Kastoryano, E. T. Campbell, and J. Eisert, “Cellular automaton decoders of topological quantum memories in the fault tolerant setting”, New Journal of Physics 19, 063012 (2017) arXiv:1511.05579 DOI

  40. [40]

    C.-E. Bardyn and T. Karzig, “Exponential lifetime improvement in topological quantum memories”, Physical Review B 94, (2016) arXiv:1512.04528 DOI

  41. [41]

    E. Lake, “Local active error correction from simulated confinement”, (2025) arXiv:2510.08056

  42. [42]

    B. Yoshida, “Feasibility of self-correcting quantum memory and thermal stability of topological order”, Annals of Physics 326, 2566 (2011) arXiv:1103.1885 DOI

  43. [43]

    J. Haah, “Local stabilizer codes in three dimensions without string logical operators”, Physical Review A 83, (2011) arXiv:1101.1962 DOI

  44. [44]

    K. Michnicki, “3-d quantum stabilizer codes with a power law energy barrier”, (2012) arXiv:1208.3496

  45. [45]

    K. P. Michnicki, “3D Topological Quantum Memory with a Power-Law Energy Barrier”, Physical Review Letters 113, (2014) arXiv:1406.4227 DOI

  46. [46]

    Y. Li, C. W. von Keyserlingk, G. Zhu, and T. Jochym-O’Connor, “Phase diagram of the three-dimensional subsystem toric code”, Physical Review Research 6, (2024) arXiv:2305.06389 DOI

  47. [47]

    H. Bombin, R. W. Chhajlany, M. Horodecki, and M. A. Martin-Delgado, “Self-Correcting Quantum Computers”, (2012) arXiv:0907.5228

  48. [48]

    S. Bravyi and J. Haah, “Quantum Self-Correction in the 3D Cubic Code Model”, Physical Review Letters 111, (2013) arXiv:1112.3252 DOI

  49. [49]

    S. Stengele, L. Caha, Á. Capel, and S. Warzel, “Haah’s 3D cubic code thermalizes rapidly”, (2026) arXiv:2609.39959

  50. [50]

    L. E. Thomas, “Bound on the mass gap for finite volume stochastic ising models at low temperature”, Communications in Mathematical Physics 126, 1 (1989) DOI

  51. [51]

    D. Bacon, “Operator quantum error-correcting subsystems for self-correcting quantum memories”, Physical Review A 73, (2006) arXiv:quant-ph/0506023 DOI

  52. [52]

    Y. Hong, J. Guo, and A. Lucas, “Quantum memory at nonzero temperature in a thermodynamically trivial system”, Nature Communications 16, (2025) arXiv:2403.10599 DOI

  53. [53]

    G. Zhao, A. C. Doherty, and I. H. Kim, “Energy Barrier of Hypergraph Product Codes”, Physical Review Letters 134, (2025) arXiv:2407.20526 DOI

  54. [54]

    S. Lieu, Y.-J. Liu, and A. V. Gorshkov, “Candidate for a passively protected quantum memory in two dimensions”, (2023) arXiv:2205.09767

  55. [55]

    P.-S. Hsin, R. Kobayashi, and G. Zhu, “Non-Abelian Self-Correcting Quantum Memory and Transversal Non-Clifford Gate Beyond the n \({}^{1/3}\) Distance Barrier”, PRX Quantum 6, (2025) arXiv:2405.11719 DOI

  56. [56]

    D. J. Williamson and N. Baspin, “Layer codes”, Nature Communications 15, (2024) arXiv:2309.16503 DOI

  57. [57]

    S. Gu, L. Caha, S. H. Choe, Z. He, A. Kubica, and E. Tang, “Layer Codes as Partially Self-Correcting Quantum Memories”, Physical Review Letters 136, (2026) arXiv:2510.06659 DOI

  58. [58]

    D. J. Williamson, “Partial Self-Correction in Layer Codes”, (2025) arXiv:2510.09218

  59. [59]

    A. Vezzani, “Spontaneous magnetization of the Ising model on the Sierpinski carpet fractal, a rigorous result”, Journal of Physics A: Mathematical and General 36, 1593 (2003) arXiv:cond-mat/0212497 DOI

  60. [60]

    R. Campari and D. Cassi, “Generalization of the Peierls-Griffiths theorem for the Ising model on graphs”, Physical Review E 81, (2010) arXiv:1002.1227 DOI

  61. [61]

    M. Shinoda, “Existence of phase transition of percolation on Sierpiński carpet lattices”, Journal of Applied Probability 39, 1 (2002) DOI

Page edit log

Your contribution is welcome!

on github.com (edit & pull request)

— see instructions

Zoo Code ID: self_correct

Cite as:
“Self-correcting quantum code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/self_correct, arXiv:2606.11484
BibTeX:
@incollection{eczoo_self_correct,
title={Self-correcting quantum code},
booktitle={The Error Correction Zoo},
year={2026},
editor={Albert, Victor V. and Faist, Philippe},
eprint={2606.11484},
doi={10.48550/arXiv.2606.11484},
url={https://errorcorrectionzoo.org/c/self_correct}
}
Share via:
Twitter | Mastodon |  | E-mail
Permanent link:
https://errorcorrectionzoo.org/c/self_correct

Cite as:

“Self-correcting quantum code”, The Error Correction Zoo (V. V. Albert & P. Faist, eds.), 2026. https://errorcorrectionzoo.org/c/self_correct, arXiv:2606.11484

Github: https://github.com/errorcorrectionzoo/eczoo_data/edit/main/codes/quantum/properties/hamiltonian/self_correct.yml.