Lean, informalized

Nielsen & Chuang · Chapter 5, The quantum Fourier transform and its applications · p. 227

Exercise 5.13 - Each basis state |xkmod⁡N⟩|x^k \bmod N\rangle, and |1⟩|1\rangle, as a superposition of the states |us⟩|u_s\rangle

Undoing the Fourier sum of the order finding eigenstates.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

Let NN be a positive integer and xx an invertible residue modulo NN, the residue of an integer coprime to NN. Its order rr is the least positive integer with xr=1x^r = 1, the number that order finding computes. On a register of NN levels, with basis states |0⟩,…,|N−1⟩|0\rangle, \dots, |N-1\rangle labelled by the residues modulo NN, the powers 1,x,…,xr−11, x, \dots, x^{r-1} label rr basis states |xkmod⁡N⟩|x^k \bmod N\rangle. A discrete Fourier transform over the exponent kk turns them into rr states |u0⟩,…,|ur−1⟩|u_0\rangle, \dots, |u_{r-1}\rangle, the eigenstates of order finding. The exercise runs the transform backwards: it asks for each basis state |xkmod⁡N⟩|x^k \bmod N\rangle, and for |1⟩|1\rangle in particular, as a superposition of the |us⟩|u_s\rangle.

The library answers with two identities between vectors of the register’s state space.

A Quantum System

A quantum system SS is a physical object whose state space is a finite dimensional complex Hilbert space.✦ A pure state |ψ⟩|\psi\rangle of a system SS is a vector of unit norm in the state space of SS, determined physically up to a global phase.✦

The system modelled on a finite dimensional complex Hilbert space HH is the quantum system whose state space is HH.✦ The qudit with dd levels is the system modelled on ℂd\mathbb{C}^d with its standard inner product; its levels are 0,1,…,d−10, 1, \dots, d-1, and the register of the exercise is the qudit with NN levels.✦ For a level ii of the qudit with dd levels, the computational basis state |i⟩|i\rangle is the pure state whose vector is the standard basis vector of ℂd\mathbb{C}^d with entry 11 at ii and 00 elsewhere.✦

The Eigenstates of Order Finding

For a natural number kk, the level xkmod⁡Nx^k \bmod N of the qudit with NN levels is the remainder of xkx^k on division by NN, a number between 00 and N−1N-1, and |xkmod⁡N⟩|x^k \bmod N\rangle is the computational basis state at that level.

For s=0,1,…,r−1s = 0, 1, \dots, r-1, the order finding eigenstate |us⟩|u_s\rangle is the pure state of the qudit with NN levels given by |us⟩=1r∑k=0r−1e−2πisk/r|xkmod⁡N⟩.|u_s\rangle = \frac{1}{\sqrt r} \sum_{k=0}^{r-1} e^{-2\pi i sk/r}\, |x^k \bmod N\rangle .(1)✦

The Claim

Theorem 1. Let NN be a positive integer, xx an invertible residue modulo NN of order rr, and |u0⟩,…,|ur−1⟩|u_0\rangle, \dots, |u_{r-1}\rangle the eigenstates (1) of order finding. For every natural number kk, 1r∑s=0r−1e2πisk/r|us⟩=|xkmod⁡N⟩.\frac{1}{\sqrt r} \sum_{s=0}^{r-1} e^{2\pi i sk/r}\, |u_s\rangle = |x^k \bmod N\rangle .(2)✦ If moreover N>1N > 1, then 1r∑s=0r−1|us⟩=|1⟩.\frac{1}{\sqrt r} \sum_{s=0}^{r-1} |u_s\rangle = |1\rangle .(3)✦

What Is Checked

The claim is stated over the eigenstates |us⟩|u_s\rangle of order finding, defined by the Fourier sum (1), and over the computational basis states of the qudit with NN levels: |xkmod⁡N⟩|x^k \bmod N\rangle at the remainder of xkx^k, and |1⟩|1\rangle.

The library also establishes that each |us⟩|u_s\rangle is a unit vector of ℂN\mathbb{C}^N, so that the sum (1) defines a pure state.