Shor's algorithm: polynomial-time factoring and discrete logs on a quantum computer
Peter Shor presented quantum algorithms that factor integers and compute discrete logarithms in polynomial time, at FOCS 1994 in Santa Fe. An expanded version appeared in SIAM Journal on Computing in 1997. Every widely deployed public-key scheme of the era (RSA, finite-field Diffie-Hellman, DSA and elliptic-curve variants) rests on one of these two problems.
Background
Shor's key insight is that factoring reduces to finding the period of modular exponentiation, and a quantum Fourier transform can extract that period efficiently from a superposition. The same idea solves discrete logarithms in any abelian group, including elliptic-curve groups. Classically the best known factoring algorithm (the general number field sieve) is sub-exponential; Shor's algorithm is polynomial, so the gap cannot be closed by simply using bigger keys.
This is a weakness in the hardness assumption itself, but it is conditional on hardware that does not yet exist: a large fault-tolerant quantum computer with thousands of error-corrected logical qubits running billions of gates. It does not affect symmetric ciphers or hash functions (those face only Grover's quadratic speedup). Three decades later no quantum computer has run Shor's algorithm on anything close to a cryptographic modulus; the post-quantum migration exists because of this paper.
Sources
- paperPolynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer (expanded version of the FOCS 1994 paper)arXiv / SIAM J. Comput. 26 (1997), arxiv.org
- paperAlgorithms for quantum computation: discrete logarithms and factoring (FOCS 1994)IEEE, doi.org
- wikiShor's algorithmWikipedia, en.wikipedia.org