HomeQuantum PhysicsGrover's Algorithm

🔍 Grover's Algorithm

Interactive Grover's algorithm simulator: watch oracle sign-flip and inversion-about-mean amplify the marked amplitude in O(sqrt(N)) iterations.

Quantum Physics3DAdvanced60 FPS
grover-search ↗ Open standalone

Frequently Asked Questions

What speedup does Grover's algorithm provide over classical search?

Grover's algorithm achieves a quadratic speedup, searching N items in O(√N) steps instead of O(N). For a database of one million entries, this reduces operations from one million to roughly one thousand.

How does the oracle work in Grover's algorithm?

The oracle is a quantum subroutine that recognises the target item and flips the sign (phase) of its amplitude without measuring it. This phase kickback marks the solution while leaving all other states unchanged.

Can Grover's algorithm break encryption?

Grover's algorithm halves the effective key length of symmetric encryption. AES-128 would have the security of a 64-bit key against a quantum attacker, which is why NIST recommends AES-256 for post-quantum security.

How many iterations does Grover's algorithm require?

The optimal number of iterations is approximately π/4·√N, where N is the database size. Performing too few or too many iterations reduces the probability of finding the correct answer.

Does Grover's algorithm require an error-free quantum computer?

Grover's algorithm requires a fault-tolerant quantum computer to realise its full advantage at scale. Current noisy intermediate-scale quantum (NISQ) devices can demonstrate the principle on small instances but not yet outperform classical hardware.

⚙ Under the hood

Watch quantum amplitude amplification find a marked item in O(√N) queries as the oracle flips signs and diffusion inverts about the mean.

Canvas 2DQuantum ComputingGroverAmplitude AmplificationSearch

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)