Efficient Formal Verification of Quantum Error Correcting Programs
Qifan Huang, Li Zhou, Wang Fang, Mengyu Zhao, Mingsheng Ying
TL;DR
The paper tackles the challenge of efficiently verifying quantum error correcting programs, including non-Clifford and propagation errors, by developing a hybrid classical-quantum assertion logic and a backward-reasoning program logic. It introduces a Coq-formalized verifier and an SMT-based automatic verifier, Veri-QEC, and demonstrates scalability with 14 stabilizer codes, including large surface codes, under various fault-tolerant scenarios. The key innovations are the Pauli-expression based assertion language, the projection-based quantum logic foundation, and a practical VC handling strategy that reduces to SMT problems or uses heuristics for non-commuting cases. Taken together, the framework enables rigorous, scalable verification of QEC protocols and fault-tolerant primitives, offering a path toward reliable, hardware-wide quantum error correction in near- to far-term devices.
Abstract
Quantum error correction (QEC) is fundamental for suppressing noise in quantum hardware and enabling fault-tolerant quantum computation. In this paper, we propose an efficient verification framework for QEC programs. We define an assertion logic and a program logic specifically crafted for QEC programs and establish a sound proof system. We then develop an efficient method for handling verification conditions (VCs) of QEC programs: for Pauli errors, the VCs are reduced to classical assertions that can be solved by SMT solvers, and for non-Pauli errors, we provide a heuristic algorithm. We formalize the proposed program logic in Coq proof assistant, making it a verified QEC verifier. Additionally, we implement an automated QEC verifier, Veri-QEC, for verifying various fault-tolerant scenarios. We demonstrate the efficiency and broad functionality of the framework by performing different verification tasks across various scenarios. Finally, we present a benchmark of 14 verified stabilizer codes.
