Formalizing the Semantics of a Classical-Quantum Imperative Language in Coq

Wenjun Shi,Qinxiang Cao,Yuxin Deng
DOI: https://doi.org/10.1142/s0218126624501123
2024-01-01
Journal of Circuits Systems and Computers
Abstract:In order to verify the functional correctness of quantum circuits or algorithms, a prominent approach is to specify them as quantum programs and semi-automatically deduce them in a theorem prover. It is indispensable to first formalize the semantics of the basic quantum language. We formalize in Coq an imperative language which allows for classical and quantum information interactions. We define small-step operational semantics and state-based denotational semantics. Then we prove a consistency theorem between these two semantics. A distribution-based denotational semantics is also defined and related to the state-based one. Finally, we describe a few typical quantum algorithms and utilize the distribution-based denotational semantics to verify their correctness.
What problem does this paper attempt to address?