Reasoning about Recursive Quantum Programs
Zhaowei Xu, Mingsheng Ying, Beno\^it Valiron

TL;DR
This paper introduces a quantum Hoare logic for verifying recursive quantum programs with ancilla data and probabilistic control, filling a gap in quantum program verification methods.
Contribution
It proposes a parameterized quantum assertion logic and a quantum Hoare logic capable of verifying recursive quantum programs with probabilistic and ancilla data, including partial and total correctness.
Findings
Counterexamples demonstrate limitations of non-parameterized assertions.
Logic can verify correctness of recursive quantum algorithms like Grover's search.
Effectiveness shown through examples including quantum Markov chains and Fourier sampling.
Abstract
Most modern (classical) programming languages support recursion. Recursion has also been successfully applied to the design of several quantum algorithms and introduced in a couple of quantum programming languages. So, it can be expected that recursion will become one of the fundamental paradigms of quantum programming. Several program logics have been developed for verification of quantum while-programs. However, there are as yet no general methods for reasoning about (mutual) recursive procedures and ancilla quantum data structure in quantum computing (with measurement). We fill the gap in this paper by proposing a parameterized quantum assertion logic and, based on which, designing a quantum Hoare logic for verifying parameterized recursive quantum programs with ancilla data and probabilistic control. The quantum Hoare logic can be used to prove partial, total, and even probabilistic…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Quantum Information and Cryptography · Quantum Mechanics and Applications
