We propose a model of the substructural logic of Bunched Implications (BI) that is suitable for reasoning about quantum states. In our model, the separating conjunction of BI describes separable quantum states. We develop a program logic where pre- and post-conditions are BI formulas describing quantum states -- the program logic can be seen as a counterpart of separation logic for imperative quantum programs. We exercise the logic for proving the security of quantum one-time pad and secret sharing, and we show how the program logic can be used to discover a flaw in Google Cirq's tutorial on the Variational Quantum Algorithm (VQA).
翻译:我们提出了一个适合量子状态推理的“组合影响”亚结构逻辑模型。在我们的模式中,BI的分离组合描述了可分离的量子状态。我们开发了一个程序逻辑,在程序逻辑中,预条件和后条件是描述量子状态的BI公式——程序逻辑可以被视为与绝对量子程序分离逻辑相对应的。我们运用逻辑来证明一次性量子垫和秘密共享的安全性,我们展示了如何利用程序逻辑来发现Google Cirq在“量子 Algorithm (VQA) ” 上的教学缺陷。