Lean, informalized

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

Problem 6.2 - One call to the oracle on half of a Bell pair and a Bell measurement name the reflection

Three reflection oracles told apart by one Bell measurement.

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 box applies one of three unitaries to a qubit, and we do not know which. Each is a reflection about a state of the qubit: about the basis state |1⟩|1\rangle, about the eigenstate |−⟩|-\rangle of the Pauli operator XX, or about the eigenstate |−i⟩|-i\rangle of YY. The box is used once. Two qubits are prepared in the Bell state |Φ+⟩|\Phi^+\rangle, the first of them is sent through the box, and the pair is measured in the Bell basis; the outcome of that one measurement is to name the box.

A second question compares the reflections about two states |φ⟩|\varphi\rangle and |ψ⟩|\psi\rangle of one system, when a unitary UU prepares |ψ⟩|\psi\rangle from |φ⟩|\varphi\rangle.

A Quantum System

A quantum system SS is a physical system whose state space is a finite dimensional complex Hilbert space.✦ The composite system S⊗TS \otimes T of two systems SS and TT is the quantum system whose state space is the tensor product of their state spaces.✦

A pure state |ψ⟩|\psi\rangle of SS is a unit vector in the state space of SS.✦ A state ρ\rho of SS is a positive operator of unit trace on the state space of SS, and a pure state |ψ⟩|\psi\rangle gives the state |ψ⟩⟨ψ||\psi\rangle\langle\psi|, the projector onto its vector. For pure states |ψ⟩|\psi\rangle of SS and |φ⟩|\varphi\rangle of TT, the product |ψ⟩|φ⟩|\psi\rangle|\varphi\rangle is the pure state of S⊗TS \otimes T whose vector is |ψ⟩⊗|φ⟩|\psi\rangle \otimes |\varphi\rangle.✦

The qubit is the quantum system whose state space is ℂ2\mathbb{C}^2 itself.✦ For a bit ii, its basis state |i⟩|i\rangle is the pure state whose vector is the standard basis vector eie_i of ℂ2\mathbb{C}^2.✦ The states |−⟩|-\rangle and |−i⟩|-i\rangle are the pure states of the qubit whose vectors are the columns |−⟩=12(1−1),|−i⟩=12(1−i).|-\rangle = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \\ -1 \end{pmatrix}, \qquad |-i\rangle = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \\ -i \end{pmatrix}.(1)

The Bell Basis

For bits xx and yy, the Bell state |βxy⟩|\beta_{xy}\rangle is the pure state of the composite system of two qubits whose vector is |βxy⟩=12(|0⟩|y⟩+(−1)x|1⟩|y‾⟩),|\beta_{xy}\rangle = \frac{1}{\sqrt{2}} \bigl( |0\rangle|y\rangle + (-1)^x\, |1\rangle|\bar y\rangle \bigr),(2)✦ where y‾\bar y is the flip of yy and |0⟩|y⟩|0\rangle|y\rangle and |1⟩|y‾⟩|1\rangle|\bar y\rangle are products of basis states. The four Bell states form the Bell basis, an orthonormal basis of the state space of two qubits indexed by the pairs (x,y)(x, y).✦ The Bell state |Φ+⟩|\Phi^+\rangle is the pure state of two qubits whose vector is |0⟩|0⟩+|1⟩|1⟩|0\rangle|0\rangle + |1\rangle|1\rangle divided by its norm 2\sqrt{2}.✦

Unitaries and Reflections

A unitary UU of a system SS is an operator on the state space of SS with U†U=UU†=IU^\dagger U = U U^\dagger = I, where II is the identity operator of that space.✦ A unitary UU of SS carries a pure state |ψ⟩|\psi\rangle of SS to the pure state U|ψ⟩U|\psi\rangle of SS.✦ For unitaries UU and VV of SS, the composite UVUV is the unitary of SS that applies VV first and then UU, and the adjoint U†U^\dagger is the unitary of SS whose operator is the adjoint of that of UU.

For a unitary UU of SS and a unitary VV of TT, the product unitary U⊗VU \otimes V is the unitary of S⊗TS \otimes T whose operator is the tensor product of the two.✦ For a unitary UU of SS and the identity II of TT, the gate U⊗IU \otimes I is the unitary of S⊗TS \otimes T that applies UU to the first system and leaves the second alone.✦

For a pure state |ψ⟩|\psi\rangle of SS, the reflection UψU_\psi about |ψ⟩|\psi\rangle is the unitary of SS Uψ=I−2|ψ⟩⟨ψ|.U_\psi = I - 2\,|\psi\rangle\langle\psi| .(3)✦ The three oracles, numbered 00, 11 and 22, are the reflections of the qubit about |1⟩|1\rangle, |−⟩|-\rangle and |−i⟩|-i\rangle: O0=I−2|1⟩⟨1|,O1=I−2|−⟩⟨−|,O2=I−2|−i⟩⟨−i|.O_0 = I - 2\,|1\rangle\langle 1|, \qquad O_1 = I - 2\,|-\rangle\langle -|, \qquad O_2 = I - 2\,|-i\rangle\langle -i| .(4)

For j∈{0,1,2}j \in \{0, 1, 2\}, the state |ψj⟩|\psi_j\rangle of two qubits after the oracle OjO_j is the pure state obtained from |Φ+⟩|\Phi^+\rangle by the gate Oj⊗IO_j \otimes I on the first qubit: |ψj⟩=(Oj⊗I)|Φ+⟩.|\psi_j\rangle = (O_j \otimes I)\,|\Phi^+\rangle .(5)✦

The Bell Measurement

A measurement MM on a system 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, satisfying the completeness relation ∑iMi†Mi=I\sum_i M_i^\dagger M_i = I.✦ The positive operator valued measure (POVM) of a measurement MM on SS is the family of effects Ei=Mi†MiE_i = M_i^\dagger M_i, one for each outcome ii, and the probability of ii when MM is performed on a state ρ\rho of SS is the Born rule value p(i)=Tr⁡(Eiρ)=Tr⁡(MiρMi†).p(i) = \operatorname{Tr}(E_i \rho) = \operatorname{Tr}(M_i \rho M_i^\dagger) .(6)

The projective measurement in an orthonormal basis {|bi⟩}\{|b_i\rangle\} of SS is the measurement whose operator for the outcome ii is the projector |bi⟩⟨bi||b_i\rangle\langle b_i|.✦ The Bell measurement is the projective measurement of two qubits in the Bell basis: its outcomes are the pairs (x,y)(x, y) of bits, and the operator of (x,y)(x, y) is |βxy⟩⟨βxy||\beta_{xy}\rangle\langle\beta_{xy}|.✦

The Bell outcome of the oracle OjO_j is the pair of bits (xj,yj)(x_j, y_j) given by (x0,y0)=(1,0),(x1,y1)=(0,1),(x2,y2)=(1,1).(x_0, y_0) = (1, 0), \qquad (x_1, y_1) = (0, 1), \qquad (x_2, y_2) = (1, 1).(7)✦

The Claim

Theorem 1. Let j∈{0,1,2}j \in \{0, 1, 2\}, let the oracle OjO_j act on the first qubit of |Φ+⟩|\Phi^+\rangle, and let the Bell measurement be performed on the resulting state |ψj⟩⟨ψj||\psi_j\rangle\langle\psi_j|. Then for each i∈{0,1,2}i \in \{0, 1, 2\} the Bell outcome (xi,yi)(x_i, y_i) of the oracle OiO_i has probability p((xi,yi))={1if i=j,0if i≠j.p\bigl((x_i, y_i)\bigr) = \begin{cases} 1 & \text{if } i = j, \\ 0 & \text{if } i \neq j. \end{cases}(8)✦

The three outcomes (7) are distinct, so the one Bell measurement names the box.

Theorem 2. Let UU be a unitary of a quantum system SS, and let |φ⟩|\varphi\rangle and |ψ⟩|\psi\rangle be pure states of SS with U|φ⟩=|ψ⟩U|\varphi\rangle = |\psi\rangle. Then the reflections (3) about the two states satisfy Uψ=UUφU†.U_\psi = U\, U_\varphi\, U^\dagger .(9)✦

What Is Checked

The first claim is stated over the Born probabilities (6) of the Bell measurement on the states (5), each the oracle (4) applied to the first qubit of |Φ+⟩|\Phi^+\rangle, at the outcomes (7). The second is stated over the reflection (3), the action of a unitary on a pure state, and the composite and the adjoint of unitaries.

Of these constructions the library proves that each Bell vector (2) has unit norm, that the four are orthonormal, and that their number equals the dimension 44 of the state space of two qubits, so that they form a basis. The projectors onto an orthonormal basis satisfy the completeness relation, the effects Mi†MiM_i^\dagger M_i are positive and sum to II, and |ψ⟩⟨ψ||\psi\rangle\langle\psi| is a density operator. The reflection UψU_\psi, the product U⊗VU \otimes V, the composite UVUV and the adjoint U†U^\dagger are unitary, while |Φ+⟩|\Phi^+\rangle, the states (1), U|ψ⟩U|\psi\rangle and the product |ψ⟩|φ⟩|\psi\rangle|\varphi\rangle are unit vectors.