Quinn’s Mind Palace

Linear algebra knowledge review, with proofs (1)

The following exercises are from Chapter 1-2 of Quantum Computation and Quantum Information by Isaac Chuang & Michael Nielsen. A lot of linear algebra knowledge, but then again, reviewing them again really made me appreciate the elegance of maths and proofs. So I should probably continue onwards in the next few days.

Rants: Don't like how limited MathML can be — they don't even support commands from the physics package. Had to manually replace those \ket{v} with |v\rangle for them to render properly. And they are still rendered pretty badly. Anyway!


Important notations:


Exercise 2.47: Suppose A and B are Hermitian. Show that i[A,B] is Hermitian.

Proof: (i[A,B])†=(iAB−iBA)†

=−iB†A†+iA†B†

=−iBA+iAB

=iAB−iBA=i[A,B]. QED.


Gram–Schmidt procedure: a procedure to produce an orthonormal basis set. Suppose |w1⟩,…,|wd⟩ is a basis set, then define

|v1⟩≡|w1⟩‖|w1⟩‖,

|vk+1⟩≡|wk+1⟩−∑i=1k⟨vi∣wk+1⟩|vi⟩‖|wk+1⟩−∑i=1k⟨vi∣wk+1⟩|vi⟩‖, where 1≤k≤d−1.

Proof by induction:

When k=1, |v1⟩≡|w1⟩‖|w1⟩‖ is normalized, therefore is a unit vector with ⟨v1∣v1⟩=1. {|v1⟩} is orthonormal.

When k>1, assume {|v1⟩,…,|vk⟩} are orthonormal.

Let |vk+1′⟩≡|wk+1⟩−∑i=1k⟨vi∣wk+1⟩|vi⟩,

For j≤k we have ⟨vj∣vk+1′⟩=⟨vj∣wk+1⟩−∑i=1k⟨vi∣wk+1⟩⟨vj∣vi⟩⏟δij

=⟨vj∣wk+1⟩−⟨vj∣wk+1⟩=0.

By the way ‖|vk+1′⟩‖≠0. By contradiction, if ‖|vk+1′⟩‖=0, then |wk+1⟩=∑i=1k⟨vi∣wk+1⟩|vi⟩ meaning |wk+1⟩ is in span{|v1⟩,…,|vk⟩}=span{|w1⟩,…,|wk⟩}, contradicting that {|w1⟩,…,|wk⟩,|wk+1⟩} is a basis set.

Therefore, by normalization we get |vk+1⟩≡|vk+1′⟩‖|vk+1′⟩‖ which is a unit vector that satisfies ⟨vj∣vk+1⟩=δj,k+1. {|v1⟩,…,|vk⟩,|vk+1⟩} are orthonormal. QED.


Pauli matrices:

σ0≡I≡[1001],

σ1≡σx≡X≡[0110],

σ2≡σy≡Y≡[0−ii0],

σ3≡σz≡Z≡[100−1].


Exercise 2.9: (Pauli operators and the outer product) The Pauli matrices can be considered as operators with respect to an orthonormal basis |0⟩,|1⟩ for a two-dimensional Hilbert space. Express each of the Pauli operators in the outer product notation.

With the knowledge of

|0⟩⟨0|=[10][10]=[1000],

|0⟩⟨1|=[10][01]=[0100],

|1⟩⟨0|=[01][10]=[0010],

|1⟩⟨1|=[01][01]=[0001],

We can write

I=|0⟩⟨0|+|1⟩⟨1| ,

X=|0⟩⟨1|+|1⟩⟨0|,

Y=−i|0⟩⟨1|+i|1⟩⟨0|,

Z=|0⟩⟨0|−|1⟩⟨1| .


Exercise 2.10: Suppose |vi⟩ is an orthonormal basis for an inner product space V. What is the matrix representation for the operator |vj⟩⟨vk|, with respect to the |vi⟩ basis?

Similar to Exercise 2.9, we can see that |vj⟩⟨vk| is an array whose element at row j, column k is 1 and 0 otherwise.


Commutation relations for the Pauli matrices:

XY=(|0⟩⟨1|+|1⟩⟨0|)(−i|0⟩⟨1|+i|1⟩⟨0|)

=i|0⟩⟨1∣1⟩⟨0|−i|1⟩⟨0∣0⟩⟨1|

=i|0⟩⟨0|−i|1⟩⟨1|=iZ,

YX=(−i|0⟩⟨1|+i|1⟩⟨0|)(|0⟩⟨1|+|1⟩⟨0|)

=−i|0⟩⟨1∣1⟩⟨0|+i|1⟩⟨0∣0⟩⟨1|

=−i|0⟩⟨0|+i|1⟩⟨1|=−iZ,

Therefore [X,Y]=XY−YX=2iZ.

Similarly, [Y,Z]=YZ−ZY=2iX,

[Z,X]=ZX−XZ=2iY.


Anti-commutation relations for the Pauli matrices:

{X,Y}=XY+YX=0,

Similarly, {Y,Z}={Z,X}=0.


X2=XX=(|0⟩⟨1|+|1⟩⟨0|)(|0⟩⟨1|+|1⟩⟨0|)

=|0⟩⟨0|+|1⟩⟨1|=I.

Similarly, Y2=Z2=I.


A diagonal representation for an operator A is a representation A=∑iλi|i⟩⟨i| where the vectors |i⟩ form an orthonormal set of eigenvectors for A with corresponding eigenvalues λi.


Common one-qubit states:

|+⟩=12|0⟩+12|1⟩=12[11],

|−⟩=12|0⟩−12|1⟩=12[1−1],

|+i⟩=12|0⟩+i2|1⟩=12[1i],

|−i⟩=12|0⟩−i2|1⟩=12[1−i].


Exercise 2.11: (Eigendecomposition of the Pauli matrices) Find the eigenvectors, eigenvalues, and diagonal representations of the Pauli matrices X,Y , and Z.

For Pauli X:

For Pauli Y:

For Pauli Z:

#Math notes