arXiv · 2206.13772
Abstract interpretation, Hoare logic, and incorrectness logic for quantum programs
Abstract
Abstract interpretation, Hoare logic, and incorrectness (or reverse Hoare) logic are powerful techniques for static analysis of computer programs. All of them have been successfully extended to the quantum setting, but largely developed in parallel. In this paper, we examine the relationship between these techniques in the context of verifying quantum while-programs, where the abstract domain and the set of assertions for quantum states are well-structured. In particular, we show that any complete quantum abstract interpretation induces a quantum Hoare logic and a quantum incorrectness logic, both of which are sound and relatively complete. Unlike the logics proposed in the literature, the induced logic systems are in a forward manner, making them more useful in certain applications. Conversely, any sound and relatively complete quantum Hoare logic or quantum incorrectness logic induces a complete quantum abstract interpretation. As an application, we are able to show the non-existence of any sound and relatively complete quantum Hoare logic or incorrectness logic if tuples of local subspaces are taken as assertions.
Explore related subjects
Keep this discovery
Yuan Feng, Sanjiang Li. 2022-06-28. Abstract interpretation, Hoare logic, and incorrectness logic for quantum programs. https://arxiv.org/abs/2206.13772
Cite the original work for its findings. Save a collection to share your selection of sources.