Quantum Computing: Review of Linear Algebra
Quantum Computing: Review of Linear Algebra
Quantum Computing: Review of Linear Algebra
Quantum Computing
Lecture 2
Anuj Dawar
Vectors
α|0i + β|1i
1 0
where, |0i = and |1i = .
0 1
Linear Algebra
Vector Spaces
Cn
α1
n
.
C is the vector space of n-tuples of complex numbers: .. .
αn
α1 β1 α1 + β1
. .. .
with addition . ..
. + . =
αn βn αn + βn
α1 zα1
. .
and scalar multiplication z . .
. = .
αn zαn
6
Basis
Bases for Cn
1 0 0
0 1 0
The standard basis for Cn is , ,...,
.. .. ..
.
.
.
0 0 1
(written |0i, . . . , |n − 1i).
" # " #
3 4
But other bases are possible: , is a basis for C2 .
2 −i
Linear Operators
Matrices
Examples
" # " #
1
◦
1 √
A 45 rotation of the real plane that takes to 1
2
and
0 √
2
" # " #
0 − √12
to 1
is represented, in the standard basis by the
1 √
2
matrix
√1 − √12
2
√1 √1
2 2
0 −i
The operator does not correspond to a transformation
i 0
of the real plane.
11
Inner Products
hu|vi.
Inner Product on Cn
X
hu|vi = u∗i vi
i
Note: hu| is a bra, which together with |vi forms the bra-ket hu|vi.
13
Norms
the term Hilbert space is also used for an inner product space
14
Outer Product
X
A= Aij |iihj|.
ij
15
Eigenvalues
Diagonal Representation
Adjoints
†
1+i 1−i 1 − i −1
=
−1 1 1+i 1
18
AA† = A† A
A is said to be Hermitian if A = A†
Unitary Operators
AA† = A† A = I
hAu|Avi = hu|vi
Tensor Products
Tensor Products
In matrix terms,
A B A12 B ··· A1m B
11
A21 B A22 B · · · A2m B
A⊗B =
.. .. ..
. . .
Am1 B Am2 B · · · Amm B