Choosing the coin and the starting state

The coin and the starting coin state shape the whole distribution. This guide compares four coins and three starts, and explains why a symmetric result needs a careful choice.

8 min read · reviewed December 2026

What a coin is allowed to be

A coin for the two-direction walk is any 2 × 2 unitary matrix. The lab uses real matrices to keep the picture simple: the Hadamard matrix, the identity, the swap (Pauli X) and a rotation by 30 degrees. The table lists them. Complex coins give additional shapes, and a general coin can be reduced to a few parameters up to simple changes of the starting state.

The coins in the lab, as 2 × 2 matrices acting on (left, right). Hadamard is the standard choice.
CoinRow 1Row 2Effect
Hadamard0.7071, 0.70710.7071, -0.7071Mixes the two directions evenly, with a sign
Swap (Pauli X)0, 1.00001.0000, 0Swaps directions each step: the walker bounces
Identity (no mixing)1.0000, 00, 1.0000No mixing: the walker runs in a straight line
Biased rotation (30 degrees)0.8660, 0.5000-0.5000, 0.8660Partial mixing: keeps its direction more often, edges farther out

Four coins, four behaviours

The last case is a useful surprise: a gentler coin gives a wider walk. The reason is that a coin close to the identity is close to the straight-line motion of the identity coin, which has the highest possible speed, one site per step. A coin that mixes strongly slows the front down. Hadamard sits at the middle: its front moves at about 0.71 sites per step.

  • Hadamard: mixes the directions evenly. The distribution has two broad humps near the edges at about 0.71 times the number of steps, and the spread is about 0.54 times the step count.
  • Identity: no mixing at all. The coin is never changed, so if the walker starts moving left it moves left for ever. The distribution is a single spike at −t (or +t). There is no interference.
  • Swap (Pauli X): the coin flips every step, so the walker goes left, then right, then left. It bounces between two neighbouring sites and does not spread.
  • Rotation by 30 degrees: mixes the directions less strongly than Hadamard. The walker tends to keep its direction. In the lab, with the balanced start at 100 steps, the spread is about 0.707 times the step count and the edges sit near 0.84 to 0.87 times the step count.

The role of the starting coin state

The walker’s initial position is a single site, but the coin can start in any superposition of left and right. This makes a big difference. Three starts are in the lab: |L⟩, |R⟩ and the balanced state (|L⟩ + i|R⟩)/√2.

For the Hadamard coin, |L⟩ gives a distribution tilted to the left, with an average position of about −29 after 100 steps, and |R⟩ gives the mirror image. The balanced start gives a symmetric distribution with the average at 0. The factor i in the balanced state is not decoration. A start with a plus sign, (|L⟩ + |R⟩)/√2, is not symmetric for the Hadamard coin, because the real signs in the Hadamard matrix then keep the asymmetry. The imaginary factor is what makes the interference even on both sides.

A practical rule

Choice of coin is a design decision in walk-based algorithms. In searching, for instance, the coin is chosen so that amplitude piles up on a marked vertex. It is not enough to pick the Hadamard gate by habit. The literature on search walks lists which coin works for which graph, and I would check the source for specifics before relying on any one choice.

  • If you want a symmetric distribution with the Hadamard coin, use the balanced start with the factor i.
  • If you want to see the effect of the coin alone, compare the same start across coins.
  • If you want to see the effect of the start alone, compare the same coin across starts.
  • Whatever you pick, the total probability stays at 1, and the lab shows that as a check.

The coin sets how the walk mixes, and the start decides which side the interference favours. Both belong in the description of any quantum walk.

Try it

Questions

Why does the balanced start need an i?

The Hadamard matrix is real with one minus sign, which treats left and right differently. An imaginary relative phase in the start state compensates for this and makes the interference symmetric.

Does a bigger spread mean a better coin?

No. The best coin depends on the task. A wide spread is useful for exploring, and a different coin may be needed to concentrate amplitude on a target.

Can the coin change from step to step?

Yes. Walks with time-dependent coins exist, but the lab keeps one coin so the effect is clear.

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.