The stage is a cycle ZMod p of p points, drawn as a line (p = 121 by default, so no walk of 60 steps wraps round). Both walks start at the origin: the cyan one above is the quantum walk, the grey one below the classical random walk, and the rail counts the steps n. The page is a numerical illustration, not a proof.
- The one-step rule. As in the text's hadamardStep: the new amplitude at (0, x) is (ψ(0, x + 1) + ψ(1, x + 1))/√2 and the new amplitude at (1, x) is (ψ(0, x − 1) − ψ(1, x − 1))/√2. The |0⟩ part steps left, the |1⟩ part steps right, and at every step the Hadamard mixes the two so that they interfere. The walk starts at the origin with the coin c = (√w, eiφ√(1 − w)). The probability at x is P(x) = |ψ(0, x)|² + |ψ(1, x)|².
- The classical comparison. The classical random walk steps left or right with probability ½ each. On a line (or on a cycle the walk has not yet wrapped round, 2n < p) it is binomial after n steps, with variance exactly n and width √n. On a line the width of the quantum walk grows roughly linearly for large n, and σ ÷ n settling near 0.54 belongs to the symmetric coin only; this is a literature result, not formalized in this book. The gap between the two is a square: on a line the gain is quadratic, not exponential. Once the walk wraps round the cycle (2n ≥ p), the widths in centred coordinates are bounded by the size of the cycle, and the growth laws of the line no longer apply.
- The symmetric coin. A step of the proof sketch in the text: the sum of the probabilities of a mirror pair (0, x) and (1, −x) does not depend on the coin, and c* splits every pair evenly. The page reports the largest gap within a pair: zero for c* (and for its conjugate (1, −i)/√2), and then P(x) = P(−x); with another coin, such as (1, 1)/√2, the distribution tilts to one side, and magenta is what it has beyond its mirror image. The frozen result is about geometric entanglement:
SymmetricCoinMaximalWalkEntanglement.result (LEAN ✓): for every p ≥ 1, n and unit coin c, geometricEntanglement(walkState(p, n, c)) ≤ geometricEntanglement(walkState(p, n, c*)). The page does not compute this entanglement; it draws the distributions.
- Where it stops. The lemma does not say that quantum walks give an exponential speedup on every graph, nor that destructive interference clears every way back on any graph. The exponential separation on glued trees, and at most a quadratic speedup on general graphs as a rule, are literature results not formalized in this book (the literature remark of Chapter 16).
In the book: walks on graphs: coherence and its limits · the symmetric-coin lemma · the literature remark on QSVT and walks