Quantum Resource Estimator

Grover's algorithm: the honest cost of key search

Physical qubits (total)
Estimated runtime
Code distance
Surface-code rounds of redundancy
Data-block physical qubits
2 × logical × d²
T-gate count
4 T per Toffoli
Physical per logical
Error-correction overhead factor

Highlighted share: magic-state factories (conservative bound shown).

Grover's algorithm: why symmetric crypto mostly survives

Grover's algorithm searches an unstructured space of N items in √N steps. Pointed at a 128-bit AES key, that means about (π/4)·264 ≈ 1.4×1019 sequential oracle calls - each of which is itself a full AES circuit of thousands of Toffoli gates. The calculator above is loaded with that honest accounting.

The result is the point: even at a microsecond per surface-code cycle, a serial Grover attack on AES-128 runs for longer than the age of the universe. Parallelizing Grover helps far less than people expect - k parallel machines give only √k speedup - so 264 sequential iterations is a fundamentally hard floor.

Sources: Grover, STOC 1996 · Grassl, Langenberg, Roetteler, Steinwandt, PQCrypto 2016 (AES oracle costs), arXiv:1512.04965 · NIST SP 800-131A key-management guidance.