ScholarMate
客服热线:400-1616-289

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

Shi, Wenjun; Cao, Qinxiang; Deng, Yuxin*
Science Citation Index Expanded
上海交通大学

摘要

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.

关键词

Quantum programming language operational semantics denotational semantics theorem prover Coq