Skip to main content

Plain-Language Intuition

Mode: Simple / School
A black box hides a secret pattern s. It gives the same output for exactly two inputs: x and "x with the pattern s flipped in". Your job is to find s. Classically you must keep trying inputs until two of them happen to give the same output. Like waiting for two people in a room to share a birthday, that takes a number of tries that grows exponentially with the size of the input. Simon's algorithm does something smarter: 1. Feed the box all inputs in superposition. 2. The box sorts the inputs into matching pairs (x and x⊕s). 3. A Hadamard layer makes each pair interfere. Any answer y that "disagrees" with s cancels out completely. Each run hands you one random clue y that is guaranteed to satisfy y·s = 0. Collect about n clues, solve the little system of equations, and s is revealed. This was the first algorithm to show an exponential quantum speedup, and it directly inspired Shor's factoring algorithm.

Hidden Period Finding

Simon's Algorithm: quick reference

Finds the hidden XOR period of a 2-to-1 function exponentially faster than any classical algorithm — the direct ancestor of Shor's algorithm.

Topic
Hidden Period Finding
Level
Intermediate
Circuit size
4 Qubits
Key result
Exponential: O(n) vs O(2ⁿᐟ²) queries

Concepts covered: Simon's Algorithm, Hidden Subgroup Problem, Quantum Interference, Period Finding

Frequently asked questions

What is Simon's Algorithm?

Finds the hidden XOR period of a 2-to-1 function exponentially faster than any classical algorithm — the direct ancestor of Shor's algorithm. It is a intermediate-level topic in hidden period finding.

How many qubits does the Simon's Algorithm circuit use?

The QuanBit tutorial uses a 4 qubits circuit. Key result: Exponential: O(n) vs O(2ⁿᐟ²) queries.

Can I simulate Simon's Algorithm online for free?

Yes. The interactive Simon's Algorithm tutorial at https://www.quanbit.tech/learn/simon runs free in the browser with nothing to install. You can step through the circuit gate by gate, watch the probabilities, statevector and Bloch spheres update, build the circuit yourself and take a short quiz.