← Back to section · Research & Analysis
Why Grover's Speedup Does Not Break Symmetric Cryptography: A Quantitative Look at Serial Depth
Deriving Grover search's real cost from its iteration structure: every iteration embeds a complete AES circuit, iterations cannot be parallelised away, and parallel speedup is only a square-root share — then recomputing the actual gate count for AES-128 under NIST's MAXDEPTH constraint.
“Grover’s algorithm cuts AES-128’s security to 64 bits” is the most widely repeated sentence in the quantum-threat repertoire. It is correct in the asymptotic sense and deeply misleading in the engineering sense. We open up the internal structure of a Grover iteration and do the accounting in both gate count and depth.
One iteration is not one “lookup”
The unit cost of classical brute force is trying one key: a single AES encryption, a few dozen nanoseconds. Grover’s unit cost is entirely different. Searching 2^128 keys takes about (π/4)×2^63 iterations, and each iteration contains: one quantum AES circuit (a reversible implementation of all of AES, evaluating the key register in superposition — published constructions need several thousand logical qubits and several thousand to tens of thousands of gates), one phase marking, one diffusion operator, and then the AES circuit run backwards to uncompute. In other words, a single iteration costs several thousand times a classical trial, while the iteration count is only a square root smaller than the classical count. Total gate count ≈ 2^64 × 10^4, on the order of 2^77 and up — before error correction, where every logical gate expands into physical gates with another one to three orders of magnitude of surface-code overhead. The “64-bit security” shorthand quietly deletes the entire per-iteration circuit cost.
Depth: Grover’s real hard constraint
Worse is depth. Grover iterations are strictly serial: iteration k+1 acts on the output of iteration k, with no skipping and no pipelining. Classical search accelerates linearly with more machines; Grover does not — Zalka proved in 1999 that splitting the task across P machines still leaves each machine √(N/P) serial iterations, while total work grows by a factor of √P: parallelism buys a square-root reduction in depth at a square-root increase in total work. Substitute numbers: even with a million quantum computers (P=2^20), each must still run about 2^54 iterations serially, and at a corrected per-iteration time on the order of microseconds to milliseconds, a single machine’s runtime is still measured in years. Depth is exactly why NIST wrote MAXDEPTH into its security-level definitions: capping serially executable gates at the 2^40–2^96 range writes “how much time and how deep a pipeline does the attacker have” into the threat model.
By contrast: why classical parallelism has no such problem
Set classical brute force alongside, and the quantum search’s awkwardness sharpens. Classical trial is naturally parallel: a million machines each test one millionth of the key space, each machine’s workload divides by exactly a million, no communication is needed, total cost is unchanged and wall-clock time falls linearly — the so-called “embarrassingly parallel” case. Grover’s amplitude amplification has no such property: probability amplitude must accumulate step by step along the iteration chain on a single machine, and if the space is split across machines, each can only amplify independently inside its own subspace, with the amplification discounted as the subspace shrinks — the intuitive source of Zalka’s square-root bound. In other words, a classical attacker’s budget converts into time at full value, while a quantum attacker’s budget converts at a square-root discount. When assessing the quantum risk to symmetric cryptography, this contrast belongs next to the gate-count ledger: the issue is not that there are too few quantum computers, but that the algorithm’s shape forbids trading numbers for depth.
Recomputing under MAXDEPTH
Compute with NIST’s middle assumption, MAXDEPTH=2^64: with the Grover attack on AES-128 running exactly at the depth ceiling, published analyses put the total gate count after parallel expansion in the range 2^130–2^170 (depending on error-correction and circuit assumptions) — far above the magnitude needed to break ML-KEM-512. That is the derivation behind NIST setting AES-128 as the level-1 reference and judging it to retain ample margin under realistic constraints. Now AES-256: the iteration count rises to about 2^128, and even ignoring per-iteration cost, the serial depth alone exceeds any physical ceiling (2^96 is the order of the cap suggested by the speed of light and atomic scales), which is why AES-256 is generally considered immune to quantum search. “Just double the key length” for symmetric cryptography is not a rule of thumb; it is the conclusion of the depth accounting.
One level deeper inside an iteration
Decomposing the iteration cost one level further shows where the factor of several thousand comes from. The bulk of a quantum AES circuit is the S-box: each AES round has 16 S-box substitutions, a 128-bit key runs 10 rounds, so one full encryption circuit contains 160 S-box evaluations — and each S-box costs hundreds of Toffoli gates in a quantum circuit (the S-box is inversion in GF(2^8) plus an affine transform, and a reversible implementation is far more expensive than a classical lookup table). Add key expansion, which must also happen in superposition, and the linear layers such as MixColumns, and a gate count in the tens of thousands for one encryption is unsurprising; a Grover iteration must then run the entire circuit backwards to uncompute, doubling the cost again. None of this exists in the classical world: a classical S-box is one table lookup, and classical brute force needs no “running in reverse”. The orders-of-magnitude gap in unit cost between the two worlds is stacked up exactly like this, layer by layer. Note also that error correction’s multiplier does not amortise across iterations: because the iterations are serial, errors accumulate with depth, so the code distance must be sized for the total depth rather than for a single iteration — the deeper the computation, the more each logical gate costs physically. Depth and gate count bite each other, which is why naive multiplicative estimates tend to understate the total cost.
One distinction: hash collisions
Retellings often conflate Grover with hash collisions: the quantum algorithm for finding SHA-256 collisions is BHT, at about 2^85 queries but requiring about 2^85 of quantum memory — even less realistic — and NIST’s level-2 reference is precisely SHA-256 collision search. Keeping the two attacks separate is a prerequisite for reading the level definitions correctly (our companion piece on the NIST security levels takes them apart in full).
Conclusion and limits
Grover’s square-root speedup is real, but what it reduces is the iteration count, at the price of several thousand times the circuit cost per iteration and an incompressible serial depth. Under any foreseeable fault-tolerant constraints, the quantum risk to symmetric cryptography is far below that to public-key cryptography — the quantitative reason every migration roadmap puts the public-key layer first and treats AES-256 as an end-state configuration. The gate counts here depend on published quantum AES circuit constructions and surface-code overhead assumptions; if a construction improves by orders of magnitude, substitute the new constant and recompute — the framework stands.
Sources
- Grover, L., “A fast quantum mechanical algorithm for database search”, STOC 1996.
- Zalka, C., “Grover’s quantum searching algorithm is optimal”, Phys. Rev. A 60, 2746 (1999) (the parallel bound).
- Grassl, M. et al., “Applying Grover’s algorithm to AES: quantum resource estimates”, PQCrypto 2016 (quantum AES circuit resources).
- NIST, PQC call for proposals evaluation criteria (the MAXDEPTH settings 2^40/2^64/2^96).
Tags: Grover's AlgorithmAESSymmetric CryptographyQuantum Attack Costs