Lean, informalized

Nielsen & Chuang · Chapter 6, Quantum search algorithms · p. 270

Exercise 6.16 - A lower bound of N/8\sqrt{N}/8 oracle calls for a search that succeeds with probability one half on average over the marked item

Search with average success needs order N\sqrt{N} queries.

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 search space holds NN items, one of which, xx, is marked, and a quantum computer is to find it. Its register has one basis state for each item, and it learns about xx only by calling an oracle, a unitary that depends on xx. A search algorithm prepares a starting state, alternates kk oracle calls with unitaries of its own that do not depend on xx, and measures the register in the basis of items; it succeeds when the outcome is xx.

The demand on the algorithm is weak. Its probability of success need not reach one half for every marked item, only on average over the NN items: it may fail on some items as long as it succeeds often enough on the others. The exercise is to show that even so the number of oracle calls must grow like N\sqrt{N}.

A Quantum System

A quantum system SS is a physical object whose state space is a finite dimensional complex Hilbert space.✦ A state ρ\rho of SS is a positive operator of unit trace on the state space of SS.✦ A pure state |ψ⟩|\psi\rangle of SS is a unit vector in the state space of SS, and it determines the state |ψ⟩⟨ψ||\psi\rangle\langle\psi| of SS, the projector onto |ψ⟩|\psi\rangle. A unitary UU of SS, a closed evolution of SS, is an operator on the state space of SS with U†U=UU†=1U^\dagger U = U U^\dagger = 1.✦

A measurement on SS with a finite set of outcomes is a family of measurement operators MiM_i on the state space of SS, one for each outcome ii, that satisfy the completeness relation ∑iMi†Mi=1.\sum_i M_i^\dagger M_i = 1 .(1)✦ The positive operator valued measure (POVM) of a measurement {Mi}\{M_i\} on SS consists of the effects Ei=Mi†MiE_i = M_i^\dagger M_i, one for each outcome ii. When the measurement is performed on a state ρ\rho, the outcome ii occurs with the probability given by the Born rule, p(i)=Tr⁡(MiρMi†)=Tr⁡(Eiρ).p(i) = \operatorname{Tr}\bigl(M_i \rho M_i^\dagger\bigr) = \operatorname{Tr}(E_i \rho) .(2)✦ The projective measurement of SS in an orthonormal basis {|bi⟩}\{|b_i\rangle\} is the measurement whose operator for the outcome ii is the projector |bi⟩⟨bi||b_i\rangle\langle b_i|.✦

The Search Problem

A quantum search problem on SS with NN items is an orthonormal basis |0⟩,…,|N−1⟩|0\rangle, \dots, |N-1\rangle of the state space of SS, the vector |x⟩|x\rangle standing for the item xx.✦ When xx is the item sought, the marked state |x⟩|x\rangle is the pure state given by its basis vector.✦ The search measurement is the projective measurement in this basis; its outcome is the item found.✦

An algorithm starts from a pure state |ψ⟩|\psi\rangle of SS and has a sequence of unitaries U0,U1,…U_0, U_1, \dots of SS. For a pure state |v⟩|v\rangle of SS, the state after kk oracle queries is |ψk⟩|\psi_k\rangle, defined by |ψ0⟩=|ψ⟩,|ψj+1⟩=UjOv|ψj⟩,|\psi_0\rangle = |\psi\rangle , \qquad |\psi_{j+1}\rangle = U_j \, O_v \, |\psi_j\rangle ,(3)✦ where the oracle OvO_v is the reflection that reverses the sign of |v⟩|v\rangle and leaves every vector orthogonal to |v⟩|v\rangle unchanged, a unitary of SS. Taking the marked state |x⟩|x\rangle for |v⟩|v\rangle gives the state |ψkx⟩|\psi^x_k\rangle of the algorithm after kk calls to the oracle OxO_x.✦ The search measurement on |ψkx⟩⟨ψkx||\psi^x_k\rangle\langle\psi^x_k| finds the marked item with the probability that (2) assigns to the outcome xx, pk(x)=|⟨x|ψkx⟩|2.p_k(x) = |\langle x | \psi^x_k \rangle|^2 .(4)

The Claim

Theorem 1. Let SS be a quantum system carrying a search problem with N≥21N \geq 21 items, let |ψ⟩|\psi\rangle be a pure state of SS, let U0,U1,…U_0, U_1, \dots be unitaries of SS, and let kk be a natural number. Suppose that the probability (4) of finding the marked item after kk oracle calls, averaged uniformly over the NN items, is at least one half: 1N∑x=0N−1pk(x)≥12.\frac{1}{N} \sum_{x=0}^{N-1} p_k(x) \geq \frac{1}{2} .(5) Then k≥N8.k \geq \frac{\sqrt{N}}{8} .(6)✦

What Is Checked

The claim is stated over a quantum search problem and its search measurement, a starting pure state, the unitaries UjU_j and the oracle calls of (3) that produce the states |ψkx⟩|\psi^x_k\rangle, and the Born probabilities (4) of finding each marked item.

The library proves that the projectors onto the vectors of an orthonormal basis satisfy the completeness relation (1), so that the search measurement is a measurement, and that the Born probabilities of any measurement form a probability distribution. Each vector of an orthonormal basis has unit norm, which makes the marked state |x⟩|x\rangle a pure state. The projector onto a unit vector is a density operator, and so each |ψkx⟩⟨ψkx||\psi^x_k\rangle\langle\psi^x_k| is a state.