The Exercise
Let be a positive integer and an invertible residue modulo , the residue of an integer coprime to . Its order is the least positive integer with , the number that order finding computes. On a register of levels, with basis states labelled by the residues modulo , the powers label basis states . A discrete Fourier transform over the exponent turns them into states , the eigenstates of order finding. The exercise runs the transform backwards: it asks for each basis state , and for in particular, as a superposition of the .
The library answers with two identities between vectors of the register’s state space.
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 vector of unit norm in the state space of , determined physically up to a global phase.✦
The system modelled on a finite dimensional complex Hilbert space is the quantum system whose state space is .✦ The qudit with levels is the system modelled on with its standard inner product; its levels are , and the register of the exercise is the qudit with levels.✦ For a level of the qudit with levels, the computational basis state is the pure state whose vector is the standard basis vector of with entry at and elsewhere.✦
The Eigenstates of Order Finding
For a natural number , the level of the qudit with levels is the remainder of on division by , a number between and , and is the computational basis state at that level.
For , the order finding eigenstate is the pure state of the qudit with levels given by (1)✦
The Claim
Theorem 1. Let be a positive integer, an invertible residue modulo of order , and the eigenstates (1) of order finding. For every natural number , (2)✦ If moreover , then (3)✦
What Is Checked
The claim is stated over the eigenstates of order finding, defined by the Fourier sum (1), and over the computational basis states of the qudit with levels: at the remainder of , and .
The library also establishes that each is a unit vector of , so that the sum (1) defines a pure state.