Lean, informalized

Nielsen & Chuang · Chapter 5, The quantum Fourier transform and its applications · p. 238

Exercise 5.20 - For ff of period rr dividing NN, the Fourier transform fˆN\hat f_N vanishes off multiples of N/rN/r, and fˆN(kN/r)=N/rfˆr(k)\hat f_N(kN/r) = \sqrt{N/r}\,\hat f_r(k)

A periodic function transforms into evenly spaced peaks.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

A complex function ff on the integers is periodic with period rr, a positive integer, when f(x+r)=f(x)f(x + r) = f(x) for every integer xx. Let NN be a positive multiple of rr, so that the points x=0,1,…,N−1x = 0, 1, \dots, N-1 hold N/rN/r whole periods of ff. The exercise asks for the discrete Fourier transform of ff over these NN points: at which frequencies ℓ\ell it vanishes, and what it is at the rest.

The Fourier Transform

For a complex function ff on the integers, the normalized discrete Fourier transform fˆn\hat f_n of ff over nn points is the complex function on the integers given by fˆn(ℓ)=1n∑x=0n−1e−2πiℓx/nf(x).\hat f_n(\ell) = \frac{1}{\sqrt{n}} \sum_{x=0}^{n-1} e^{-2\pi i \ell x / n} f(x).(1)✦

When f(0),…,f(N−1)f(0), \dots, f(N-1) are the amplitudes of a state ∑xf(x)|x⟩\sum_x f(x)\,|x\rangle of a register with NN basis states, fˆN(ℓ)\hat f_N(\ell) is the amplitude of |ℓ⟩|\ell\rangle after the inverse quantum Fourier transform, as in period finding.

The Claim

The claim compares the transform over the NN points with the transform fˆr\hat f_r over a single period, x=0,…,r−1x = 0, \dots, r-1.

Theorem 1. Let rr and NN be positive integers with rr dividing NN, and let ff be a complex function on the integers, periodic with period rr. For every integer ℓ\ell that is not a multiple of N/rN/r, fˆN(ℓ)=0,\hat f_N(\ell) = 0,(2)✦ and for every integer kk, fˆN(kNr)=Nrfˆr(k).\hat f_N\!\left(k \, \frac{N}{r}\right) = \sqrt{\frac{N}{r}}\; \hat f_r(k).(3)✦

What Is Checked

The claim is stated over the normalized transform (1) of the function ff. What the library proves about this transform is the theorem above, for every function of period rr whatever its values on a period.