On incorrectness logic for Quantum programs

Publisher:
Association for Computing Machinery (ACM)
Publication Type:
Journal Article
Citation:
Proceedings of the ACM on Programming Languages, 2022, 6, (OOPSLA1), pp. 1-28
Issue Date:
2022-04-29
Full metadata record
Bug-catching is important for developing quantum programs. Motivated by the incorrectness logic for classical programs, we propose an incorrectness logic towards a logical foundation for static bug-catching in quantum programming. The validity of formulas in this logic is dual to that of quantum Hoare logics. We justify the formulation of validity by an intuitive explanation from a reachability point of view and a comparison against several alternative formulations. Compared with existing works focusing on dynamic analysis, our logic provides sound and complete arguments. We further demonstrate the usefulness of the logic by reasoning several examples, including Grover's search, quantum teleportation, and a repeat-until-success program. We also automate the reasoning procedure by a prototyped static analyzer built on top of the logic rules.
Please use this identifier to cite or link to this item: