Formal Verification of Quantum Programs: Theory, Tools and Challenges
Marco Lewis, Sadegh Soudjani, Paolo Zuliani
TL;DR
The survey surveys formal verification methods for quantum programs, including quantum weakest preconditions, quantum Hoare logic, quantum computation tree logic, path sums, and the ZX-calculus, and connects these theories to practical verification tools and languages. It discusses design choices for verification frameworks, highlighting trade-offs between environment integration, interactivity, and executability, and outlines key limitations such as no-cloning, limited classical functionality, and ancilla management. The paper reviews verifiable quantum programming languages (e.g., SQIR, QHLProver, CoqQ, IMD, QBricks) and related tools (QPMC, Feynmann, QMDDs, PyZX, CertiQ, QSharpCheck), illustrating how formal reasoning is applied to both textbook and non-textbook algorithms. It then uses complex algorithms like HHL and Binary Welded Trees to illustrate current verification capabilities and the substantial challenges ahead, emphasizing the need for scalable, user-friendly tools capable of handling measurements, classical data, and dynamic initialization. Overall, the work highlights that progress in formal verification is essential for the reliable deployment of quantum software as hardware scales, and it identifies concrete directions for future research and tool development.
Abstract
Over the past 27 years, quantum computing has seen a huge rise in interest from both academia and industry. At the current rate, quantum computers are growing in size rapidly backed up by the increase of research in the field. Significant efforts are being made to improve the reliability of quantum hardware and to develop suitable software to program quantum computers. In contrast, the verification of quantum programs has received relatively less attention. Verifying programs is especially important in the quantum setting due to how difficult it is to program complex algorithms correctly on resource-constrained and error-prone quantum hardware. Research into creating verification frameworks for quantum programs has seen recent development, with a variety of tools implemented using a collection of theoretical ideas. This survey aims to be a short introduction into the area of formal verification of quantum programs, bringing together theory and tools developed to date. Further, this survey examines some of the challenges that the field may face in the future, namely the development of complex quantum algorithms.
