- Open Access
Spectral Properties and Coding Transitions of Haar-Random Quantum Codes
PRX Quantum 7, 020328 – Published 13 May, 2026
DOI: https://doi.org/10.1103/d4wh-hqcp
Abstract
A quantum error-correcting code with a nonzero error threshold undergoes a mixed-state phase transition when the error rate reaches that threshold. We explore this phase transition for Haar-random quantum codes, in which the logical information is encoded in a random subspace of the physical Hilbert space. We focus on the spectrum of the encoded system density matrix as a function of the rate of uncorrelated, single-qudit errors. For low error rates, this spectrum consists of well-separated bands, representing errors of different weights. As the error rate increases, the bands for high-weight errors merge. The evolution of these bands with increasing error rate is well described by a simple analytic ansatz. Using this ansatz, as well as an explicit calculation, we show that the threshold for Haar-random quantum codes saturates the hashing bound, and thus coincides with that for random stabilizer codes. For error rates that exceed the hashing bound, typical errors are uncorrectable, but postselected error correction remains possible until a much higher detection threshold. Postselection can in principle be implemented by projecting onto subspaces corresponding to low-weight errors, which remain correctable past the hashing bound.
Physics Subject Headings (PhySH)
Popular Summary
Quantum computers show profound promise in diverse applications, such as optimization, cryptography, materials simulation, and even climate science. However, current qudits (the quantum states upon which logical operations are performed) rapidly deteriorate as interactions with their surroundings introduce errors. Quantum error-correcting codes make these quantum states robust by redundantly encoding them in physical systems. In the large-system limit, some codes display nonzero error-rate thresholds, below which the encoded state is nominally recoverable with perfect reliability (though the procedure may be onerous in practice). This threshold can be interpreted as a so-called mixed-state phase transition, which is information-theoretic in character.
In this interdisciplinary study, we bring to bear tools from many-body physics, statistical physics, and classical coding theory to examine this threshold in random codes. We show that they exhibit a transition at the so-called “hashing bound,” where the entropy of possible errors is equal to the maximum achievable entropy of the physical system on which quantum states are encoded. Additionally, we show that if the noisy state is probabilistically rejected, information from an accepted state is information-theoretically recoverable up to a higher threshold.
Our work suggests several avenues for future investigation, such as (i) generalizing the perturbation theory method to more structured codes and noise models, (ii) incorporating the effect of locality into the beyond-hashing phase diagram, and (iii) further exploring the duality features of quantum codes.
Article Text
Supplemental Material
References (79)
- P. W. Shor, Fault-tolerant quantum computation, in Proceedings of the 37th Conference on Foundations of Computer Science (IEEE, Burlington, VT, 1996), pp. 56–65.
- D. Aharonov and M. Ben-Or, in Proceedings of the Twenty-Ninth Annual ACM Symposium on Theory of Computing, STOC ’97 (Association for Computing Machinery, New York, NY, 1997), pp. 176–188.
- A. Y. Kitaev, Quantum computations: Algorithms and error correction, Russ. Math. Surv. 52, 1191 (1997).
- E. Knill, R. Laflamme, and W. H. Zurek, Resilient quantum computation, Science 279, 342 (1998).
- D. Aharonov and M. Ben-Or, Fault-tolerant quantum computation with constant error rate, SIAM J. Comput. 38, 1207 (2008).
- S. Sang, Y. Zou, and T. H. Hsieh, Mixed-state quantum phases: Renormalization and quantum error correction, Phys. Rev. X 14, 031044 (2024).
- T. Rakovszky, S. Gopalakrishnan, and C. von Keyserlingk, Defining stable phases of open quantum systems, Phys. Rev. X 14, 041031 (2024).
- R. Ma, J.-H. Zhang, Z. Bi, M. Cheng, and C. Wang, Topological phases with average symmetries: The decohered, the disordered, and the intrinsic, Phys. Rev. X 15, 021062 (2025).
- J. Y. Lee, Exact calculations of coherent information for toric codes under decoherence: Identifying the fundamental error threshold, Phys. Rev. Lett. 134, 250601 (2025).
- R. Niwa and J. Y. Lee, Coherent information for Calderbank-Shor-Steane codes under decoherence, Phys. Rev. A 111, 032402 (2025).
- 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).
- Y. Bao, R. Fan, A. Vishwanath, and E. Altman, Mixed-state topological order and the errorfield double formulation of decoherence-induced transitions, arXiv:2301.05687.
- J. Y. Lee, C.-M. Jian, and C. Xu, Quantum criticality under decoherence or weak measurement, PRX Quantum 4, 030317 (2023).
- Y.-h. Chen and T. Grover, Separability transitions in topological states induced by local decoherence, Phys. Rev. Lett. 132, 170602 (2024).
- A. Lyons, Understanding stabilizer codes under local decoherence through a general statistical mechanics mapping, arXiv:2403.03955.
- J. Hauser, Y. Bao, S. Sang, A. Lavasani, U. Agrawal, and M. P. A. Fisher, Information dynamics in decohered quantum memory with repeated syndrome measurements, Phys. Rev. B 113, 54303 (2026).
- A. Kitaev, Fault-tolerant quantum computation by anyons, Ann. Phys. (N.Y.) 303, 2 (2003).
- E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Topological quantum memory, J. Math. Phys. 43, 4452 (2002).
- 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).
- Y.-H. Chen and T. Grover, Symmetry-enforced many-body separability transitions, PRX Quantum 5, 030310 (2024).
- S. Sang and T. H. Hsieh, Stability of mixed-state quantum phases via finite Markov length, Phys. Rev. Lett. 134, 070403 (2025).
- A.-R. Negari, T. D. Ellison, and T. H. Hsieh, Spacetime Markov length: A diagnostic for fault tolerance via mixed-state phases, arXiv:2412.00193.
- K. Su, Z. Yang, and C.-M. Jian, Tapestry of dualities in decohered quantum error correction codes, Phys. Rev. B 110, 085158 (2024).
- C. H. Bennett, D. P. DiVincenzo, J. A. Smolin, and W. K. Wootters, Mixed-state entanglement and quantum error correction, Phys. Rev. A 54, 3824 (1996).
- Typical errors are defined by the set of errors within a window of error weights centered around , which contain “almost all” the probability mass of [as defined in Eq. (5)]. That is, since is strongly peaked, typical errors have .
- See the Supplemental Material at http://link.aps.org/supplemental/10.1103/d4wh-hqcp for a self-contained discussion of the perturbation theory ansatz for the spectrum, additional details on soft postselection, an alternative derivation of the hashing bound and Rényi thresholds using Weingarten calculus, analysis of heralded errors and the spectra of stabilizer codes, and an extensive discussion of the quantum MacWilliams identity and its consequences. The Supplemental Material includes additional references [60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79].
- D. P. DiVincenzo, P. W. Shor, and J. A. Smolin, Quantum channel capacity of very noisy channels, Phys. Rev. A:At., Mol., Opt. Phys. 57, 830 (1997).
- P. Shor and R. Laflamme, Quantum analog of the macwilliams identities for classical coding theory, Phys. Rev. Lett. 78, 1600 (1997).
- E. Rains, Quantum weight enumerators, IEEE Trans. Inf. Theory 44, 1388 (1998).
- E. M. Rains, Quantum shadow enumerators, IEEE Trans. Inf. Theory 45, 2361 (1999).
- C. Cao and B. Lackey, Quantum weight enumerators and tensor networks, IEEE Trans. Inf. Theory 70, 3512 (2024).
- C. Cao, M. J. Gullans, B. Lackey, and Z. Wang, Quantum Lego expansion pack: Enumerators from tensor networks, PRX Quantum 5, 030313 (2024).
- F. MacWilliams and N. Sloane, The Theory of Error-Correcting Codes (North-Holland, Amsterdam, 1978), 2nd ed.
- Formally, we consider the Haar-averaged value of these information-theoretic quantities, specifically, . However, in practice, all such quantities are self-averaging in the thermodynamic limit. Even at numerically accessible system sizes, most information-theoretic quantities, with the exception of highly postselected quantities such as the Rényi- entropy, show very limited trial-to-trial variation.
- B. Schumacher and M. A. Nielsen, Quantum data processing and error correction, Phys. Rev. A 54, 2629 (1996).
- S. Lloyd, Capacity of the noisy quantum channel, Phys. Rev. A 55, 1613 (1997).
- A stabilizer code is said to be nondegenerate if there are no stabilizer group elements whose Pauli weight is below the code distance. In the Haar-random setting, the near-orthogonality of the error-corrupted states, a natural consequence of random matrix theory, serves as a nonstabilizer analog to the nondegenerate property.
- V. A. Marčenko and L. A. Pastur, Distribution of eigenvalues for some sets of random matrices, Sb.: Math. 1, 457 (1967).
- G. Livan, M. Novaes, and P. Vivo, Introduction to Random Matrices (Springer, Cham, Switzerland, 2018).
- J. T. Chayes, L. Chayes, D. S. Fisher, and T. Spencer, Finite-size scaling and correlation lengths for disordered systems, Phys. Rev. Lett. 57, 2999 (1986).
- It is important to emphasize here that is not simply , due to the interactions between bands in the full depolarized state .
- X. Turkeshi and P. Sierant, Error-resilience phase transitions in encoding-decoding quantum circuits, Phys. Rev. Lett. 132, 140401 (2024).
- C. Gidney, N. Shutty, and C. Jones, Magic state cultivation: Growing T states as cheap as CNOT gates, arXiv:2409.17595.
- J. Barré, D. Mukamel, and S. Ruffo, Inequivalence of ensembles in a system with long-range interactions, Phys. Rev. Lett. 87, 030601 (2001).
- N. Defenu, D. Mukamel, and S. Ruffo, Ensemble inequivalence in long-range quantum systems, Phys. Rev. Lett. 133, 050403 (2024).
- D. Arrufat-Vicente, D. Mukamel, S. Ruffo, and N. Defenu, Ensemble inequivalence in long-range quantum spin systems, Phys. Rev. Res. 8, 013333 (2026).
- F. Ma, X. Tan, and J. Wright, Haar random codes attain the quantum Hamming bound, approximately, arXiv:2510.07158.
- R. Klesse, Approximate quantum error correction, random codes, and quantum channel capacity, Phys. Rev. A 75, 062315 (2007).
- A. Ekert and C. Macchiavello, Error correction in quantum communication, arXiv:quant-ph/9602022.
- D. N. Page, Average entropy of a subsystem, Phys. Rev. Lett. 71, 1291 (1993).
- K. Zyczkowski and H. J. Sommers, Induced measures in the space of mixed quantum states, J. Phys. A:Math. Gen. 34, 7111 (2001).
- M. Žnidarič, Entanglement of random vectors, J. Phys. A:Math. Theor. 40, F105 (2007).
- M. J. Gullans, S. Krastanov, D. A. Huse, L. Jiang, and S. T. Flammia, Quantum coding with low-depth random circuits, Phys. Rev. X 11, 031066 (2021).
- F. G. S. L. Brandão, E. Crosson, M. B. Şahinoğlu, and J. Bowen, Quantum error correcting codes in eigenstates of translation-invariant spin chains, Phys. Rev. Lett. 123, 110502 (2019).
- M. Srednicki, Chaos and quantum thermalization, Phys. Rev. E 50, 888 (1994).
- J. M. Deutsch, Quantum statistical mechanics in a closed system, Phys. Rev. A 43, 2046 (1991).
- C. F. B. Lo, A. Lyons, R. Verresen, A. Vishwanath, and N. Tantivasadakarn, Universal quantum computation with the quantum double: A pedagogical exposition, arXiv:2502.14974.
- D. Jing, P. Sala, L. Jiang, and R. Verresen, Intrinsic heralding and optimal decoders for non-abelian topological order, Phys. Rev. Lett. 136, 120405 (2026).
- P. Sala and R. Verresen, Stability and loop models from decohering non-abelian topological order, Phys. Rev. Lett. 134, 1 (2025).
- E. Knill, R. Laflamme, and L. Viola, Theory of quantum error correction for general noise, Phys. Rev. Lett. 84, 2525 (2000).
- M. M. Wilde, Quantum Information Theory (Cambridge University Press, Cambridge, UK, 2013), 1st ed.
- J. Preskill, Lecture Notes for Physics 219: Quantum Computation, https://www.preskill.caltech.edu/ph229/ (2025).
- B. Collins and P. Śniady, Integration with respect to the Haar measure on unitary, orthogonal and symplectic group, Commun. Math. Phys. 264, 773 (2006).
- A. A. Mele, Introduction to Haar measure tools in quantum information: A beginner’s tutorial, Quantum 8, 1340 (2024).
- D. Weingarten, Asymptotic behavior of group integrals in the limit of infinite rank, J. Math. Phys. 19, 999 (1978).
- T. Schuster and N. Y. Yao, Operator growth in open quantum systems, Phys. Rev. Lett. 131, 160402 (2023).
- T. Schuster, C. Yin, X. Gao, and N. Y. Yao, A polynomial-time classical algorithm for noisy quantum circuits, Phys. Rev. X 15, 041018 (2025).
- J. A. Jacoby, D. A. Huse, and S. Gopalakrishnan, Spectral gaps of local quantum channels in the weak-dissipation limit, Phys. Rev. B 111, 104303 (2025).
- C. Zhang, L. Nie, and C. von Keyserlingk, Thermalization rates and quantum Ruelle-Pollicott resonances: Insights from operator hydrodynamics, arXiv:2409.17251.
- J. Liu, R. Meyer, and Z.-Y. Xian, Operator size growth in Lindbladian SYK, J. High Energy Phys. 2024, 92 (2024).
- A. R. Calderbank and P. W. Shor, Good quantum error-correcting codes exist, Phys. Rev. A 54, 1098 (1996).
- A. Steane, Multiple-particle interference and quantum error correction, Proc. R. Soc. Lond. Ser. A: Math., Phys. Eng. Sci. 452, 2551 (1996).
- C. T. Chubb and S. T. Flammia, Statistical mechanical models for quantum codes with correlated noise, Ann. Inst. Henri Poincaré D, Comb., Phys. Interact. 8, 269 (2021).
- 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, IEEE Trans. Inf. Theory 46, 778 (2000).
- A. A. Kovalev and L. P. Pryadko, Spin glass reflection of the decoding transition for quantum error correcting codes, Quantum Inf. Comput. 15, 825 (2015).
- A. Ashikhmin, A. Barg, E. Knill, and S. Litsyn, Quantum error detection I: Statement of the problem, IEEE Trans. Inf. Theory 46, 778 (2000).
- A. J. Scott, Probabilities of failure for quantum error correction, Quantum Inf. Process. 4, 399 (2005).
- C. Du, Z. Ma, and M. Xiong, On the complete weight distributions of quantum error-correcting codes, Chin. Phys. B 32, 050307 (2023).
- D. Gottesman, Surviving as a Quantum Computer in a Classical World, https://www.cs.umd.edu/class/spring2024/cmsc858G/ (2024 draft).
