Professional Documents
Culture Documents
Stefan Kühn
Motivation
On the verge of the NISQ era
Motivation
On the verge of the NISQ era
Motivation
On the verge of the NISQ era
Commercially/openly available
devices
I D-Wave
I Rigetti Computing
I IONQ
I ...
J. Preskill, Quantum 2, 79 (2018)
Image taken from https://ai.googleblog.com/2019/10/quantum-supremacy-using-programmable.html
Arute et al., Nature 574, 505 (2019)
dummy
Outline
1 Motivation
4 Hands-on Exercises
|0i
θ
sin(θ) cos(φ)
φ ~r = sin(θ) sin(φ)
|0i + i |1i cos(θ)
|0i + |1i
|1i
dummy
1
X
|ψi = ci1 ...in |i1 i ⊗ · · · ⊗ |iN i
i1 ,...,in =0
1
X
|ψi = ci1 ...in |i1 i ⊗ · · · ⊗ |iN i
i1 ,...,in =0
1
X
|ψi = ci1 ...in |i1 i ⊗ · · · ⊗ |iN i
i1 ,...,in =0
U
dummy
|0i → |1i
0 1
X X X =
1 0 |1i → |0i
|0i → −i |1i
0 −i
Y Y Y =
i 0 |1i → i |0i
|0i → |0i
1 0
Z Z Z=
0 −1 |1i → − |1i
dummy
Rx = exp −i 2θ X
Rx (θ) Rx (θ)
Ry = exp −i 2θ Y
Ry (θ) Ry (θ)
Rz (θ) = exp −i 2θ Z
Rz (θ) Rz (θ)
dummy
Rx = exp −i 2θ X
Rx (θ) Rx (θ)
Ry = exp −i 2θ Y
Ry (θ) Ry (θ)
Rz (θ) = exp −i 2θ Z
Rz (θ) Rz (θ)
1
√1 √1
! |0i → √ (|0i + |1i)
2 2 2
Hadamard H H= √1
2
− √12 1
|1i → √ (|0i − |1i)
2
dummy
CNOT α |00i + β |01i + γ |10i + δ |11i
=α |00i + β |01i + γ |11i + δ |10i
dummy
CNOT α |00i + β |01i + γ |10i + δ |11i
=α |00i + β |01i + γ |11i + δ |10i
|0i Rx (θ0 ) X •
|0i Rz (θ1 )
|0i
dummy
3.
1 Motivation
4 Hands-on Exercises
https://qiskit.org
https://github.com/Qiskit
dummy
https://qiskit.org
https://github.com/Qiskit
dummy
Terra
Quantum circuits
Pulse schedule
Transpiler
Visualization
dummy
Terra
Quantum circuits
Pulse schedule
Transpiler
Visualization
dummy
Terra
Quantum circuits
Pulse schedule
Transpiler
Visualization
dummy
4.
1 Motivation
4 Hands-on Exercises
|0i H •
|0i
dummy
|0i H •
|0i
H 1 1
1 → √ (|0i + |1i) ⊗ |0i = √ (|0i ⊗ |0i + |1i ⊗ |0i)
|0i ⊗ |0i −
2 2
dummy
|0i H •
|0i
H 1 1
1 → √ (|0i + |1i) ⊗ |0i = √ (|0i ⊗ |0i + |1i ⊗ |0i)
|0i ⊗ |0i −
2 2
1 CNOT 1
2 √ (|0i ⊗ |0i + |1i ⊗ |0i) −−−−→ √ (|0i ⊗ |0i + |1i ⊗ |1i)
2 2
dummy
|0i H •
|0i
H 1 1
1 → √ (|0i + |1i) ⊗ |0i = √ (|0i ⊗ |0i + |1i ⊗ |0i)
|0i ⊗ |0i −
2 2
1 CNOT 1
2 √ (|0i ⊗ |0i + |1i ⊗ |0i) −−−−→ √ (|0i ⊗ |0i + |1i ⊗ |1i)
2 2
3 Measurement in computational basis yields:
|0i H
Tasks
1 Implement the circuit above.
3 Measure the results with 100, 500, 1000 and 10000 shots and
visualize the result. What do you observe?
dummy
|0i H
Tasks
1 Implement the circuit above.
3 Measure the results with 100, 500, 1000 and 10000 shots and
visualize the result. What do you observe?
|0i H •
|0i
Tasks
|0i H •
|0i
Optional tasks
1 Can you nd circuits preparing the other three Bell states?
|0i H
|0i X H
Tasks:
1 Implement the circuit and visualize it to make sure it is correct.
2 Obtain the nal state using the state vector simulator and
visualize the state of the individual qubits on the Bloch sphere.
Which state did you obtain?
4 Execute it again the state vector simulator and the state of the
individual qubits on the Bloch sphere. What do you observe?
dummy
|0i H •
|0i X H
Optional tasks:
2 Simulate the circuit for various angles of the rotation gate and
visualize the results on the Bloch sphere. What do you
observe? Can you explain the eect?
dummy
X2
N− X1
N−
H= Zi Zi+1 + h Xi
i=0 i=0
Evolution of the wave function |ψ0 i under the Hamiltonian
X2
N− X1
N−
H= Zi Zi+1 + h Xi
i=0 i=0
Evolution of the wave function |ψ0 i under the Hamiltonian
h t in
|ψ(t)i = exp (−iHt) |ψ0 i = exp −iH |ψ0 i
n
dummy
X2
N− X1
N−
H= Zi Zi+1 + h Xi
i=0 i=0
Evolution of the wave function |ψ0 i under the Hamiltonian
h t in
|ψ(t)i = exp (−iHt) |ψ0 i = exp −iH |ψ0 i
n
Tasks
Optional tasks
5.
1 Motivation
4 Hands-on Exercises
Next steps
Qiskit documentation
https://qiskit.org/documentation/index.html
dummy
|0i Rx (θ0 ) • X •
|0i Rz (θ1 ) •
|0i
|ψi = ci |binary(i)i
i=0
⇒ 2
with probability |ci | we record the bit string |binary(i)i
dummy
|0i Rx (θ0 ) • X •
|0i Rz (θ1 ) •
|0i
|ψi = ci |binary(i)i
i=0
⇒ 2
with probability |ci | we record the bit string |binary(i)i
= ψ 0 D ψ 0
dummy
= ψ 0 D ψ 0
2X
N −1
1050 repetitions
s = 10000
dummy
1050 repetitions
s = 10000 ∝ s − 1 /2
mean value
standard deviation
dummy
A set of gates is universal if, by composing gates from it, one can
express any unitary transformation on any number of qubits.
A set of gates is universal if, by composing gates from it, one can
approximate any unitary transformation on any number of
qubits to any desired precision.