Lean, informalized

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

Exercise 5.2 - The quantum Fourier transform of |00…0⟩|00\ldots0\rangle on nn qubits and of |0⟩|0\rangle on any qudit

The Fourier transform sends zero to the uniform superposition.

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

A register of nn qubits is prepared in the state |00…0⟩|00\ldots0\rangle, every qubit in |0⟩|0\rangle. The exercise asks for the state the quantum Fourier transform makes of it, written out explicitly in the computational basis of the register.

The library answers it for a system with any number dd of levels, the register being the case d=2nd = 2^n.

A Quantum System

A quantum system SS is a physical system whose state space is a finite dimensional complex Hilbert space; any such space HH is the state space of a system, the one modelled on HH. A pure state |ψ⟩|\psi\rangle of SS is a unit vector in the state space of SS, ‖ψ‖=1\lVert \psi \rVert = 1, determined physically up to a global phase.✦ A unitary UU of SS, an evolution of SS as a closed system, is an operator on the state space of SS with U†U=UU†=1U^\dagger U = U U^\dagger = 1.✦ It carries a pure state |ψ⟩|\psi\rangle of SS to the pure state U|ψ⟩U|\psi\rangle.✦

The qudit with dd levels is the system modelled on ℂd\mathbb{C}^d with its standard inner product.✦ A qubit is the qudit with two levels. For a level i∈{0,…,d−1}i \in \{0, \ldots, d-1\}, the computational basis state |i⟩|i\rangle of the qudit is the pure state whose vector is the standard basis vector of ℂd\mathbb{C}^d with entry 11 at ii and 00 elsewhere.✦ On the register, |0⟩|0\rangle is the state |00…0⟩|00\ldots0\rangle of the exercise.

For d≥1d \geq 1, the uniform superposition |s⟩|s\rangle of the qudit with dd levels is the pure state |s⟩=1d∑k=0d−1|k⟩.|s\rangle = \frac{1}{\sqrt d} \sum_{k=0}^{d-1} |k\rangle .(1)✦

The Fourier Transform

Let ω=e2πi/d\omega = e^{2\pi i/d} be the primitive ddth root of unity.✦ The Fourier matrix of dimension dd is the d×dd \times d complex matrix FF with entries Fkj=1dωjk,j,k=0,…,d−1.F_{kj} = \frac{1}{\sqrt d}\, \omega^{jk}, \qquad j, k = 0, \ldots, d-1 .(2)✦ For d≥1d \geq 1, the quantum Fourier transform FF of the qudit with dd levels is the unitary of the qudit whose matrix in the computational basis is the Fourier matrix: it carries |j⟩|j\rangle to ∑kFkj|k⟩\sum_k F_{kj} |k\rangle.✦

The Claim

Theorem 1. Let d≥1d \geq 1. The quantum Fourier transform of the qudit with dd levels carries the basis state |0⟩|0\rangle to the uniform superposition: F|0⟩=|s⟩.F|0\rangle = |s\rangle .(3)✦ For every nn, the quantum Fourier transform of a register of nn qubits carries |00…0⟩|00\ldots0\rangle to the uniform superposition of its 2n2^n basis states: F|00…0⟩=12n∑k=02n−1|k⟩.F|00\ldots0\rangle = \frac{1}{\sqrt{2^n}} \sum_{k=0}^{2^n-1} |k\rangle .(4)✦

What Is Checked

The claim is stated over the quantum Fourier transform FF of the qudit, built from the Fourier matrix (2) and the root ω\omega and applied to the basis state |0⟩|0\rangle, and over the uniform superposition (1).

The library proves that the Fourier matrix is unitary, which makes the transform a unitary of the qudit. It proves that the uniform superposition has unit norm, since the sum of the dd basis vectors has norm d\sqrt d.