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: |vw|2vvww for any two vectors |v,|w.

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

Then 0zz=vvλ*wvλvw+|λ|2ww.

Let λ=wvww,

we get 0vvvwwvwwwvvwww+|wv|2|ww|2ww

vv|vw|2ww,

therefore |vw|2vvww. QED.

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

Using the completeness relation i|ii|=I,

we have vvww=iviivww.

Substitute |ii| with the first basis |wwww|ww,

we have vvwwvwwvwwww=vwwv=|vw|2. QED.


Exercise 2.13: If |w and |v are any two vectors, show that (|wv|)=|vw|.

Proof: (|wv|)=[(|wv|)T]*=[vw]*=(v|)*(|w)*=|vw|. 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 AijTAji*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 Pi=1k|ii| is the projector onto the subspace W.

The orthogonal complement of P is the Hermitian operator QIP, also a projector.


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

Proof: P2=(i=1k|ii|)2=i=1k|iiii|=i=1k|ii|=P. QED.


An operator A is said to be normal if AA=AA. 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|ii| for some orthonormal basis |i.

M=iλi*|ii|,

MM=iλiλi*|ii|ii|=i|λi|2|ii|,

MM=iλi*λi|ii|ii|=i|λi|2|ii|.

Then MM=MM, 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=λ|11|.

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|ii|.

Then A=iλi*|ii|.

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(ABBA)|a,j

=AB|a,jBA|a,j

=Ab|a,jBa|a,j

=ab|a,jba|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 BaPaBPa.

Ba=(PaBPa)=PaBPa=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.

#Mathematics