Published May 15, 2023 | Version v1
Journal article Open

A formally certified end-to-end implementation of Shor's factorization algorithm

  • 1. University of Maryland
  • 2. Columbia University
  • 3. University of Chicago

Description

Quantum computing technology may soon deliver revolutionary improvements in algorithmic performance, but it is useful only 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 the program and semiautomatically 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 a formally certified end-to-end implementation of Shor's prime factorization algorithm, developed as part of a 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.

Data availability

Codes data have been deposited in https://github.com/inQWIRE/SQIR/tree/main/examples/shor.

Files

Formally-certified-end-to-end-implementation-of-Shors-factorization-algorithm.pdf

Files (2.9 MB)

Name Size Download all
Article
md5:57a293776e6549024e1cf90d6973a6d1
1.7 MB Preview Download
Supporting information
md5:8276436c7c3104312e14ca66c3c461ac
1.1 MB Preview Download

Additional details

Identifiers

DOI
10.1073/pnas.2218775120
Other
oai:uchicago.tind.io:5996

Funding

Air Force
Office of Scientific Research
U.S. Department of Energy
Office of Science, Office of Advanced Scientific Computing Research, Quantum Testbed Pathfinder Program
U.S. National Science Foundation
CAREER grant

UChicago Information

Division(s)
Physical Sciences Division
Department(s)
Computer Science