Specifying & Verifying Quantum Error-Correcting Codes
Stavan Jain, Nithin Raveendran, Aws Albarghouthi
Key points
From the paper's conclusion- We present QECLean, a Lean-based framework for formally specifying and verifying QEC codes.
Abstract
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
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- QECert: Formal Foundations for Quantum Error-Correction Theory in LeanarXiv · 2026
- Parametric Proof-Carrying Compilation for Quantum Error-CorrectionarXiv · 2026
- Generalised Bit-Vector Abstractions for Formal Verification of Quantum Error-Detection and Entanglement Circuits over $$\{H,X,{\text{C-NOT}}\}$$: CSS Constructions, Soundness, and Mutation-Based ValidationSN Computer Science · 2026
- ConQEC: Concolic Testing for Quantum Error-Correcting Code ImplementationsarXiv · 2026
- Certifying quantum code and circuit distances at scalearXiv · 2026
- QEDist: Practical Exact Distance Certification for Stabilizer CodesarXiv · 2026