We present a generic theory of "registers" in imperative programs and instantiate it in the classical and quantum setting. Roughly speaking, a register is some mutable part of the program state, e.g., mutable classical variables and quantum registers and wires in quantum circuits are examples of this. However, registers in our setting can also refer to subparts of other registers, or combinations of parts from different registers, or quantum registers seen in a different basis, etc. Our formalization is intended to be well suited for formalization in theorem provers and as a foundation for modeling quantum/classical variables in imperative programs. We implemented most results (including a minimal quantum Hoare logic and an analysis of quantum teleportation) in the Isabelle/HOL theorem prover.
翻译:简言之,注册是程序状态中一些可变的部分,例如可变的古典变量和量子登记册以及量子电路中的电线就是例子。然而,在我们的设置中,注册也可以提到其他登记册的分部分,或不同登记册的部件的组合,或在不同基础上看到的量子登记册等。 我们的正规化意在非常适合在理论验证中正式化,并成为在必要性方案中模拟量子/古典变量的基础。我们在伊莎贝尔/HOLTheorem中实施了大部分结果(包括最小量子逻辑和量子传送分析 ) 。