Introduction To Quantum Computing
Introduction To Quantum Computing
Computing
Exercise sheet 1: linear algebra primer
University of Copenhagen
Exercise 1: (Scalar product and unitary matrices) Recall that given two vectors
C
v, w ∈ d their scalar product hv|wi is defined as:
d
X
hv|wi = v̄i wi .
i=1
Also recall that the norm of the vector v, kvk, is defined as kvk2 = hv|vi. For a matrix
C
A ∈ d1 ×d2 , we define its adjoint matrix A∗ to be given by the d2 × d1 matrix with
C
entries (A∗ )i,j = Āj,i . A matrix U ∈ d×d is called unitary if U ∗ U = I. where I is the
identity matrix.
(a) Let
1 2 − 2i
v = 1 + i , w = (1 − i)−1 .
π
2ei 4 −5
Compute hv|wi.
R, |a|2 + |b|2 = 1
a b
U= , ϕ∈
−eiϕ b̄ eiϕ ā
is unitary.
Av = λv.
The vector v is called an eigenvector. The matrix A is called diagonalizable if there exist
a diagonal matrix D and invertible matrix X such that:
A = XDX −1 .
i.e. find X and D diagonal such that A = XDX −1 . Can you pick X unitary?
Compute A42 .
(e) Show that eigenvalues of unitary matrices are complex number of modulus 1.
Exercise 3: (Trace) Recall that the trace of a matrix A ∈ Cd×d, tr (A), is defined as
d
X
tr (A) = Aii .
i=1
tr (ABC) = tr (BCA)
2
(a) Let A ∈ Cd×d be Hermitian. Show that
n
X
tr (A) = λi ,
i=1
(A, B) 7→ tr (A∗ B)
hx|Axi ≥ 0.
C
A hermitian matrix ρ ∈ d×d is called a density matrix if in addition to it being positive
semidefinite we have tr (ρ) = 1.
(a) Show that A being positive semidefinite is equivalent to A only having positive
eigenvalues.
where I is the identity matrix. Given a density matrix ρ, define the function p :
R
{1, . . . , m} → by p(i) = tr (Pi ρ). Show that p is probability distribution, that is:
m
X
∀i : p(i) ≥ 0 and p(i) = 1.
i=1