A quantum walk is the quantum analog of a classical random walk: a quantum particle or register moves across the vertices of a graph in superposition, and the amplitudes of different paths interfere rather than simply adding as probabilities. Among quantum algorithms in quantum computing, quantum walks are a general framework for algorithm design that yields speedups for search, element distinctness and certain graph problems.
The key difference from a classical walk is the spreading rate. A classical random walk on a line spreads diffusively, with distance growing as the square root of time, while a quantum walk spreads ballistically, with distance growing linearly. This faster spreading and the ability to steer interference are the source of most quantum walk speedups.
How a quantum walk evolves
A quantum walk replaces the probability distribution of a random walk with a vector of complex amplitudes over graph vertices. The evolution is unitary, so it is reversible and never converges to a stationary distribution in the classical sense. Measuring the walker at a chosen time collapses the state and returns a vertex with probability equal to the squared magnitude of its amplitude.
Two formal models exist. The discrete-time quantum walk adds a coin register that decides the direction of each step, while the continuous-time quantum walk evolves the state under a Hamiltonian derived from the graph’s adjacency or Laplacian matrix. The table below compares them.
| Model | Evolution rule | Typical use |
|---|---|---|
| Discrete-time (coined) | Coin operator, then conditional shift | Spatial search on grids and hypercubes |
| Continuous-time | Hamiltonian e^(−iHt) from graph matrix | Glued-trees problem, transport |
| Szegedy walk | Quantized Markov chain with two reflections | Quadratic speedup of hitting times |
| Staggered walk | Alternating graph tessellations | Generalizes coined and Szegedy walks |
Quantum walks compared with classical random walks
The quantum walk differs from its classical counterpart in spreading, mixing and hitting behavior. These differences explain where the quantum version helps and where it offers nothing extra.
| Property | Classical random walk | Quantum walk |
|---|---|---|
| Spread on a line after t steps | About √t | About t |
| Combination of paths | Probabilities add | Amplitudes interfere |
| Long-time behavior | Converges to stationary distribution | Oscillates, use time-averaged distribution |
| Hitting time on suitable graphs | Baseline | Often quadratically faster |
| Reversibility | Generally irreversible | Always reversible |
A quadratic speedup is the typical gain, but on specially structured graphs the gap can be larger. On the glued-trees graph, a continuous-time quantum walk crosses from one root to the other in polynomial time, while any classical algorithm needs exponentially many queries, an oracle separation proved in the early 2000s.
Algorithms built on quantum walks
Quantum walks are the engine behind several important algorithms. Ambainis’s element distinctness algorithm finds two equal items in a list with about N^(2/3) queries, compared with N classically. Walk-based methods also give speedups for triangle finding, formula evaluation and spatial search on lattices.
The following table lists representative results and the speedup each achieves.
| Problem | Quantum walk complexity | Best classical |
|---|---|---|
| Element distinctness | O(N^(2/3)) queries | O(N) queries |
| Spatial search on 2D grid | O(√N log N) steps | O(N) steps |
| Glued-trees traversal | Polynomial | Exponential |
| NAND-tree evaluation | About N^0.5 queries | About N^0.753 queries |
| Markov chain hitting | Square root of classical | Hitting time |
Quantum walks are also universal for quantum computation: both discrete-time and continuous-time walks on suitable graphs can encode any quantum circuit. This makes them a full computational model, not only a toolbox for search.
Relation to Grover’s algorithm and amplitude amplification
Grover’s algorithm can be viewed as a quantum walk on the complete graph, where every vertex connects to every other. Spatial search generalizes this idea to graphs with limited connectivity, where the walker cannot jump directly to any vertex.
Both methods rely on amplitude amplification: repeated reflections rotate the state toward marked items. The quantum walk framework adds structure, letting algorithms reuse data across steps, which is why it achieves the N^(2/3) bound for element distinctness where plain Grover search does not.
The two approaches also differ in design flexibility. Grover search needs only an oracle and a diffusion step, while a walk algorithm also defines a graph, a coin or Hamiltonian, and a checking cost for marked vertices. The general cost formula of walk search, combining setup, update and checking costs, lets designers balance these parts and is the main reason the framework produces new algorithms rather than restating known ones.
Physical implementations and practical limits
Quantum walks have been demonstrated in photonic waveguide arrays, trapped ions, neutral atoms in optical lattices and superconducting circuits. Photonic chips are especially natural because light hopping between coupled waveguides directly realizes a continuous-time walk.
Several practical limits apply. The most important are decoherence and disorder, which turn a quantum walk back into classical diffusion or cause localization.
| Obstacle | Effect | Mitigation |
|---|---|---|
| Decoherence | Loss of interference, classical spreading | Shorter walks, better isolation |
| Static disorder | Anderson localization of the walker | Precise fabrication and calibration |
| Large graphs | Qubit count grows with vertex encoding | Binary vertex encoding in registers |
| Measurement timing | Success depends on stopping time | Randomized or averaged stopping |
A common misconception is that a quantum walk speeds up every graph problem. On many graphs the gain disappears, and the right choice of coin, Hamiltonian and stopping time is critical.
In plain words
Picture a person exploring a maze by flipping a coin at every turn. That is a classical random walk. It is slow, because the person often goes back over the same paths.
A quantum walk explores many paths at once. The paths can strengthen or cancel each other, like waves on water. With a clever setup, the wrong routes cancel out and the right ones grow stronger. That is why a quantum walk can find a target faster than random wandering.
A real-world example
A university photonics lab builds a chip with 21 coupled waveguides etched in glass. Laser light enters a single waveguide and spreads to its neighbors as it travels along the chip, which realizes a continuous-time quantum walk on a line. Cameras at the output record the intensity pattern.
The measured pattern shows two sharp peaks moving outward at a constant speed, the ballistic signature of a quantum walk, instead of the bell-shaped spread expected from classical diffusion. The team then adds deliberate random variations to the waveguide spacing and observes the light localize near the input. The experiment confirms the theory and provides a test bed for quantum transport and search algorithms.