Quantum Physics
arXiv:2211.06411 (quant-ph)
[Submitted on 11 Nov 2022 (v1), last revised 8 Jul 2024 (this version, v5)]
Title:Qafny: A Quantum-Program Verifier
View a PDF of the paper titled Qafny: A Quantum-Program Verifier, by Liyi Li and 6 other authors
View PDFAbstract: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.
Comments: | Version 5 |
Subjects: | Quantum Physics (quant-ph); Programming Languages (cs.PL) |
Cite as: | arXiv:2211.06411 [quant-ph] |
(orarXiv:2211.06411v5 [quant-ph] for this version) | |
https://doi.org/10.48550/arXiv.2211.06411 arXiv-issued DOI via DataCite | |
Journal reference: | ECOOP 2024 |
Submission history
From: Liyi Li [view email][v1] Fri, 11 Nov 2022 18:50:52 UTC (342 KB)
[v2] Wed, 12 Jul 2023 13:47:59 UTC (1,201 KB)
[v3] Mon, 23 Oct 2023 04:49:20 UTC (1,409 KB)
[v4] Sat, 20 Jan 2024 00:23:29 UTC (711 KB)
[v5] Mon, 8 Jul 2024 16:28:26 UTC (330 KB)
Full-text links:
Access Paper:
- View PDF
- TeX Source
- Other Formats
View a PDF of the paper titled Qafny: A Quantum-Program Verifier, by Liyi Li and 6 other authors
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer(What is the Explorer?)
Connected Papers(What is Connected Papers?)
Litmaps(What is Litmaps?)
scite Smart Citations(What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv(What is alphaXiv?)
CatalyzeX Code Finder for Papers(What is CatalyzeX?)
DagsHub(What is DagsHub?)
Gotit.pub(What is GotitPub?)
Hugging Face(What is Huggingface?)
Papers with Code(What is Papers with Code?)
ScienceCast(What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower(What are Influence Flowers?)
CORE Recommender(What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community?Learn more about arXivLabs.