Polynomial-time simulation of non-Clifford quantum error correction
quant-ph
Submitted: 2026-10-05
Updated: 2026-10-05
License: http://creativecommons.org/licenses/by/4.0/
The gist: We show that every intermediate state of a broad class of non-Clifford quantum error-correction circuits is a third-order phase-polynomial state, even under stochastic Pauli noise.
Abstract
We show that every intermediate state of a broad class of non-Clifford quantum error-correction circuits is a third-order phase-polynomial state, even under stochastic Pauli noise. The class includes magic state distillation and cultivation, code switching and gauge fixing, transversal non-Clifford gates with syndrome extraction, and injection of diagonal magic states. Third-order phase-polynomial states strictly generalize stabilizer states, and we prove that they are exactly the stabilizer states of the diagonal-Clifford-and-Pauli (DCP) stabilizer formalism that we introduce. We characterize these states and show that their representations can be updated in polynomial time. This yields an exact polynomial-time simulation algorithm for these circuits and, more broadly, a framework for reasoning about their internal states and about magic states in general. We provide an open-source implementation, merlin, and benchmark it against existing non-Clifford simulators on distillation, cultivation, and code switching circuits. The benchmarks demonstrate improved runtime and memory scaling as the number of logical outputs grows in Bravyi-Haah distillation, and simulation of a code switching circuit beyond the reach of all other tested simulators.
Sources
- Stim: a fast stabilizer circuit simulator
- Universal Quantum Computation with ideal Clifford gates and noisy ancillas
- Magic state distillation with low overhead
- A unified framework for magic state distillation and multi-qubit gate-synthesis with reduced resource cost
- Magic State Distillation: Not as Costly as You Think
- Magic state cultivation: growing T states as cheap as CNOT gates
- The cost of universality: A comparative study of the overhead of state distillation and code switching with color codes
- Gauge Color Codes: Optimal Transversal Gates and Gauge Fixing in Topological Stabilizer Codes
- Universal transversal gates with color codes - a simplified approach
- Single-Shot Universality in Quantum LDPC Codes via Code-Switching
- Universal fault-tolerant gates on concatenated stabilizer codes
- Asymptotically Good Quantum Codes with Transversal Non-Clifford Gates
- Quantum LDPC Codes with Transversal Non-Clifford Gates via Products of Algebraic Codes
- Asymptotically Good Quantum Codes with Addressable and Transversal Non-Clifford Gates
- Transversal dimension jump for product qLDPC codes
- Good binary quantum codes with transversal CCZ gate
- Quantum Rainbow Codes: Achieving Linear Rate, Growing Distance and Transversal Non-Clifford Gates with Generalised Colour Codes
- Universal fault-tolerant logic with heterogeneous holographic codes
- Constant-Overhead Magic State Distillation
Related papers
- Reconquering Bell sampling on qudits: stabilizer learning and testing, quantum pseudorandomness bounds, and more
- Encrypted clones can leak: Classification of informative subsets in Quantum Encrypted Cloning
- Polynomial-time classical and quantum simulation of quantum impurity models
- A quasiparticle-protected superconducting qubit
- Theory of quantum-enhanced interferometry with general Markovian light sources
- A convergent hierarchy of spectral gap certificates for qubit Hamiltonians