The Exercise
The quantum algorithm for the discrete logarithm works modulo a positive integer . It is given a unit of the integers modulo , of order , the least positive integer with , together with a power , and the unknown is the exponent . The algorithm evaluates the function of two exponents (1) and writes its values on a register of dimension .
The Fourier transform over both exponents takes the states of that register to states , labelled by integers and from to . The exercise runs the transform backwards: it sums the states over both labels with the phases and asks which state of the register comes out. The library gives the answer for both signs of the exponent.
A Quantum System
A quantum system is a physical object whose state space is a finite dimensional complex Hilbert space.✦ 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 quantum system whose state space is itself, with its standard inner product, and for a level less than the computational basis state of the qudit is the pure state whose vector has entry at and elsewhere.
The register of the exercise is the qudit with levels. Its basis states are labelled by residues: for a natural number , is the natural number less than that represents the power , and is the basis state it labels.
The Fourier States
The value state for natural numbers and is the basis state of the qudit with levels.✦
For a label less than , the eigenstate used in order finding, the algorithm that determines the order , is the pure state of the same qudit with levels (2)✦
The Fourier state , for labels and less than , is the vector of the state space of the qudit (3)✦
For natural numbers and , the inverse Fourier sum is the vector of the state space of the qudit with levels obtained by summing the Fourier states over both labels with phases: (4)✦
For natural numbers and , the forward Fourier sum is the vector of the state space of the qudit with levels obtained by summing the Fourier states over both labels with the phases of the previous sum taken with the opposite sign: (5)✦
The Claim
Theorem 1. Let be a positive integer, a unit of the integers modulo of order , and , and natural numbers. Then (6)✦ and (7)✦
What Is Checked
The claim is stated over the eigenstates of order finding, which enter both sums through the Fourier states (3), and over the basis states of the qudit with levels in which both sides are written.
About these constructions the library proves that each is a pure state of the qudit.