Quinn’s Mind Palace

Linear algebra knowledge review, with proofs (2)

The following exercises are from Chapter 2 of Quantum Computation and Quantum Information by Isaac Chuang & Michael Nielsen.


Cauchy–Schwarz inequality: |⟨v∣w⟩|2≤⟨v∣v⟩⟨w∣w⟩ for any two vectors |v⟩,|w⟩.

Proof 1: Construct |z⟩=|v⟩−λ|w⟩, where λ is any scalar in C.

Then 0≤⟨z∣z⟩=⟨v∣v⟩−λ*⟨w∣v⟩−λ⟨v∣w⟩+|λ|2⟨w∣w⟩.

Let λ=⟨w∣v⟩⟨w∣w⟩,

we get 0≤⟨v∣v⟩−⟨v∣w⟩⟨w∣v⟩⟨w∣w⟩−⟨w∣v⟩⟨v∣w⟩⟨w∣w⟩+|⟨w∣v⟩|2|⟨w∣w⟩|2⟨w∣w⟩

≤⟨v∣v⟩−|⟨v∣w⟩|2⟨w∣w⟩,

therefore |⟨v∣w⟩|2≤⟨v∣v⟩⟨w∣w⟩. QED.

Proof 2 (from the book): Construct an orthonormal basis |i⟩ such that the first member is |w⟩⟨w∣w⟩.

Using the completeness relation ∑i|i⟩⟨i|=I,

we have ⟨v∣v⟩⟨w∣w⟩=∑i⟨v∣i⟩⟨i∣v⟩⟨w∣w⟩.

Substitute |i⟩⟨i| with the first basis |w⟩⟨w∣w⟩⟨w|⟨w∣w⟩,

we have ⟨v∣v⟩⟨w∣w⟩≥⟨v∣w⟩⟨w∣v⟩⟨w∣w⟩⟨w∣w⟩=⟨v∣w⟩⟨w∣v⟩=|⟨v∣w⟩|2. QED.


Exercise 2.13: If |w⟩ and |v⟩ are any two vectors, show that (|w⟩⟨v|)†=|v⟩⟨w|.

Proof: (|w⟩⟨v|)†=[(|w⟩⟨v|)T]*=[⟨v∣w⟩]*=(⟨v|)*(|w⟩)*=|v⟩⟨w|. QED.

Note: Transpose reverses order, while conjugation swaps bras and kets (⟨v|≡|v⟩†).


Exercise 2.15: Show that (A†)†=A.

Proof: (A†)†={[(AT)*]T}*.

For each element, this means Aij→TAji→*Aji*→TAij*→*Aij.

Therefore (A†)†=A. QED.


An operator A that satisfies A†=A is known as a Hermitian or self-adjoint operator.

Projectors: Suppose W is a k-dimensional vector subspace of d-dimensional vector space V. Using the Gram-Schmidt procedure it is possible to construct an orthonormal basis |1⟩,…,|d⟩ for V such that |1⟩,…,|k⟩ is an orthonormal basis for W. By definition, the Hermitian operator P≡∑i=1k|i⟩⟨i| is the projector onto the subspace W.

The orthogonal complement of P is the Hermitian operator Q≡I−P, also a projector.


Exercise 2.16: Show that any projector P satisfies the equation P2=P.

Proof: P2=(∑i=1k|i⟩⟨i|)2=∑i=1k|i⟩⟨i∣i⟩⟨i|=∑i=1k|i⟩⟨i|=P. QED.


An operator A is said to be normal if AA†=A†A. Clearly, an operator which is Hermitian is also normal.


Spectral decomposition: Any normal operator M on a vector space V is diagonal with respect to some orthonormal basis for V. Conversely, any diagonalizable operator is normal.

Proof of the backward direction:

If M is diagonalizable, then M=∑iλi|i⟩⟨i| for some orthonormal basis |i⟩.

M†=∑iλi*|i⟩⟨i|,

MM†=∑iλiλi*|i⟩⟨i|i⟩⟨i|=∑i|λi|2|i⟩⟨i|,

M†M=∑iλi*λi|i⟩⟨i|i⟩⟨i|=∑i|λi|2|i⟩⟨i|.

Then MM†=M†M, therefore M is normal. QED.

Proof of the forward direction, by induction (from the book):

When dimension d=1, any operator on a 1D space is just a scalar:

M=λ|1⟩⟨1|.

When dimension d>1: Let λ be an eigenvalue of M, P the projector onto the λ-eigenspace, and Q the projector onto the orthogonal complement.

Then M=(P+Q)M(P+Q)=PMP+QMP+PMQ+QMQ.

In conclusion, M=λP+QMQ, where both λP and QMQ are diagonal.

Therefore, M is diagonal on the whole d-dimensional V. QED.


Exercise 2.17: Show that a normal matrix is Hermitian if and only if it has real eigenvalues.

Proof: A normal matrix A can be diagonalized: A=∑iλi|i⟩⟨i|.

Then A†=∑iλi*|i⟩⟨i|.

QED.


Simultaneous diagonalization theorem: Suppose A and B are Hermitian operators. Then [A,B]=0 if and only if there exists an orthonormal basis such that both A and B are diagonal with respect to that basis. We say that A and B are simultaneously diagonalizable in this case.

Proof of the backward direction:

Let |a,j⟩ be an orthonormal basis for the eigenspace Va of A with eigenvalue a.

Since A,B are diagonal with respect to the same orthonormal basis, each |a,j⟩ is also an eigenvector of B with some eigenvalue b.

Then [A,B]|a,j⟩≡(AB−BA)|a,j⟩

=AB|a,j⟩−BA|a,j⟩

=Ab|a,j⟩−Ba|a,j⟩

=ab|a,j⟩−ba|a,j⟩=0. QED.

Proof of the forward direction (from the book):

Let |a,j⟩ be an orthonormal basis for the eigenspace Va of A with eigenvalue a.

We know that AB|a,j⟩=BA|a,j⟩=aB|a,j⟩,

therefore B|a,j⟩ is an element of the eigenspace Va.

Let Pa denote the projector onto the space Va, define Ba≡PaBPa.

Ba†=(PaBPa)†=Pa†B†Pa†=PaBPa=Ba (Pa is projector ⇒ Hermitian; B is Hermitian given in the theorem statement), therefore Ba is Hermitian.

Therefore Ba has a spectral decomposition in terms of an orthonormal set of eigenvectors which span the space Va.

Let |a,b,k⟩ be this orthonormal set of eigenvectors, where indices a,b label the eigenvalues of A and Ba, and k is an extra index to account for possible multiple linearly independent eigenvectors with the same eigenvalue b that Ba has.

B|a,b,k⟩ is an element of Va, therefore B|a,b,k⟩=PaB|a,b,k⟩.

Also, Pa|a,b,k⟩=|a,b,k⟩. Therefore B|a,b,k⟩=PaB|a,b,k⟩=PaBPa|a,b,k⟩=b|a,b,k⟩.

Therefore |a,b,k⟩ is an eigenvector of B with eigenvalue b.

Therefore |a,b,k⟩ is an orthonormal set of eigenvectors of both A and B, and A,B are diagonal with respect to that basis. QED.

#Math notes