What is a quantum walk?

A quantum walk is the quantum version of a random walk: instead of one walker taking random steps, amplitudes move over many paths at once and interfere. The result spreads very differently.

9 min read · reviewed December 2026

The classical random walk in a minute

Put a walker at position 0 on a line. At each step, flip a fair coin. Heads, move one step right. Tails, move one step left. After t steps the walker is somewhere, and we can ask where. The chance of each position is given by the binomial distribution, which for large t looks like a bell curve centred at 0. The typical distance from the start, measured as the standard deviation, is the square root of t. After 100 steps the walker is typically about 10 sites from where it began.

This square-root law is why random walks are slow explorers. To get ten times farther you need a hundred times more steps. Many classical algorithms, from estimating volumes to solving certain satisfiability problems, are built on random walks, and their running time is controlled by how fast the walk spreads or mixes.

Two things you must change to make it quantum

Each step then has two parts. First, apply a coin operation, a unitary 2 × 2 matrix on the coin register. The standard choice is the Hadamard gate. Second, apply a shift: if the coin says left, the position decreases by 1, and if it says right, the position increases by 1. Because the shift depends on the coin, the walker and coin become entangled.

one step = shift ∘ (coin ⊗ identity on position)

  • The coin becomes a qubit. Instead of a random outcome, the walker carries a two-state coin register, with states we label left and right. The coin can be in a superposition of both.
  • Probabilities become amplitudes. Instead of tracking the chance of each position, we track a complex amplitude for each pair of position and coin state. Amplitudes of different paths that reach the same place are added before squaring, so they can cancel or reinforce.

No random choices, and still a probability distribution

Nothing in this evolution is random. The state after t steps is a definite set of amplitudes that you can compute exactly, and that is what the lab does. Randomness enters only at the end, when you measure the position and get one site, with the probability set by the squared amplitudes. The distribution you see in the lab is the distribution of those measurement outcomes, not the path of a single walker.

That is a major conceptual difference. A classical walker has a position at every moment, and the distribution describes our ignorance. A quantum walker does not have a position in between: the distribution is the shape of the amplitude, and the interference that shapes it needs the unmeasured amplitude to exist at every site at once. If you measured the walker at every step you would destroy the interference and get back an ordinary random walk.

Measure the walker after every step and it becomes a classical random walk. Leave it alone until the end and the paths interfere.

What you see in the lab

Open the Walk on a line tab with the Hadamard coin and the balanced start. After 60 steps the distribution is not a bell curve. It is spread across most of the range between about −42 and +42, which is 0.7 times 60, with the largest bars near the edges and a shallow region in the middle. The standard deviation is about 0.54 times the number of steps. For a classical walk with the same number of steps it is about 7.7.

The table below gives the exact first steps of the walk from the left-pointing coin. Look at the entries that are zero. At step 2 the walker is never at −1 or +1, because the coin and shift force it to even sites on even steps, as in the classical walk. At step 3 something new appears: the chance at position −1 is 0.625, much larger than the classical 0.375, and the chance at +1 is only 0.125. The interference has already tilted the distribution.

Hadamard walk from |L⟩: chance at each site after t steps. Exact, from the lab’s simulator. Note the lopsided shape and the zeros.
tx = -4x = -3x = -2x = -1x = 0x = 1x = 2x = 3x = 4
10000.500000.5000000
2000.250000.500000.250000
300.125000.625000.125000.12500
40.062500.625000.125000.125000.0625

Two families of quantum walk

The two families behave alike in many ways. They both spread linearly with time and both interfere. The details differ, and the later guides take each in turn.

  • Discrete-time walks, with a coin and a shift, as above. They are easy to picture and the lab’s first three tabs use them.
  • Continuous-time walks, with no coin. The walker evolves under a Hamiltonian built from the graph, so amplitude flows to neighbouring sites continuously. The fourth tab shows one.

Try it

Questions

Is a quantum walk random?

The evolution is deterministic. Randomness appears only when you measure at the end, so the plotted distribution is the distribution of measurement results.

Why is a coin needed?

A unitary shift alone cannot choose between left and right. The coin gives each position two internal states, so the shift can be reversible while still moving amplitude both ways.

What happens if I measure every step?

You get back a classical random walk, because measuring removes the amplitudes that would interfere.

Read next

Sources and further reading

  • Y. Aharonov, L. Davidovich and N. Zagury, “Quantum random walks” (1993)
  • E. Farhi and S. Gutmann, “Quantum computation and decision trees” (1998)
  • J. Kempe, “Quantum random walks: an introductory overview” (2003)
  • N. Konno, work on limit distributions of the Hadamard walk (about 2002)
  • A. Childs et al., “Exponential algorithmic speedup by quantum walk” (2003)
  • N. Shenvi, J. Kempe and K. B. Whaley, “A quantum random walk search algorithm” (2003)
  • A. Childs, “Universal computation by quantum walk” (2009)

Check the original sources for exact citations.