论文标题
SHOR的分解算法正式认证的端到端实施
A Formally Certified End-to-End Implementation of Shor's Factorization Algorithm
论文作者
论文摘要
量子计算技术可能很快就可以对算法性能进行革命性的改进,但是只有在计算答案是正确的情况下,这些技术才有用。虽然硬件级的破坏性错误引起了很大的关注,但纠正措施的障碍较低,是人类编程错误的障碍 - “ bugs”。大多数程序员从经典域中熟悉的技术避免,发现和诊断错误的技术因其独特的特征而不容易将其大规模传输到量子域。为了解决这个问题,我们一直在努力调整正式方法来量子编程。通过这样的方法,程序员在程序并附上编写了数学规范,并半自动证明了该程序对此的正确性。证明的有效性自动通过“证明助手”自动确认。正式的方法已成功产生了高保证的古典软件工件,而潜在的技术产生了认证的主要数学定理证明。为了证明将正式方法应用于量子编程的可行性,我们提出了第一个正式认证的Shor Prime分解算法的端到端实施,该算法是将认证方法应用于一般应用的新型框架的一部分。通过利用我们的框架,可以大大减少人类错误的影响,并以原则性的方式获得大规模量子应用的高保证实施。
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.