The Exercise
In the discrete logarithm problem one is given a unit of the integers modulo and a power , and asked for the exponent . Let be the order of , the least positive integer with . The quantum algorithm evaluates the function on all pairs of exponents below and then Fourier transforms both exponents modulo . The exercise is to compute the transform of at a pair of labels and to find the pairs at which it does not vanish. The library gives the answer in terms of the eigenstates used in the order finding algorithm, which finds the order of .
The Register
A quantum system is a physical object whose state space is a finite dimensional complex Hilbert space, and any such space is the state space of a system. A pure state of a system is a unit vector in the state space of , determined physically up to a global phase.✦ The qudit with levels is the system whose state space is with its standard inner product.✦ For a level , the computational basis state is the pure state of the qudit whose vector has entry at and elsewhere.✦
The register of the algorithm is the qudit with levels. For a unit modulo and a natural number , the residue is the integer below that represents the power ; it labels the basis state of the register.✦ For a natural number and natural numbers and , the function value state is the basis state .✦
The Fourier Sums
For natural numbers and , the double Fourier sum of is the vector (1) in the state space of the register, and for a natural number the single Fourier sum is the vector (2) For a label , the order finding eigenstate is the pure state of the register (3)✦ For labels , the Fourier state of is the vector (4)✦
The Claim
Theorem 1. Let be a unit of the integers modulo , of order , and let be a natural number. If natural numbers and satisfy , then the double Fourier sum (1) is (5)✦ If they satisfy , then, with the single sum (2), (6)✦ If , then, with the Fourier state (4), (7)✦
What Is Checked
The identities (5) and (6) are stated over the double sum (1) of the function value states and the single sum (2); the identity (7) relates the double sum to the Fourier state (4), built from the order finding eigenstates (3).
About these constructions the library proves that every computational basis state is a unit vector, so each is a pure state, and that each eigenstate is a pure state as well: the basis states with are orthonormal, and the coefficients of each have squared modulus .