pith. sign in

arxiv: 2211.06411 · v5 · pith:NGK37LILnew · submitted 2022-11-11 · 🪐 quant-ph · cs.PL

Qafny: A Quantum-Program Verifier

classification 🪐 quant-ph cs.PL
keywords qafnyquantumautomatedprogramsproofsystemalgorithmalgorithms
0
0 comments X
read the original 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. A Practical Quantum Hoare Logic with Classical Variables, I

    cs.PL 2024-12 unverdicted novelty 7.0

    Presents a Hoare logic for quantum programs with classical variables using paired classical first-order formulas and quantum predicates, plus a simplified proof system with minimal modifications to classical Hoare logic.

  2. From Natural Language to Verified Code: Toward AI Assisted Problem-to-Code Generation with Dafny-Based Formal Verification

    cs.SE 2026-04 unverdicted novelty 6.0

    Open-weight LLMs reach 81-91% success generating formally verified Dafny code for complex algorithmic problems when given structural signatures and self-healing verifier feedback.