|q⟩ Bad Qubits

intermediate · Programming · Quantum Walks

Discrete-Time Quantum Walks

A classical random walk on a line is simple: at each time step, toss a fair coin; move right on heads or left on tails. The walker's position spreads diffusively — after tt steps the standard deviation of the position grows as σt\sigma \sim \sqrt{t}.

A discrete-time quantum walk replaces that probabilistic coin with a quantum one. The result is profoundly different: the position spreads ballistically, with σt\sigma \sim t, and the probability distribution develops characteristic peaks near the edges rather than the bell curve of its classical cousin.

The structure of a coined quantum walk

A coined quantum walk operates on a composite Hilbert space

H=HcoinHposition,\mathcal{H} = \mathcal{H}_{\text{coin}} \otimes \mathcal{H}_{\text{position}},

where the coin register carries a two-level system (one qubit, basis 0|0\rangle and 1|1\rangle) and the position register labels the node or lattice site currently occupied.

Each time step of the walk applies two operations in sequence:

  1. Coin operator CC — a unitary acting only on the coin qubit. The standard choice is the Hadamard gate:

    C=H1pos,H=12(1111).C = H \otimes \mathbf{1}_{\text{pos}}, \qquad H = \frac{1}{\sqrt{2}}\begin{pmatrix}1 & 1 \\ 1 & -1\end{pmatrix}.

    Unlike the classical coin flip, HH does not collapse the coin to a definite outcome — it creates a superposition of "move left" and "move right" simultaneously.

  2. Conditional shift operator SS — moves the walker on the position register conditioned on the coin state:

    S=00L^  +  11R^,S = |0\rangle\langle 0| \otimes \hat{L} \;+\; |1\rangle\langle 1| \otimes \hat{R},

    where L^\hat{L} shifts the walker one step to the left and R^\hat{R} one step to the right. In ket notation on the joint state cx|c\rangle|x\rangle:

    S0x=0x1,S1x=1x+1.S\,|0\rangle|x\rangle = |0\rangle|x-1\rangle, \qquad S\,|1\rangle|x\rangle = |1\rangle|x+1\rangle.

One complete step of the quantum walk is the unitary U=S(C1)U = S \cdot (C \otimes \mathbf{1}).

Why it is quantum

Consider a walker starting at position x=0x = 0 with the coin in 0|0\rangle. After one step of HH followed by SS, the joint state is

U00=S0+120=01+1+12.U\,|0\rangle|0\rangle = S\,\frac{|0\rangle + |1\rangle}{\sqrt{2}}\,|0\rangle = \frac{|0\rangle|-1\rangle + |1\rangle|+1\rangle}{\sqrt{2}}.

Both sites x=1x = -1 and x=+1x = +1 are occupied in superposition — the walker is genuinely in two places at once. After the next step, those amplitudes propagate further and begin to interfere with each other when paths cross. It is this constructive and destructive interference that produces the ballistic spreading and the non-Gaussian distribution.

The spreading law

For an unbiased classical walk, after tt steps the position distribution has variance σcl2=t\sigma_{\text{cl}}^2 = t. For the Hadamard quantum walk started with a symmetric initial coin state (0+i1)/2(|0\rangle + i|1\rangle)/\sqrt{2}, the variance grows as

σqw2(112)t2,\sigma_{\text{qw}}^2 \approx \left(1 - \frac{1}{\sqrt{2}}\right)\,t^{\,2},

giving σqw11/2t0.5412t\sigma_{\text{qw}} \sim \sqrt{1 - 1/\sqrt{2}}\,t \approx 0.5412\,t to leading order — a linear (ballistic) growth compared with the square-root growth of the classical walk. This factor-of-t\sqrt{t} advantage underlies the speedups in quantum-walk-based algorithms such as element distinctness and triangle finding.

Coined vs. continuous-time quantum walks

The coined (discrete-time) model described here explicitly stores the coin qubit alongside the position. A second model, the continuous-time quantum walk, has no coin at all: the walker evolves under a Hamiltonian HGH_G derived from the graph's adjacency matrix, governed by the Schrodinger equation. The two models have different Hilbert-space structures and different computational capabilities; later lessons will explore the continuous-time variant.

For graph search and sampling problems, the discrete-time model is often preferred because the coin provides an extra degree of freedom to tune. By choosing different coin operators — Grover coin, Fourier coin, or parameterized rotations — the walk can be steered toward different behaviours on the same graph.

Sign in on the full site to ask questions and join the discussion.