相位齿轮与周期 · 逐级减半转速的齿轮给每一格拧出相位;完整陪集上的相位箭头首尾相接,不共振的绕成圈抵消,只剩周期留下的峰Phase gears and the period · gears turning ever more slowly give each cell its phase; chained along a complete coset, off-resonant arrows close into loops and cancel, leaving the peaks of the period
Q · r —k —
理论接口 · 这个页面在演示什么Theory interface · what this page shows
The register has Q = 2q cells. The input is the equal superposition of the n cells of the comb {x₀, x₀ + r, x₀ + 2r, …}; after the positive-exponent unitary QFT the amplitude of frequency k is αk = Σx e2πikx/Q / √(Qn). The page is a numerical illustration, not a proof.
The gears. Each gear stands for one binary digit 2j of k: every cell x along the rail turns it by 2j/Q of a turn. The leftmost gear turns half a turn per cell and rests in only two positions; each gear to the right is half as fast and rests in twice as many. The phase 2πkx/Q of frequency k at cell x is the sum of the angles of the gears picked (lit) by the binary digits of k. At Q = 8 and x = 5 the three gears rest at π, π/2 and 5π/4, as in Step 2 of Chapter 15 (a literature result, not formalized in this book).
The chain. Each time the rail passes a cell of the comb, the chosen frequency k gains a cyan arrow of length 1 pointing at 2πkx/Q. The ink resultant is Σ e2πikx/Q; its squared length divided by Qn is the height of bar k of the spectrum.
Cancellation. When r divides Q and the offset is 0, a k that is not a multiple of Q/r turns the arrows evenly round, the chain closes on itself and sums to 0; when k is a multiple of Q/r all arrows point the same way and the sum has length n. Q = 16, r = 4, k = 1 is exactly the 1 + i + (−1) + (−i) = 0 of Step 4 of Chapter 15. During the sweep the off-resonant bars first grow and then shrink back to 0.
Peaks. The small magenta triangles sit at sQ/r (s = 0, 1, …, r − 1): at a frequency exactly equal to sQ/r the phase step 2πkr/Q from one tooth of the comb to the next is a whole number of turns, and all the arrows of the comb point the same way. When r divides Q they all fall on integers; if the comb is then a complete coset (offset x₀ < r), each peak has height 1/r. Truncating the comb at the register boundary changes the heights. When r does not divide Q only some of them fall on integers (s = 0 always does; at Q = 64, r = 6 so does 32) and the rest fall between two integers. After the full sweep the spectrum is the finite sum over the n cells the comb actually has, and no bar exceeds n/Q. For example, at Q = 64, r = 6, x₀ = 0 (11 cells) each peak spreads over a few cells near sQ/r, and the six cells nearest sQ/r carry 0.80 together. Truncation can wipe out the concentration near sQ/r: for example, at Q = 64, r = 3 the three nearest cells carry 0.80 for x₀ = 0 (22 cells), but x₀ = 63 leaves a single cell, the spectrum is flat and those three cells carry only 3/64. The readout gives this total for the current comb after the full sweep.
Reading the order. For each peak the page expands k/Q as a continued fraction and keeps the last convergent s/d with denominator at most √Q. At Q = 16 and r = 4, k = 4 and 12 read 1/4 and 3/4, giving 4; k = 8 reads 1/2 and only gives 2 (a proper divisor of the order), which must be checked again; k = 0 carries no information. At Q = 64 and r = 6, k = 11 reads 1/6. Every denominator read this way is only a candidate for the order and must be checked: when r > √Q this reading cannot return r at all, and once truncation flattens the spectrum the peaks can read other denominators.