arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.15641quant-phcs.LOcs.PLcs.SE
收藏

QbC:通过构造实现量子正确性

QbC: Quantum Correctness by Construction

Anurudh Peduri, Ina Schaefer, Michael Walter

AI总结:

本文提出QbC方法,通过前置/后置条件规范和健全完备的精化规则,从规范直接构造正确的量子while程序,并在惯用问题中验证其有效性,支持量子算法与软件的设计和分类。

摘要:

由于量子算法的快速进步和日益增长的复杂性,量子程序的正确性已成为一个主要关注点。过去几年的开创性研究提出了各种方法,使用量子Hoare逻辑等证明系统来形式化验证量子程序。所有这些先前的方法都是事后验证:先实现程序,然后才验证其正确性。在此,我们提出通过构造实现量子正确性(QbC):一种从规范出发构造量子程序并确保正确性的方法。我们使用前置条件和后置条件来指定程序属性,并提出健全且完备的精化规则,用于在量子while语言中从其规范构造程序。我们通过为惯用问题和模式构造量子程序来验证QbC。我们发现该方法自然地提示了如何推导程序细节,并在此过程中突出关键设计选择。因此,我们相信QbC可以在支持量子算法和软件的设计与分类学中发挥作用。

英文摘要:

Thanks to the rapid progress and growing complexity of quantum algorithms, correctness of quantum programs has become a major concern. Pioneering research over the past years has proposed various approaches to formally verify quantum programs using proof systems such as quantum Hoare logic. All these prior approaches are post-hoc: one first implements a program and only then verifies its correctness. Here we propose Quantum Correctness by Construction (QbC): an approach to constructing quantum programs from their specification in a way that ensures correctness. We use pre- and postconditions to specify program properties, and propose sound and complete refinement rules for constructing programs in a quantum while language from their specification. We validate QbC by constructing quantum programs for idiomatic problems and patterns. We find that the approach naturally suggests how to derive program details, highlighting key design choices along the way. As such, we believe that QbC can play a role in supporting the design and taxonomization of quantum algorithms and software.

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

↑