Quantum Outpost

Algorithm Zoo · Factoring & cryptanalysis

Shor's Algorithm (Discrete Log)

First described: Peter Shor, 1994

Status: Proven Maturity: Theoretical only Speedup: Exponential

The problem

Given g, h, p, find x such that g^x ≡ h (mod p).

The companion algorithm to factoring, breaking the discrete-log problem that secures Diffie-Hellman and ECDSA. Same QPE machinery as factoring but with a different group operation in the unitary.

Best classical

Sub-exponential for prime fields; sub-exponential to exponential for elliptic curves

Quantum complexity

Õ(n^3) for n-bit groups; ECC over n-bit curves slightly cheaper

Our verdict

ECC was the post-RSA hope until 1994. It dies the same day RSA does. The migration math is identical: pick ML-KEM + ML-DSA today, deploy hybrid TLS, plan for a 10-year transition. Treat ECC and DH as already vulnerable for any data with a >10-year secrecy requirement.

When to use it

When not to use it

Classical baseline

Pollard's rho for ECDLP is √n queries — roughly 2^128 for a 256-bit curve, infeasible classically. Quantum attack reduces to ~n^3 gates.

Hardware cost

256-bit ECDSA needs ~2330 logical qubits (Roetteler et al. 2017). With surface code at distance d=27 and 10^-3 physical error, that's ~5M physical qubits.

Key papers

Deep-dive tutorials

Last verified: 2026-05-24

Weekly dispatch

Quantum, for people who already code.

One serious tutorial per week, plus the industry moves that actually matter. No hype, no hand-waving.

Free. Unsubscribe anytime. We will never sell your email.