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

Wenjun Shi, Qinxiang Cao, Yuxin Deng*

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

1 Scopus citations

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.

Original languageEnglish
Article number2450112
JournalJournal of Circuits, Systems and Computers
Volume33
Issue number6
DOIs
StatePublished - 1 Apr 2024

Keywords

  • Coq
  • Quantum programming language
  • denotational semantics
  • operational semantics
  • theorem prover

Fingerprint

Dive into the research topics of 'Formalizing the Semantics of a Classical-Quantum Imperative Language in Coq'. Together they form a unique fingerprint.

Cite this