Lean, informalized

Nielsen & Chuang · Chapter 4, Quantum circuits · p. 187

Exercise 4.33 - A CNOT and a Hadamard turn a computational basis measurement into a Bell measurement

A circuit that measures in the Bell basis.

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

Two qubits are to be measured in the Bell basis, the orthonormal basis of the four Bell states. A quantum circuit reads its qubits in the computational basis, so a measurement in another orthonormal basis is made by first applying a unitary that carries that basis onto the computational one. For the Bell basis the unitary is a controlled NOT (CNOT), with the first qubit as control, followed by a Hadamard on the first qubit. The exercise is to show that this circuit, followed by a reading of both qubits in the computational basis, performs the measurement in the Bell basis: the elements of its positive operator valued measure (POVM) are the four projectors onto the Bell states.

Two Qubits

A quantum system SS is a physical object whose state space is a finite dimensional complex Hilbert space.✦ A pure state ψ\psi of SS is a unit vector in the state space of SS, ‖ψ‖=1\lVert \psi \rVert = 1, determined physically up to a global phase.✦ The composite system S⊗TS \otimes T of two quantum systems SS and TT is the quantum system whose state space is the tensor product of their state spaces.✦ For pure states ψ\psi of SS and φ\varphi of TT, the product state ψ⊗φ\psi \otimes \varphi is the pure state of S⊗TS \otimes T whose vector is the tensor product of the two vectors.✦

The qubit is the quantum system whose state space is ℂ2\mathbb{C}^2.✦ For a bit ii, the basis state |i⟩|i\rangle of the qubit is the pure state whose vector is the standard basis vector eie_i of ℂ2\mathbb{C}^2; |0⟩|0\rangle and |1⟩|1\rangle are the computational basis states.✦ On two qubits the product of |x⟩|x\rangle and |y⟩|y\rangle is written |xy⟩|xy\rangle.

Gates

A unitary UU of a quantum system SS is an evolution of SS as a closed system: an operator on the state space of SS with U†U=UU†=1U^\dagger U = U U^\dagger = 1.✦ For unitaries UU and VV of the same system, UU after VV is the unitary UVUV, in which VV acts first.✦ For a unitary UU of SS and a unitary VV of a system 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 operators.✦ The gate UU on the first wire of S⊗TS \otimes T is the product U⊗1U \otimes 1 of UU with the identity evolution of TT, the unitary whose operator is the identity.✦

The Hadamard HH and the Pauli XX, the quantum NOT, are the unitaries of the qubit whose matrices in the computational basis are H=12(111−1),X=(0110).H = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}, \qquad X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}.(1)

For a unitary VV of a system SS, the controlled gate C(V)C(V) is the unitary of the composite of a control qubit and the target SS given by C(V)=|0⟩⟨0|⊗1+|1⟩⟨1|⊗V.C(V) = |0\rangle\langle 0| \otimes 1 + |1\rangle\langle 1| \otimes V.(2)✦ The CNOT is the controlled gate C(X)C(X) on two qubits: it flips the second qubit exactly when the first is |1⟩|1\rangle.✦ The circuit of the exercise is the unitary of two qubits U=(H⊗1)CNOT.U = (H \otimes 1)\,\mathrm{CNOT}.(3)✦

The Bell Basis

For bits xx and yy, the Bell vector |βxy⟩|\beta_{xy}\rangle is the vector of the state space of two qubits |βxy⟩=12(|0y⟩+(−1)x|1y‾⟩),|\beta_{xy}\rangle = \frac{1}{\sqrt{2}} \big( |0y\rangle + (-1)^x |1\bar{y}\rangle \big),(4)✦ where y‾=y+1mod⁡2\bar{y} = y + 1 \bmod 2 is the flip of yy. For bits xx and yy, the Bell state |βxy⟩|\beta_{xy}\rangle is the pure state of two qubits whose vector is the Bell vector |βxy⟩|\beta_{xy}\rangle of (4).✦ Written out, the four Bell states are |β00⟩=12(|00⟩+|11⟩),|β01⟩=12(|01⟩+|10⟩),|β10⟩=12(|00⟩−|11⟩),|β11⟩=12(|01⟩−|10⟩).\begin{aligned} |\beta_{00}\rangle &= \tfrac{1}{\sqrt{2}} \big( |00\rangle + |11\rangle \big), & |\beta_{01}\rangle &= \tfrac{1}{\sqrt{2}} \big( |01\rangle + |10\rangle \big), \\ |\beta_{10}\rangle &= \tfrac{1}{\sqrt{2}} \big( |00\rangle - |11\rangle \big), & |\beta_{11}\rangle &= \tfrac{1}{\sqrt{2}} \big( |01\rangle - |10\rangle \big). \end{aligned}(5) The Bell basis is the orthonormal basis of the state space of two qubits formed by the four Bell states, indexed by the pairs (x,y)(x, y).✦

Measurements

A measurement on a quantum 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, that satisfies the completeness relation ∑iMi†Mi=1.\sum_i M_i^\dagger M_i = 1.(6)✦ The POVM of a measurement assigns to the outcome ii the element Ei=Mi†MiE_i = M_i^\dagger M_i.✦ The projective measurement in an orthonormal basis {|bi⟩}\{|b_i\rangle\} of the state space 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 in the Bell basis, with the pairs of bits as outcomes: Mxy=|βxy⟩⟨βxy|.M_{xy} = |\beta_{xy}\rangle\langle \beta_{xy}|.(7)✦

The Claim

Theorem 1. Let xx and yy be bits and UU the circuit (3). For the outcome xyxy, the measurement operator of the Bell measurement is Mxy=U†|xy⟩⟨xy|U,M_{xy} = U^\dagger |xy\rangle\langle xy|\, U,(8)✦ and its POVM element is Exy=|βxy⟩⟨βxy|.E_{xy} = |\beta_{xy}\rangle\langle \beta_{xy}|.(9)✦

What Is Checked

The claim is stated over the Bell measurement (7) with its POVM, and over the circuit UU of (3).

For these constructions the library proves that each Bell vector (4) has unit norm and that the four Bell states are orthonormal, ⟨βxy|βx′y′⟩=δxx′δyy′\langle \beta_{xy} | \beta_{x'y'} \rangle = \delta_{xx'}\,\delta_{yy'}. The projectors onto the vectors of an orthonormal basis satisfy the completeness relation (6), each projector PP having P†P=PP^\dagger P = P and the projectors summing to the identity. On the side of the circuit, the controlled gate (2) is unitary for every unitary VV, and so are the matrices (1). Tensor products and composites of unitaries are again unitary.