n = 4 · candidates = 15
Surviving candidate for s Eliminated candidate Recovered secret s
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Simon's Algorithm: Hidden XOR-Period Solver

Simon's algorithm is the quantum computing library's classic proof that entanglement and interference can buy an exponential speedup: given oracle access to a function hiding a secret XOR-period s, a quantum computer recovers s in O(n) queries where any classical algorithm needs O(2n/2). This simulator renders the full candidate space for s as a 3D bar field and runs the real oracle-sampling distribution P(y) = 1/2n-1 for y·s ≡ 0 (mod 2). Every query submitted collapses the bars of every candidate that fails the new GF(2) constraint, visibly shrinking the search space until, after roughly n − 1 independent equations, only the true secret is left standing.