Building quantum computers is challenging due to the noise that affects qubits. Quantum error correction tackles noise by encoding information in quantum error-correcting (QEC) codes. These codes are often complex, increasingly found by computational search, presented in diverse formalisms with informal arguments, and hard to reason about algorithmically. Given that the rest of the quantum computing stack relies on a QEC code's properties for correct computation, we propose a formally verified foundation for QEC codes. We present QECLean, a Lean-based framework for formally specifying and verifying QEC codes. QECLean backs every claimed QEC-code property with a machine-checked proof, unifies the diverse presentations of codes in the literature through common abstractions, and makes new codes easy to specify. We present a new compositional technique, code combinators, for proving code distance analytically. Code combinators allow us to prove the distance of large codes that are out of reach for algorithmic techniques; for example, we show that IBM's $[[360, 12, \leq 24]]$ code has distance 24, which was previously only known as an upper bound. Furthermore, we show how our approach allows us to formalize and prove entire code families, such as the surface code. Our work lays the foundation required for reasoning about circuit-level implementations of codes on given architectures and for building end-to-end verified compilers for quantum computers. QECLean is available at https://github.com/Stavan-Jain/QECLean
AI Summary
The paper addresses how to specify stabilizer quantum error-correcting codes and certify their parameters, particularly distances that are difficult to establish by direct search. It presents QECLean, a Lean framework connecting stabilizer-group, binary-symplectic, and homological descriptions through proved translations. Code specifications bundle generators with machine-checked proofs of validity, encoded dimension, and distance.
The main new distance technique is a double-cover construction relating a code on $2n$ qubits to a base code on $n$ qubits. Folding operators across the two sheets yields distance lower bounds; additional conditions give exact distance doubling. These reductions, combined with finite searches and kernel-checked certificates, establish that the previously upper-bounded $[[360,12,\leq24]]$ bivariate bicycle code has distance exactly $24$. Its proof uses successive reductions to 180- and 90-qubit codes, including a census of 274,011 representatives up to translation. The framework also certifies the $[[144,12,12]]$ gross code and $[[150,30,10]]$ mitten code, and proves parameterized distance results for toric, odd-distance rotated surface, and triangular color code families using structural and homological arguments.
Verification covers algebraic code properties, not syndrome-extraction implementations, circuit-level distance, logical operations, realistic noise performance, or thresholds. Double-cover conditions still require minimum-weight searches, albeit on smaller codes; the method does not remove the general computational hardness of distance certification. Trust also requires checking that the formal specifications match the intended codes. Circuit-level verification and end-to-end verified compilation remain future directions.
Little sign of AI-generated textAI use disclosed
For formalizing and verifying the more recent \textsc{qec} codes, like the \textsc{bb} codes, we extensively used \textsc{ai} agents.
Written by gpt-6.1-sol from the paper's full text. Automated: it can be wrong.
Building quantum computers is challenging due to the noise that affects qubits. Quantum error correction tackles noise by encoding information in quantum error-correcting (QEC) codes. These codes are often complex, increasingly found by computational search, presented in diverse formalisms with informal arguments, and hard to reason about algorithmically. Given that the rest of the quantum computing stack relies on a QEC code's properties for correct computation, we propose a formally verified foundation for QEC codes. We present QECLean, a Lean-based framework for formally specifying and verifying QEC codes. QECLean backs every claimed QEC-code property with a machine-checked proof, unifies the diverse presentations of codes in the literature through common abstractions, and makes new codes easy to specify. We present a new compositional technique, code combinators, for proving code distance analytically. Code combinators allow us to prove the distance of large codes that are out of reach for algorithmic techniques; for example, we show that IBM's [[360,12,≤24]] code has distance 24, which was previously only known as an upper bound. Furthermore, we show how our approach allows us to formalize and prove entire code families, such as the surface code. Our work lays the foundation required for reasoning about circuit-level implementations of codes on given architectures and for building end-to-end verified compilers for quantum computers. QECLean is available at https://github.com/Stavan-Jain/QECLean
The paper addresses how to specify stabilizer quantum error-correcting codes and certify their parameters, particularly distances that are difficult to establish by direct search. It presents QECLean, a Lean framework connecting stabilizer-group, binary-symplectic, and homological descriptions through proved translations. Code specifications bundle generators with machine-checked proofs of validity, encoded dimension, and distance.
The main new distance technique is a double-cover construction relating a code on 2n qubits to a base code on n qubits. Folding operators across the two sheets yields distance lower bounds; additional conditions give exact distance doubling. These reductions, combined with finite searches and kernel-checked certificates, establish that the previously upper-bounded [[360,12,≤24]] bivariate bicycle code has distance exactly 24. Its proof uses successive reductions to 180- and 90-qubit codes, including a census of 274,011 representatives up to translation. The framework also certifies the [[144,12,12]] gross code and [[150,30,10]] mitten code, and proves parameterized distance results for toric, odd-distance rotated surface, and triangular color code families using structural and homological arguments.
Verification covers algebraic code properties, not syndrome-extraction implementations, circuit-level distance, logical operations, realistic noise performance, or thresholds. Double-cover conditions still require minimum-weight searches, albeit on smaller codes; the method does not remove the general computational hardness of distance certification. Trust also requires checking that the formal specifications match the intended codes. Circuit-level verification and end-to-end verified compilation remain future directions.
Quantum error-correcting codes (QECCs) sit between noisy quantum hardware and reliable computation, so the code parameters used in practice must be trustworthy. The single number that summarizes a code's strength is its distance, yet certifying a distance lower bound is NP-hard in general, placing it beyond the reach of pen-and-paper proofs as well as direct proof-assistant scripting. As a result, distance values in the literature come either from non-scaling hand proofs, or from unverified solvers that leave a trust gap exactly where the code is supposed to provide a guarantee. We present Lean-QEC, the first Lean 4 formalization of stabilizer-code theory that delivers end-to-end, machine-checked distance certificates at industrial code sizes. Lean-QEC formalizes the linear algebra of qubit states, the Pauli group, stabilizer codes, the binary symplectic representation, classical coding theory, and the CSS and Bivariate Bicycle families. To break the combinatorial barrier, Lean-QEC translates the distance condition into a Boolean satisfiability formula through a verified reduction. The pipeline scales through a BitVec-flattened encoding that replaces Lean's Matrix representation, and an error-location encoding that reduces the variable count from n to k⌈log2n⌉. With these, we obtain automatically-generated Lean-checked distance proofs for a large range of industrially viable qLDPC codes within the Bivariate Bicycle and Generalized Bicycle families, including [[90, 8, 10]] and [[70, 6, 9]] BB codes, with the formulation scaling up to 144 qubits when performed outside the Lean kernel. The resulting library is reusable and is designed to plug into broader Lean-based efforts toward end-to-end verification of fault-tolerant quantum computation.
Quantum Error Correction (QEC) is essential for building scalable quantum computers, but a lack of systematic, end-to-end evaluation methods makes it difficult to assess how different QEC codes perform under realistic conditions. The vast diversity of codes, an expansive experimental search space, and the absence of a standardized framework prevent a thorough, holistic analysis. To address this, we introduce ECCentric, an end-to-end benchmarking framework designed to systematically evaluate QEC codes across the full quantum computing stack. ECCentric is designed to be modular, extensible, and general, allowing for a comprehensive analysis of QEC code families under varying hardware topologies, noise models, and compilation strategies.
Using ECCentric, we conduct the first systematic benchmarking of major QEC code families against realistic, mid-term quantum device parameters. Our empirical analysis reveals that intra-QPU execution significantly outperforms distributed methods, that qubit connectivity is a far more critical factor for reducing logical errors than increasing code distance, and that compiler overhead remains a major source of error. Furthermore, our findings suggest that trapped-ion architectures with qubit shuttling are the most promising near-term platforms and that on noisy devices, a strategic and selective application of QEC is necessary to avoid introducing more errors than are corrected. This study provides crucial, actionable insights for both hardware designers and practitioners, guiding the development of fault-tolerant quantum systems.
Quantum Error Correction (QEC) is essential for fault-tolerant quantum copmutation, and its implementation is a very sophisticated process involving both quantum and classical hardware. Formulating and verifying the decomposition of logical operations into physical ones is a challenge in itself. In this paper, we propose QECV, a verification framework that can efficiently verify the formal correctness of stabilizer codes, arguably the most important class of QEC codes. QECV first comes with a concise language, QECV-Lang, where stabilizers are treated as a first-class object, to represent QEC programs. Stabilizers are also used as predicates in our new assertion language, QECV-Assn, as logical and arithmetic operations of stabilizers can be naturally defined. We derive a sound quantum Hoare logic proof system with a set of inference rules for QECV to efficiently reason about the correctness of QEC programs. We demonstrate the effectiveness of QECV with both theoretical complexity analysis and in-depth case studies of two well-known stabilizer QEC codes, the repetition code and the surface code.
Quantum error correction (QEC) is indispensable for scalable fault-tolerant quantum computing. However, discovering QEC codes that remain effective is challenging, as logical performance depends on the interplay between code structure, hardware, syndrome extraction, and decoding, which often impose competing requirements. Here we introduce OmniQEC, an efficient AI scientist for discovering QEC codes suited to deployment on modern quantum processors. OmniQEC formulates QEC design as an iterative discovery process in which an orchestrator, implemented by advanced large language models (LLMs), coordinates code generation, code-level screening, syndrome-extraction synthesis, and decoder-based circuit evaluation. At its core, OmniQEC combines a self-evolving reasoning mechanism with a slow--fast synergistic workflow: a fast loop explores candidates using inexpensive code-level proxies, whereas a slow loop performs physically grounded circuit-level evaluation and feeds the resulting evidence back into the search. We evaluate OmniQEC across four qLDPC construction families, three LLM backends, and 14 total-physical-qubit budgets per backend. The discovered codes show steadily improving logical-error suppression with increasing physical-qubit budgets and outperform the BB codes with [[72,12,6]] and [[144,12,12]] under complete-implementation budgets of 98 and 240 physical qubits, respectively. The discovered codes are hardware-friendly and may be of independent interest for practical QEC implementation. These findings pave the way towards LLM-assisted QEC discovery grounded in physically informed code--circuit--decoder co-design.
Quantum computers have the potential to solve several interesting problems in polynomial time for which no polynomial time classical algorithms have been found. However, one of the major challenges in building quantum devices is that quantum systems are very sensitive to noise arising from undesired interactions with the environment. Noise can lead to errors which can corrupt the results of the computation. Quantum error correction is one way to mitigate the effects of noise arising in quantum devices. With a plethora of quantum error correcting codes that can be used in various settings, one of the main challenges of quantum error correction is understanding how well various codes perform under more realistic noise models that can be observed in experiments. This thesis proposes a new decoding algorithm which can optimize threshold values of error correcting codes under different noise models. The algorithm can be applied to any Markovian noise model. Further, it is shown that for certain noise models, logical Clifford corrections can further improve a code's threshold value if the code obeys certain symmetries. Since gates and measurements cannot in general be performed with perfect precision, the operations required to perform quantum error correction can introduce more errors into the system thus negating the benefits of error correction. Fault-tolerant quantum computing is a way to perform quantum error correction with imperfect operations while retaining the ability to suppress errors as long as the noise is below a code's threshold. One of the main challenges in performing fault-tolerant error correction is the high resource requirements that are needed to obtain very low logical noise rates. With the use of flag qubits, this thesis develops new fault-tolerant error correction protocols that are applicable to arbitrary distance codes. Various code families are shown to satisfy the requirements of flag fault-tolerant error correction. We also provide circuits using a constant number of qubits for these codes. It is shown that the proposed flag fault-tolerant method uses fewer qubits than previous fault-tolerant error correction protocols. It is often the case that the noise afflicting a quantum device cannot be fully characterized. Further, even with some knowledge of the noise, it can be very challenging to use analytic decoding methods to improve the performance of a fault-tolerant scheme. This thesis presents decoding schemes using several state of the art machine learning techniques with a focus on fault-tolerant quantum error correction in regimes that are relevant to near term experiments. It is shown that even in low noise rate regimes and with no knowledge of the noise, noise can be further suppressed for small distance codes. Limitations of machine learning decoders as well as the classical resources required to perform active error correction are discussed. In many cases, gate times can be much shorter than typical measurement times of quantum states. Further, classical decoding of the syndrome information used in quantum error correction to compute recovery operators can also be much slower than gate times. For these reasons, schemes where error correction can be implemented in a frame (known as the Pauli frame) have been developed to avoid active error correction. In this thesis, we generalize previous Pauli frame schemes and show how Clifford frame error correction can be implemented with minimal overhead. Clifford frame error correction is necessary if the logical component of recovery operators were chosen from the Clifford group, but could also be used in randomized benchmarking schemes.
Quantum error correction (QEC) represents a critical enabler for fault-tolerant quantum computing, protecting fragile quantum states from decoherence and operational errors. This paper provides a comprehensive analysis of leading quantum error correction schemes, focusing on surface codes and topological codes within the context of Noisy Intermediate-Scale Quantum (NISQ) era processors. We examine the theoretical foundations of stabilizer codes, compare surface code implementations with code distances ranging from d=3 to d=17, and analyze topological codes including toric codes and color codes. Our investigation encompasses syndrome extraction circuits, logical qubit encoding strategies, and threshold analysis for contemporary quantum hardware platforms. Performance metrics reveal that surface codes achieve error thresholds of approximately 1% with realistic noise models, while topological codes offer architectural advantages for specific qubit connectivity constraints. We discuss implementation challenges on current NISQ processors including IBM Quantum, Google Sycamore, and IonQ systems, addressing qubit overhead, gate fidelity requirements, and decoding algorithms. This analysis provides insights for selecting appropriate error correction schemes based on application requirements and hardware capabilities.