Lean, informalized

Nielsen & Chuang · Chapter 10, Quantum error-correction · p. 433

Exercise 10.6 - Applying Z1Z2Z3Z_1 Z_2 Z_3 restores the states (|000⟩±|111⟩)/2(|000\rangle \pm |111\rangle)/\sqrt{2} after a phase flip on one qubit

Undoing a phase flip on any of three qubits.

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

Three qubits are in one of the two states (|000⟩+|111⟩)/2(|000\rangle + |111\rangle)/\sqrt{2} and (|000⟩−|111⟩)/2(|000\rangle - |111\rangle)/\sqrt{2}. A phase flip ZZ strikes one of the three qubits, and which one is not known. Show that applying ZZ to every qubit, the operator Z1Z2Z3Z_1 Z_2 Z_3, returns the qubits to the state they started in, whichever qubit was flipped.✦

A Quantum System

A quantum system SS is given by its state space, a finite dimensional complex Hilbert space.✦ A pure state |ψ⟩|\psi\rangle of SS is a unit vector in the state space of SS, ‖ψ‖=1\lVert \psi \rVert = 1.✦ For a nonzero vector vv in the state space of SS, the normalized pure state of vv is the pure state of SS with vector v/‖v‖v / \lVert v \rVert.✦

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 the state spaces of SS and TT.✦ For pure states |ψ⟩|\psi\rangle of SS and |φ⟩|\varphi\rangle of TT, the product |ψ⟩⊗|φ⟩|\psi\rangle \otimes |\varphi\rangle is the pure state of S⊗TS \otimes T whose vector is the tensor product of the two vectors.✦

A unitary UU of SS 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 identity evolution of SS is the unitary of SS whose operator is the identity 11.✦ For unitaries UU of SS and 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 operators of UU and VV.✦

Three Qubits

The qubit is the quantum system whose state space is ℂ2\mathbb{C}^2.✦ 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 three qubit register is the composite system of three qubits.✦ For bits q1,q2,q3q_1, q_2, q_3 its basis state is the product |q1q2q3⟩=|q1⟩⊗|q2⟩⊗|q3⟩|q_1 q_2 q_3\rangle = |q_1\rangle \otimes |q_2\rangle \otimes |q_3\rangle, and these eight states form its computational basis.✦

The Pauli matrix ZZ is the two by two complex matrix Z=(100−1),Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix},(1)✦ and the Pauli ZZ gate, the phase flip, is the unitary of the qubit whose operator is the matrix (1) acting on ℂ2\mathbb{C}^2.✦ The phase flip ZiZ_i on qubit ii of the register is the product unitary with the Pauli ZZ gate on qubit ii and the identity evolution on the other two, Z1=Z⊗1⊗1,Z2=1⊗Z⊗1,Z3=1⊗1⊗Z,Z_1 = Z \otimes 1 \otimes 1, \qquad Z_2 = 1 \otimes Z \otimes 1, \qquad Z_3 = 1 \otimes 1 \otimes Z,(2)✦ and the recovery operator of the register is the product unitary of the register with the Pauli ZZ gate on each of the three qubits, Z1Z2Z3=Z⊗Z⊗Z.Z_1 Z_2 Z_3 = Z \otimes Z \otimes Z.(3)

For a bit σ\sigma, the block vector of σ\sigma is the vector |000⟩+(−1)σ|111⟩|000\rangle + (-1)^\sigma |111\rangle in the state space of the register✦, and the block state |cσ⟩|c_\sigma\rangle is the normalized pure state of the block vector, |cσ⟩=|000⟩+(−1)σ|111⟩2.|c_\sigma\rangle = \frac{|000\rangle + (-1)^\sigma |111\rangle}{\sqrt{2}}.(4)✦ The values σ=0\sigma = 0 and σ=1\sigma = 1 give the two states of the exercise.

The Claim

Theorem 1. Let σ\sigma be a bit and ii one of the three qubits of the register. The phase flip ZiZ_i followed by the recovery operator returns the block state |cσ⟩|c_\sigma\rangle to itself: (Z1Z2Z3)Zi|cσ⟩=|cσ⟩.(Z_1 Z_2 Z_3)\, Z_i \, |c_\sigma\rangle = |c_\sigma\rangle .(5)✦

What Is Checked

The claim is stated over the block states (4) of the three qubit register, over the three phase flips (2) and the recovery operator (3), which are product unitaries of the Pauli ZZ gate and the identity evolution, and over the action of a unitary on a pure state.

The library shows that the block vector |000⟩+(−1)σ|111⟩|000\rangle + (-1)^\sigma |111\rangle is nonzero for both values of σ\sigma, so the block state (4) is a pure state of the register.✦ The matrix (1) is unitary, and the tensor product of two unitaries is unitary, so the flips and the recovery operator are unitaries of the register. The norm of a product vector is the product of the norms, so a product of pure states is a pure state; a unitary preserves norms, so it carries a pure state to a pure state.