Sh

Shor's Algorithm

Cryptography & Number Theory

Factors a large integer N by reducing factoring to order finding: pick a random a, find the period r of a^x mod N with a quantum Fourier transform over a superposition, and extract factors from r by classical continued fractions. It also solves discrete logarithms, which breaks Diffie-Hellman and elliptic-curve cryptography. Shor's algorithm is the reason post-quantum cryptography exists: every RSA and ECC key in the world is, in principle, on a countdown.

Key factRuntime O((log N)^3) gate operations — polynomial — vs the best classical factoring (general number field sieve) at sub-exponential exp(O((log N)^(1/3) (log log N)^(2/3))).
Leader lensA proven exponential-class speedup with a hardware catch measured in under one million noisy physical qubits running for under a week (Gidney, Google Quantum AI, May 2025; down from 20 million in 2019) for RSA-2048. The threat is real and the timeline is the honest uncertainty.