The Exercise
A list of complex numbers , as many as the amplitudes of qubits, is to be Fourier transformed on a classical computer. The discrete Fourier transform sends it to the list with (1) The exercise asks how the number of elementary arithmetic operations grows with , once when (1) is evaluated directly, one output at a time, and once when the transform is computed by the fast Fourier transform.
The Operation Counts
The operation count of the direct evaluation of a transform of numbers is the whole number (2)✦
The fast Fourier transform’s operation count for numbers satisfies the recursion (3)✦
The Claim
For real functions and of the whole number , means that there are constants and with for all .
Theorem 1. As , the operation count of the direct evaluation satisfies (4)✦ and the operation count of the fast Fourier transform satisfies (5)✦
What Is Checked
The claim is stated over the two operation counts: the closed formula (2) for the direct evaluation and the recursion (3) for the fast Fourier transform.
What the library proves about these counts is their order of growth, (4) for the direct evaluation and (5) for the fast Fourier transform.