Grover’s Algorithm

Definition

A quantum algorithm providing a quadratic speedup for unstructured search problems, applying most directly to brute-force key search against symmetric encryption algorithms and preimage search against cryptographic hash functions, requiring a large-scale, low-error quantum computer to execute at cryptographically relevant scale.

Key Points
  • Provides a quadratic speedup for unstructured search problems, meaning a brute-force search that would take a classical computer N operations takes a quantum computer running Grover's algorithm roughly the square root of N operations instead
  • Applies most directly to symmetric encryption key search and cryptographic hash function preimage search, rather than the factoring and discrete logarithm problems Shor's algorithm targets
  • The practical effect on symmetric encryption is a halving of effective key strength — an algorithm considered to offer 128 bits of classical security effectively offers around 64 bits of security against a Grover-equipped quantum attacker
  • Generally addressed by doubling key length rather than requiring an entirely new algorithm family, since a symmetric algorithm using a sufficiently large key to begin with retains adequate security margin even against the quadratic speedup
  • Requires a large-scale, low-error quantum computer to execute at cryptographically relevant problem sizes, a capability no quantum computer built to date possesses — the same practical maturity gap that limits Shor's algorithm's real-world threat today
Concept

A classical brute-force attack against a symmetric key of a given length must, in the worst case, try roughly every possible key value before finding the correct one. Grover's algorithm doesn't eliminate this search requirement the way Shor's algorithm eliminates the difficulty of factoring, but it does reduce the number of operations needed to roughly the square root of the classical requirement — a meaningful speedup, but a polynomial one rather than the exponential speedup Shor's algorithm achieves against factoring and discrete logarithm problems, which is precisely why the two algorithms are treated as such different magnitudes of cryptographic threat despite both being quantum algorithms with cryptographic implications.

Explainer

The practical consequence of this quadratic-versus-exponential distinction is that Grover's algorithm changes cryptographic key-length recommendations rather than requiring an entirely new algorithm family the way Shor's algorithm does for asymmetric cryptography — an organization can address Grover's threat to a symmetric algorithm simply by using a longer key from the outset, since the additional key length restores an adequate security margin even against the quadratic speedup, whereas no key-length increase protects RSA or elliptic curve cryptography against Shor's algorithm, since the underlying mathematical problem itself becomes tractable rather than merely faster to brute-force. This distinction is exactly why this corpus's broader quantum-safe migration material treats asymmetric key exchange and digital signature algorithms as the urgent migration priority, while symmetric encryption used for bulk data protection is generally considered adequately addressed by existing larger key size standards. For CE verticals, understanding Grover's algorithm's genuinely more limited scope helps calibrate quantum-safe migration priority correctly — resources are better directed at replacing vulnerable asymmetric algorithms specifically, rather than treating all cryptography as equally exposed to an undifferentiated quantum threat.

Cite this entry

Grover’s Algorithm. ConnectedEarth Knowledge Base. https://connectedearth.space/knowledge-base/grovers-algorithm/ (updated 13 September 2026).