Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

15.4 Finite Period Sampling and Order Reconstruction in Shor’s Algorithm

Applying Proposition 15.5 to an arbitrary function yields the finite Poisson summation formula.

Be careful to note the exact Fourier convention used by Mathlib’s ZMod.dft in the source file: ZMod.dft f is the unnormalized, negative-exponent discrete Fourier transform

One must never silently replace ZMod.dft with the physics convention without accounting for the factor and the sign reversal (though because is an additive subgroup, , leaving the sum over invariant).

When the period divides the register size , the finite Poisson summation formula (Corollary K.1) transforms a position comb of spacing into the dual frequency comb of spacing : every off-comb frequency cancels identically, leaving uniform probability on sharp peaks. For and , the position comb has only cells, while its annihilator holds frequencies spaced apart.

The peaks are apart, not . and period : the cyan comb on the register has only cells, apart; after the sweep the spectrum keeps equal bars, each , at , exactly the frequencies of , spaced apart. At the four cyan arrows all point right and the chain has length ; (Corollary K.1). In the example, and happen to give , so the two combs coincide.

When does not divide , the ideal frequencies fall between integer grid points so phase cancellation is no longer exact and each peak spreads into neighboring cells; even so, most of the mass stays concentrated near , allowing continued-fraction expansion of the observed ratio to surface candidate periods.

When the period does not divide, the peaks spread. and period : the magenta marks fall between integers at , and so on, and each peak spreads over neighbouring cells — has , only , and the six cells nearest carry together; the continued fraction of the amber-framed reads . This card specifies no actual modulus and base with which to check , so its concentration and reading remain a numerical teaching example. The conditional membership theorems in Appendix K do not certify this card’s last-convergent rule or identify its conditioned-comb peak heights with the actual marginal probabilities.

The full formal derivations for exact non-dividing counting marginals, continued-fraction observation events, and executable order-and-factor certificates are collected in Appendix K (§K.1–§K.3). Next, we step directly through complete hand calculations for Grover, QFT, and Shor: