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

递归量子程序的推理

Reasoning about Recursive Quantum Programs

Zhaowei Xu, Mingsheng Ying, Benoît Valiron

摘要:

大多数现代(经典)程序设计语言都支持递归。递归也被成功地应用于几种量子算法的设计,并被引入到几种量子程序设计语言中。因此,可以预期递归将成为量子编程的基本范式之一。已经开发了几种程序逻辑来验证量子while程序。然而,在量子计算(测量)中,还没有通用的方法来推理(互)递归过程和辅助量子数据结构。我们提出了一种参数化的量子断言逻辑,并在此基础上设计了一种量子霍尔逻辑,用于验证带有辅助数据和概率控制的参数化递归量子程序.量子霍尔逻辑可以用来证明这些量子程序的部分正确性、全部正确性,甚至概率正确性(通过简化为全部正确性)。特别是,两个反例说明不完整的非参数化断言在验证递归过程中,和,一个反例显示失败的推理与精确概率的基础上部分正确性,构造。我们的逻辑的有效性是由三个主要的例子-递归量子马尔可夫链(概率控制),不动点格罗弗的搜索,和递归量子傅立叶采样。

英文摘要:

Most modern (classical) programming languages support recursion. Recursion has also been successfully applied to the design of several quantum algorithms and introduced in a couple of quantum programming languages. So, it can be expected that recursion will become one of the fundamental paradigms of quantum programming. Several program logics have been developed for verification of quantum while-programs. However, there are as yet no general methods for reasoning about (mutual) recursive procedures and ancilla quantum data structure in quantum computing (with measurement). We fill the gap in this paper by proposing a parameterized quantum assertion logic and, based on which, designing a quantum Hoare logic for verifying parameterized recursive quantum programs with ancilla data and probabilistic control. The quantum Hoare logic can be used to prove partial, total, and even probabilistic correctness (by reducing to total correctness) of those quantum programs. In particular, two counterexamples for illustrating incompleteness of non-parameterized assertions in verifying recursive procedures, and, one counterexample for showing the failure of reasoning with exact probabilities based on partial correctness, are constructed. The effectiveness of our logic is shown by three main examples -- recursive quantum Markov chain (with probabilistic control), fixed-point Grover's search, and recursive quantum Fourier sampling.

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

↑