The Exercise
A register has basis states , labelled by the numbers to . Fix natural numbers and with and coprime to . Multiplication by modulo shuffles the labels among themselves, and the labels from to stay where they are. The operator of order finding is the matrix of this shuffle, and the exercise is to show that is unitary.
The Multiplication Map
For natural numbers and , the multiplication map is the map of the labels to themselves that multiplies a label below by modulo and fixes every other label: (1)✦
For coprime to , the permutation of the labels is taken as a bijection, with each label written above its image: (2)✦
The Operator
For coprime to and , the operator of order finding is the permutation matrix of , the complex matrix with entries (3)✦
The Claim
Theorem 1. Let , and be natural numbers with coprime to and . Then the operator of (3) is unitary: with the identity on the register, (4)✦
What Is Checked
The claim is stated over the operator of (3), the permutation matrix of , which is built from the multiplication map of (1). About these constructions the library proves that is one to one whenever is coprime to , the fact that makes in (2) a permutation of the labels.