The Hadamard walk, step by step

Work through the first three steps of the Hadamard walk by hand, see where each amplitude goes, and learn why the distribution leans to one side when the coin starts pointing left.

10 min read · reviewed December 2026

Set-up

The walker sits at site 0 and the coin starts in the left state |L⟩. A step is a Hadamard on the coin followed by a shift. The Hadamard gate turns |L⟩ into (|L⟩ + |R⟩)/√2 and turns |R⟩ into (|L⟩ − |R⟩)/√2. The shift sends the L part one site to the left and the R part one site to the right.

We will write each amplitude as a number in front of a pair (position, coin). To keep the arithmetic readable, write 1/√2 as r, with r² = 1/2.

Step 1

Start with 1·(0, L). The coin gives r·(0, L) + r·(0, R). The shift moves the first term to (−1, L) and the second to (+1, R). So after one step there is amplitude r at (−1, L) and amplitude r at (+1, R). Each position has chance r² = 1/2.

This is the same as the first step of a classical walk. No interference is possible yet, because only one path leads to each site.

Step 2

Apply the coin to each of the two components. At site −1, the coin L becomes r(L + R), so we get r·r = 1/2 for (−1, L) and 1/2 for (−1, R). At site +1, the coin R becomes r(L − R), so we get r·r = 1/2 for (+1, L) and −1/2 for (+1, R). Now shift. (−1, L) goes to (−2, L), (−1, R) goes to (0, R), (+1, L) goes to (0, L), and (+1, R) goes to (+2, R).

Site 0 now holds two amplitudes, 1/2 for coin R and 1/2 for coin L. Their squared sizes add to 1/4 + 1/4 = 1/2. Sites ±2 each get 1/4. The distribution is 1/4, 1/2, 1/4 at −2, 0, 2. This is identical to the classical walk again. The difference arrives with the next step, because now two paths with different signs meet at the same site.

Step 3: where interference first matters

After step 2 the four amplitudes are 1/2 at (−2, L), 1/2 at (0, R), 1/2 at (0, L) and −1/2 at (+2, R). Apply the Hadamard to each. (−2, L) becomes (r/2)(L + R). (0, R) becomes (r/2)(L − R). (0, L) becomes (r/2)(L + R). (+2, R) becomes −(r/2)(L − R), which is −(r/2)L + (r/2)R. Now shift: every L part moves one site left and every R part one site right.

Collect what lands on each site. At −3: (r/2) in L, chance 1/8. At −1: L amplitude r/2 + r/2 = r, and R amplitude r/2, chance 1/2 + 1/8 = 5/8. At +1: L amplitude −r/2, and R amplitude −r/2 + r/2 = 0, chance 1/8. At +3: R amplitude r/2, chance 1/8. The exact chances are 0.125 at −3, 0.625 at −1, 0.125 at +1 and 0.125 at +3.

A classical walk would give 0.125, 0.375, 0.375, 0.125. The quantum walk has moved 0.25 of probability from site +1 to site −1. Look at the R component at site +1: it receives −r/2 from one path and +r/2 from another, and the two cancel exactly. At site −1 the two L contributions have the same sign and add. You can verify the numbers in the first table of the previous guide or in the lab by setting the steps to 3 and the start to |L⟩.

The first three steps show everything: no difference at steps 1 and 2, where each site has only one route, then a lopsided distribution at step 3 where routes meet with different signs.

Why the walk leans left

The Hadamard matrix has a minus sign in only one place, the entry that takes |R⟩ to the minus combination. Starting the coin in |L⟩ places more of the early amplitude on that asymmetric branch, so the cancelling happens on the right-hand side more than on the left. In the lab the effect is clear: from |L⟩ at 100 steps the average position is about −29, and starting from |R⟩ gives the mirror image, about +29.

A one-sided start is not the only way to get a symmetric result. Starting the coin in the balanced state (|L⟩ + i|R⟩)/√2 gives a perfectly symmetric distribution, because the imaginary factor cancels the asymmetry in the interference. That is the default start in the lab.

A check you can run

Every number here is produced by the same exact simulation that powers the rest of the lab, and the lab’s total-chance line stays at 1.000000 through all of these.

  • In the lab, set Steps to 2 with the |L⟩ start. You should see 0.25, 0.5, 0.25 at −2, 0, 2.
  • Set Steps to 3. You should see 0.125 at ±3, 0.625 at −1 and 0.125 at +1.
  • Change the start to |R⟩. The picture mirrors.
  • Change to the balanced start at 3 steps. The distribution is symmetric.

Try it

Questions

Why are the first two steps the same as a classical walk?

Each site can be reached by only one route in the first two steps, so there is nothing to interfere. Interference needs at least two routes to the same site.

Why does the Hadamard coin favour one side?

Because its matrix is not symmetric under swapping left and right: only one entry has a minus sign. A balanced start state cancels this.

Do the chances always sum to 1?

Yes. Every step is a unitary operation, so the total chance is exactly 1. The lab shows this number.

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.