arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.06812cs.LOquant-ph
收藏

经典变量量子霍尔逻辑

Quantum Hoare logic with classical variables

Yuan Feng, Mingsheng Ying

摘要:

霍尔逻辑提供了一种面向语法的方法来推理程序的正确性,并已被证明是有效的经典和概率程序的验证。现有的量子霍尔逻辑方案要么缺乏完整性,要么只支持量子变量,从而限制了它们在实际应用中的能力。在本文中,我们提出了一个量子霍尔逻辑的一个简单的while语言,其中涉及到经典和量子变量。它的健全性和相对完整性证明了部分和全部正确性的量子程序编写的语言。值得注意的是,通过经典量子态的新定义和相应的断言,逻辑系统非常简单,类似于经典程序的传统霍尔逻辑。此外,为了简化实际应用中的推理,提供了辅助证明规则,其在断言的经典部分中支持标准逻辑运算,并且在量子部分中支持超算子应用。最后,一系列实际的量子算法,特别是整个算法的Shor的因式分解,形式化验证,以显示逻辑的有效性。

英文摘要:

Hoare logic provides a syntax-oriented method to reason about program correctness and has been proven effective in the verification of classical and probabilistic programs. Existing proposals for quantum Hoare logic either lack completeness or support only quantum variables, thus limiting their capability in practical use. In this paper, we propose a quantum Hoare logic for a simple while language which involves both classical and quantum variables. Its soundness and relative completeness are proven for both partial and total correctness of quantum programs written in the language. Remarkably, with novel definitions of classical-quantum states and corresponding assertions, the logic system is quite simple and similar to the traditional Hoare logic for classical programs. Furthermore, to simplify reasoning in real applications, auxiliary proof rules are provided which support standard logical operation in the classical part of assertions, and of super-operator application in the quantum part. Finally, a series of practical quantum algorithms, in particular the whole algorithm of Shor's factorisation, are formally verified to show the effectiveness of the logic.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑