Quantum Brain
← Back to papers

Qafny: A Quantum-Program Verifier

Liyi Li, Mingwei Zhu, R. Cleaveland, Alexander Nicolellis, Yi Lee, Leo Chang, Xiaodi Wu·November 11, 2022·DOI: 10.4230/LIPIcs.ECOOP.2024.24
PhysicsComputer Science

AI Breakdown

Get a structured breakdown of this paper — what it's about, the core idea, and key takeaways for the field.

Abstract

Because of the probabilistic/nondeterministic behavior of quantum programs, it is highly advisable to verify them formally to ensure that they correctly implement their specifications. Formal verification, however, also traditionally requires significant effort. To address this challenge, we present Qafny, an automated proof system based on the program verifier Dafny and designed for verifying quantum programs. At its core, Qafny uses a type-guided quantum proof system that translates quantum operations to classical array operations modeled within a classical separation logic framework. We prove the soundness and completeness of our proof system and implement a prototype compiler that transforms Qafny programs and specifications into Dafny for automated verification purposes. We then illustrate the utility of Qafny's automated capabilities in efficiently verifying important quantum algorithms, including quantum-walk algorithms, Grover's algorithm, and Shor's algorithm.

Related Research

Quantum Intelligence

Ask about quantum research, companies, or market developments.