English

Efficient Formal Verification of Quantum Error Correcting Programs

Programming Languages 2025-10-30 v3 Quantum Physics

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.

Keywords

Cite

@article{arxiv.2504.07732,
  title  = {Efficient Formal Verification of Quantum Error Correcting Programs},
  author = {Qifan Huang and Li Zhou and Wang Fang and Mengyu Zhao and Mingsheng Ying},
  journal= {arXiv preprint arXiv:2504.07732},
  year   = {2025}
}

Comments

41 pages, 10 figures, 4 tables; v2: Extended version of the paper in PLDI 2025; Evaluated artifact at https://doi.org/10.5281/zenodo.15267327 v3: revise typos and inconsistencies

R2 v1 2026-06-28T22:53:38.522Z