Lecture Script Iqc w2023
Lecture Script Iqc w2023
2. Basic concepts
classical bit O 1
superposition of 0 1
Quantum bit qubit
described as
quantum state 14
is
a
a 107 Pll a Bea
14
with la t Ipl 1 I normalization
4 ed with
Mathematical description
10
113 19
m 14 Y
Different from classical bits i cannot in general
observe measure a qubit the amplitudes a and B
directly
standard measurement will result in
Instead
0 with probability al
with probability 1,112
n
the qubit wavefunction
also changes
The measurement collapse
O the qubit will be 147 10
If measuring the measurement and likewise
after
directly
qubit will be 14 113
if measuring 1
can estimate the probabilities lol ad PR
I practice
in experiments by repeating the same experiment
times via the outcome statistics
many
repetitions are called trials er shots
The
Circuit notation
14 MT classical information
realizations
what is a qubit physically Many possible e.g
are
10 and 11
of a photon e.g left right circular
two different polarizations
nuclear or electronicspin p I
alignment of a
excited state of an atom
ground state or
angle I e IR such
a cos I B sin f Tik s
lat't list cost t si er
I
3 general represent
a it cos E
p ei rt'd si E
so called phase angles y for a
using
and 8 4 for P
I
on the surface of a sphere
at the poles
25.10.2023
2.2 Single qubit gates
Examples
of the classical NOT gate 11
quantum analogue o
is a vector of 2 2 matrices
Hadamard gate
H
Tate T
l ÉÉÉ
Note T S f si se eine ait i
Ue k there exist
For any unitary matrix
IR such that
real numbers a P r S
e
in o
e
U eia o
Th
2.3 Multiple qubits
vector spaces
tensor product of 8.11.202
V and W
Can combine two arbitrary vector spaces
W
to form the tensor product V
see handout
vector_space_tensor_product.pdf
Generalization to n qubits 2 computational basis states
10 011 10 107 h m
Mjg all bit strings of length u
If a Ix
lo 2 i such that
with axe f for all e
1114711
É last I 1 normalization
can be expressed as
all be 0,1
A la atb for a
lab addition modulo 2
circuit notation
la la
Hs I la b
Matrix representation o o o
Marot
Pauli X
unitary
Alternative sircuit notation I it
Can generalize Pauli X to any unitary operator U E K
target qubit controlled U gate
acting on is
Example controlled Z
n
z
Exertise show that centrolled Z gate is invariant
when flipping control and target qubits
target qubits
Controlled U for multiple
control
target 1
qubit and snot gates are universal they can
Note single
operation on n qubit
be used to implement an arbitrary unitary
classical NANOgate
Quantum analogue of universality of
Nielsen and Chuong section 4.5
proof in
time
Matrix Kronecker products matrix representation of
single qubit gates i parallel
anting
A
B
iffy
Example A I identity B Y
1007 i 101
10701441
1011 A 107 i 100
1141
110 is 117 y 1071 i 111
1111 H 17 14471 i 110
Matrix representation
I
Y 1 1 ex
Y 212
General formula Kronecker product matrix representation of
tensor products of operators
an B an B and
an B a B B
e empty
Ao B
In B am B amnB
NumPy
AB
Ent ane npKron
for A f Be
Generalize to arbitrary number of tensor factors e.g
la A
lb B E ADB C
s C BOC
B C A
a bc
000
O o 1
0 10
Basic properties
elementwise complex conjugation
a B A 13
Kl A BIT At Bt
associative property
d ADB C A B C
I A IA c 0113.0 for matrines of
3
matrix watt compatible dimensions
I
I
I IEEE
matures is Hermitian
I Kronecker product of Hermitian
matrices
9 Kronecker product of unitary is unitary
and et
follows from s
2.5 Quantum measurement 15.11.2023
14 Teassical data
measurenet ont ion O or 1
alternative notation
attYw iEtitonioeeaps.l
ftp.tjjt
14
measurement basis
Unitary freedom of choice of
orthonormal basis tan 197
Given an
orthonormal basis
can measure with respect to this
base change before and after measurement
by performing
e e unitary
U 14 lur
measurement with respect to Huss in
1,71 51
14 1471
M 10 01
114,01 1
M
117511 18 9
94114014 141
plot 41 MTM 147
1131
pas
Projective measurements
see projection operators handout
the eigenvalues fu
tu
Probability of getting result
pliml yl Pe 14
PutPm Pm Pm sins Pm is a projection
the measurement
state of the quantum system after
Pm14 Pm14
11Pm 4 y plant
Remarks
Projective measurements are special cases of general measurement
framework
11M smit
Cim
giggap
Examples
basis 107 11
Measuring a qubit v computational
rt
observable M by
define
4m Pm with arbitrary di d ER I t
M I
Z
Measuring Pauli
Z 1 tri
Tio so Tensai
standard measurement
agrees with
computational basis 10 11
w rat
2.6 The Heisenberg uncertainty principle 22.11.2023
Then 144154031471
A c 110 2
for derivation
3. Entanglement and its applications
14 19.7 19mn Ee
19mn70 for any 140
Einstein
also denoted EPR states
PodolskyRosen
Example Bell states
11007 111 b
β a
Bell states
Quantum circuit to create
1 7
1 1Pa for x.ge 011
14
Alice
my 1 11 14
141 14
after Hadamard
projective measurement
with P 1007500 I R 1017407 I
P 7107410 I Py 1117471 I
similarly 00 α 10 1 PH
01 a11 β10
10 a 10 β11
11 a 11 P 10
Aline transmits her measement results to Bob classical information
Bob then applies Pauli and or Pauli if necessary to recover 14
is instantaneous
Even though wavefunction collapse
no faster than information transfer possible due to required
light
randomness of measurement outcome
classical communication and
3.2 EPR and the Bell inequality
property i of a qubit is an
EPR argument
element of reality
however quantum mechanic does not a priori specify this
property for all possible but only probabilities
and is thus an incomplete description of reality
many repetitions to
collect statistics
Experimental schematic
of the following setup
at the following
By linearity of E arrive
Bell inequality
ETQS ETRS ETRT ETQT 2
QS SRS RT QT 2 E 42
violates Bell's inequality
Quantum version of f
Uf defined for romputational basis states a
quantum oracle
m i n
Ix un 1 1 10
Uf
197 1907117
oraclequbit
9 50113 911 2
states to basis states and
Note Up maps basis
satisfies Up I q fix fix q
basis states and is i particular unitary
thus Up permutes
Initialize oracle qubit in superposition 1 10 11 then
101 Ut if fix o
1 30 41 13 f 130 if 711 7
Uf 10 11
In summary
1
11 1 MAY
EEEE.EE die
it uncaged
Ix 1 11th
effective astion of oraile Up
a given
E N divides m is simple
but testing whether
digital
can perform arithmetic operations for trial division on a
10 0 i
G I G
I qubits
Groveroperator
Initial Hadamard transform H 1
Note H10 110 115
EY H1 10 11
for 50,1
HH 1 11 12
Applied to
several qubits
17 117
mi µ p
g n
G Uf
orate
FfÉH
211911 I
4
2 4 541 I
In summary G 2147541 I Up
12 4 41 I Iaux Uf
Geometric interpretation
Define
Ias in
1ps a
angle I defined by sink
such that
14 os a si IP
Note by definition Uf
a K Up B 1B
is a reflection about k
Up and B
spanned by k
within subspace
is a reflection about 14
Likewise 2147541 I
and β
subspace spanned by k
Sinie IT is part of
invariant
G leaves subspace
produit of two
reflections
Thus G is a
a notation by angle I
G is
cos p k sin 191 β
10 sin 19 4 β
G 10 cos y d a 13.12.20
For k applications of G
G 10 cos ptk.nl a sinlqtk0l1p
initial state 10 14 p f
for
kt 2 0 a sin 1kt 9 113
G 4 cos
6
Nielsen and Chuang section 6
show that any quantum search algorithm
needs R N
Goal
oracle sales N is already optimal
KEEN
Ok 4 511145 14114 51414712 4
De t 4 The 4
i
E't 4k 8 k 4 4 4 1
11147 1 711 24 14 7
14H
2 2 2 E
Therefore E 11145 1 711 2 KIN
F 111 7 1417111 then
Define
2 Re 14k
F 1 1 1,412
Retz 171 for a f E
11114kt 15 H 14k
Ok I
E 2
IEEE
F
1 Eax txt salt Hall 1164
2
E F 2 FE FE FF E
Iran MAY
12
N FE 2T
as Nto
N
in summary
fgf
number of oracle
evaluations
20.12.2023
using
a.si ii.i
5. The density operator
is triABC to BCA
given i
i 4 MutMm14 trtmntmn.lt 44,13
plm
Thus overall probability for result m is
i MatMm 4 54.1 pi
plan plm pi Itr
trtmmtmw.IE
4i17 trtMIMns
Density operator Sm after obtaining result m
state i collapses to 14 I
14
Thus Mm 4 4 Mmt
Sm
I philm 14 5471 pci Mm 14 planti
Mt
x̅ I
Pi
Mu m9i 17m Is
PCAIBl PlAnB
Him Him Baye's the.ve PB
PCBAI PCA
Terms PIB
Note that gun is now expressed in of g
and the measurement operators
without explicit reference to the
ensemble pi 147
5.2 General properties of the density operator
positivity condition
2 g is a positive operator
Xj and orthonormal
there exist eigenvalues corresponding
Example
07401 4117411 I a salt b Sb
g
with la F 10 Fy11
16 107 5411
But note that 10 11 are the unique eigenvectors of g
and all to
ensemble 14,7 10.1.2024
For the following given an
pi
Tpi 14 such that s
set 145 I 1457541
if and only if
Uij 195
147
unitary matrix His
for some
Sketch of proof
Insert definitions
use the spectral
decomposition of the density matrix
x̅
the IX
This equation can only be satisfied since are
can be generalized
The Beach sphere picture for qubits
to mixed states by the representation
I 8 8.8 MX KY MZ
g 2
to E 4 traTM Me ATM M
E C and Mr E E together with
for all M
gB try Is
Examples
Ian Ian A and lb lb EB
For any quantum states
147441 tarsal.fr iadcat
to I laical
fff ft
Given a density matrix s for subsystem A
B
suppose that the overall
density initix is
SAB 586
Then to is 6 s.fr d s
0 a
trats a
with
trff 100 111 Bellstate
SAB 147441 14
Expand s leads to
111 001 6111
SAB 100