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. 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 study the quantum registers in greater detail and cover the infinite-dimensional case as well. We implemented a large part of our results (including a minimal quantum Hoare logic and an analysis of quantum teleportation) in the Isabelle/HOL theorem prover.
翻译:我们提出“注册者”的通用理论,并将其在古典和量子设置中即时化。 简而言之,登记册是程序状态的某些可变部分。 可变的古典变量和量子登记册以及量子电路中的电线就是这方面的例子。 然而,在我们的设置中,登记册也可以提到其他登记册的分部分,或不同登记册的部件或不同登记册的量子登记册的组合等。 我们的正规化意在非常适合在理论验证中正式化,并成为在紧急程序中模拟量子/古典变量的基础。我们更详细地研究量子登记册,并涵盖无限维体案例。我们在伊莎贝尔/HOL理论验证中落实了我们的大部分结果(包括最低限度量子逻辑和量子遥测分析 ) 。