Shor分解算法的端到端形式化实现
A Formally Certified End-to-End Implementation of Shor's Factorization Algorithm
摘要:
量子计算技术可能很快就会在算法性能方面带来革命性的改进,但这些只有在计算出的答案正确时才有用。虽然硬件级的去相干错误已经引起了极大的关注,但一个较少被认识到的正确性障碍是人类编程错误-“bug”。大多数程序员熟悉的避免、发现和诊断bug的技术,由于其独特的特性,不容易大规模转移到量子领域。为了解决这个问题,我们一直在努力使形式化方法适应量子编程。使用这种方法,程序员在编写程序时,会编写一个数学说明,然后半自动地证明程序的正确性。证明的有效性会由一个“证明助手“自动确认--认证。形式化方法已经成功地产生了高保证的经典软件工件,并且底层技术已经产生了主要数学定理的认证证明。作为应用形式化方法进行量子编程的可行性的证明,我们提出了Shor素因子分解算法的第一个正式认证的端到端实现,作为将认证方法应用于一般应用的新框架的一部分而开发。通过利用我们的框架,可以显著减少人为错误的影响,并以原则性的方式获得大规模量子应用的高保证实现。
英文摘要:
Quantum computing technology may soon deliver revolutionary improvements in algorithmic performance, but these are only useful if computed answers are correct. While hardware-level decoherence errors have garnered significant attention, a less recognized obstacle to correctness is that of human programming errors -- "bugs". Techniques familiar to most programmers from the classical domain for avoiding, discovering, and diagnosing bugs do not easily transfer, at scale, to the quantum domain because of its unique characteristics. To address this problem, we have been working to adapt formal methods to quantum programming. With such methods, a programmer writes a mathematical specification alongside their program, and semi-automatically proves the program correct with respect to it. The proof's validity is automatically confirmed -- certified -- by a "proof assistant". Formal methods have successfully yielded high-assurance classical software artifacts, and the underlying technology has produced certified proofs of major mathematical theorems. As a demonstration of the feasibility of applying formal methods to quantum programming, we present the first formally certified end-to-end implementation of Shor's prime factorization algorithm, developed as part of a novel framework for applying the certified approach to general applications. By leveraging our framework, one can significantly reduce the effects of human errors and obtain a high-assurance implementation of large-scale quantum applications in a principled way.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。