Skript Quantum Computing
Skript Quantum Computing
Skript Quantum Computing
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
Alice
Bob
At 143 Alice has completed her measurements
her measurement
results yet
lecture
Intermediate state 14 see previous
19 110 la 10 PID
111 α 117 1310
194
Roowost la.to tp
101740110 x 1 Plo a 471 β 401
11074101 α 10 PM 01 1 411
Affubits i
Reduced density
1 a S Ya.cn as 9Yitfa
try s aneso gB 1 10
a 11 t 1310
111 β 411
2
12 411 8 401
901
2 401 P 11
a 10 P111
a 117 8107 1
411 Prot
211 11 101501 21 11 91
I
coefficient ᵗ
and p are 0
107501 11 11 E
independent of 14 α and it coefficients
since GB E any
measurement by Bob cannot reveal
Alice cannot transmit
any information about 14
i e
Special cases
Ug Ut
unitary time evolution s
Em 5 Mms Mmt
S
U U s genu Ut
Seur
principalsystem is the reduced density matrix
Output on
of the principalsystem
5 Els
s treur Ulsos.nu Ut a
face Seur
t out environment
street
Example Usnot
s Els
105101 0
then
MCNOT S D 10H01
U Not
Katnot
son 0074701 So170 00 for 7074101
Ucnot s 10075001
Soo 1007500 for 00 11 So 1174001 Sin 1117411
set to zero
off diagonal entries of s are
6.3 Operator-sum (Kraus) representation 24.1.2024
Is Ens Ext s
Tell lek
Revisit example
USNOT EK Ext
s 1s
105101
I
0
Elem 41,014 1 m 85 E I p ay
m
E em e 11 Unot m E p
Completeness relation of Kuans operators
U 14 14 lek
Define unitary A via e
I
and use matrix extension to a unitary operator a
on the combined system
is possible since for any principal quantum
states 14 p
This
yle Utu 1976 4 EntE 9
4k
41 EntE 9 419
U preserves orthogonality
FEE
U has the desired property since
e 1 Ut treu Ees EE e seal
trenu U so e
Es Et Ers Et
6.4 Axiomatic approach to quantum operations
thus 0 trteigl 1
A2 E is convex linear
probability vector
Pi Si pi si for any p
and density matrices si
In matrix
II I t.its.ee
II
whish acts on denoted Q dimension n
Principal system
Introduce another quantum system labelled R
with same dimension as Q R
1 orthonormal basis of a
Let ja 5 n an
5 1 n i R
jp
state cf exercise 12.1
Define the maximally entangled for a single qubit
RQ 100 111
1a I lip Ia f
and
I E 1 741 p.s.d.by A ie
147 45 lip on R
4416157 2441 lip Girl lia Jal 147
on
I 4,4 labial IE E4 liakial
1147441
decomposition 197491
spectral
If L
eigenvalues
absorbed to 15k
Xk 4 44kt
1511 sk.gg Ir i'a 15k A 14k
Can represent
coefficients
said
Effy's
a 4in R
podunt on R
En 4 41Ent n 4515 Ssn F
F 451614 1475411
n.SI 1E E1
Holds for arbitrary 14 It
1s Ens Ent for any density matrix s
6.5 Choi-Jamiołkowski isomorphism
density matrices on
Quantum channel
E Q Q largersystem RQ
dimension as Q
with R of same
Choi matrix
via
For given the corresponding Choi matrix is defined
i 1 n
Ei Ui Fj
6.7 Examples of quantum operations
a r
It
density matrix g
Recall Bloch vector of a
E
It
Earls with
i
analogously
Phase flip
E FI E Tp Z
Epp f EhsEnt
1
p.pt
plZg r
For p by unitary freedom of Kraus representation
E KE II It f 107601
P
E KE I 12 89 117411
P
PosP P sp equivalent to
Epp s
standard basis measurement
Depolarizing channel
with probability p
replaces by completely mixed state I
11 pls
Epp s p I
Bloch sphere representation uniform contraction
depolarizing channel
Circuit representation of
c controlledswap
S
11 p107101 1177511
interpretation control is active with probability p
Kuans form of depolarizing channel
a normalized density
matrix s trig7 1
trick for
Stts YSY Zez
E 4
Eppls 1 ftp.t s XSX YsY zsz
E FII E F t E Y E E Z
see Nielsen at Chuang seation 8.3.5
Amplitude damping
Exercise 13.1
eg photon in cavity
10 no photon
11 single photon
E o
E F
E 1 F 10
Interpretation 117 10 with probability p
Circuit representation
s Ads sin
with g
10 Ryle
see Exercise 13.1
Phase damping
Nielsen and Chung section 8.3.6
phase information is lost
e It f
model apply a phase kick Rzle
with random angle
FE.atistituti
a 10 bin
initial state 4 a
matrix after random phase kick
density
did
s In Raid 4 44 Rent e
e
r
14 dead 10 alive 11
It Itom ItItom
off diagonalentries 0
due to decoherence