QC QML BND Intro
QC QML BND Intro
[https://www.umb.ch/blog/news/detail/quantencomputing-fuer-den-praktischen-einsatz-rueckt-naeher]
Seite 2 09.08.2023 © Fraunhofer IKS
Application fields
[https://www.bcg.com/de-
de/publications/2019/quantum-computers-
create-value-when]
Seite 3 09.08.2023
Emerging technology:
Quantum computing
Reconstruction of tracks
- Optimization problem or
quantum machine learning
Event selection
- solved by quantum
Lattice QCD machine learning
– fundamental interactions in discretized space
„We help companies make better decisions in less time with What quantum computing might be able to do and
quantum-hybrid computing“ what not:
„Quantum computing has the potential to drive the major ▪ QC will not replace classical computers.
breakthroughs needed to help solve the climate crisis.“ ▪ QC are expected to lead to exponential or polynominal speed-up for
certain calculations (or more precisely subroutines).
„Much like artificial intelligence in its early days, the
▪ Academic quantum advantage has been claimed.
reputation of quantum computing has been tarnished by
▪ A practical quantum advantage has not been shown yet.
grand promises and few concrete results. Talk of quantum
computers is often closely flanked by promises of polynomial- ▪ A claim on quantum utility has been made recently.
time solutions to NP-Hard problems and other such
implausible appeals to blind optimism..”
Seite 6 09.08.2023
Plan for the lectures
Senior scientist @
PhD @ LMU Munich 2014 Junior research group
Fraunhofer IKS 2021 –
Diploma in physics LMU in particle physics (ATLAS leader/assistant
2022 Switched association @
Munich (2010) – diploma Collaboration, searches for professor @ LMU Munich
& project lead quantum LMU Munich to theoretical
thesis in particle physics. SUSY particles). (SUSY searches, DM
computing. physics
searches, additional Higgs
2010 2014 bosons)
2021 - 2022 2023
2015–2021
[M. Schuld & F. Petruccione, Machine Learning with Quantum Computers, Springer 2021]
Seite 11 09.08.2023
Research questions
▪ What does quantum theory mean for the limits of what is computable?
▪ With first small and noisy quantum computers starting to be available: for what can we use
them? (Now and in perspective)
Research topics of
▪ How can we control their imperfection? Jeanette‘s department
Seite 12 09.08.2023
A few basic definitions
Quantum computer (QC): Physical implementation of n qubits with precise control on the evolution of the system
Quantum algorithm (QAlg): Controlled manipulations of a quantum system with subsequent measurement to retrieve
information from the system
Seite 13 09.08.2023
In a nutshell: What is quantum computing?
Wikimedia
a |0> + b |1>
with |𝑎|2 + |𝑏|2 = 1
At any given time, it is in a superposition state represented by a linear combination of Dirac vectors |0> and |1> in ℂ2 :
And 𝑎, 𝑏 ∈ ℂ
The vectors |0> and |1> form an orthonormal basis of a two-dimensional Hilbert space -> Computational basis.
1 0
|0 > = ∈ ℂ2 , |1 > = ∈ ℂ2
0 1
Seite 15 09.08.2023
A qubit in polar form
Furthermore, we can identify two quantum states if they only differ by a multiple of a complex unit, i.e. by a factor 𝑒 𝑖𝜑 for 0 ≤
𝜑 < 2𝜋.
𝜑2 − 𝜑1 𝑖
𝜓 > = 𝑟1 0 > +𝑟2 𝑒 |1 >
Seite 16 09.08.2023
Mapping to the Bloch sphere
𝜃 𝜃
𝑟1 = cos and 𝑟2 = sin
2 2
With this:
𝜃 𝜃 𝜑𝑖
|𝜓 > = cos |0 > + sin 𝑒 |1 >
2 2
Using this, we can use a non-linear projection to get from the three-
dimensional surface of the hypershere in ℂ2 (that one can think of as
ℝ4 ) to a two-dimensional surface of a Bloch sphere in ℝ2 . The main
point why this does work is because we can ignore global phases.
Seite 17 09.08.2023
Basic operations acting on one qubit
|0 >1 ⨂|0 >2 , |0 >1 ⨂|1 >2 , |1 >1 ⨂|0 >2 , |1 >1 ⨂|1 >2
Or in short:
Seite 19 09.08.2023
Example: Representation of numbers
To display numbers from 0 to 15 in bits, we need 4 bits: Four qubits allow to represent all of these 16 states at the
same time:
0000
|0000> + |0001> + |0010> + |0011> + |0100> + |0101> +
0001 |0110> + |0111> + |1000> + |1001> + |1010> + |1011> +
|1100> + |1101> + |1110> + |1111>
0010
→ Parallelisation of calculations possible.
0011
1111
Definition:
▪ The full oberservable corresponding to the computational basis measurement is the Pauli-z observable:
𝜎𝑧 = 0 >< 0 − 1 >< 1
Seite 22 09.08.2023
Measurement in practise
▪ How to obtain a expectation value? -> Sample. Run a QAlg s times. s is called the number of shots.
▪ How many shots are required to obtain an estimate < 𝜎𝑧 > with an error 𝜀 ?
-> Bernoulli experiment
▪ In case of large s and a probability of 𝑝 ≈ 0.5 : Wald interval for < 𝜎𝑧 > = 0:
𝑝ො (1 − 𝑝)
ො
𝜀=𝑧 ∙
𝑠
With 𝑝:Ƹ estimator for the probability
z: confidence level
Seite 23 09.08.2023
Measurement in practise
▪ If 𝑝Ƹ → 0 or 𝑝Ƹ → 1:
The Wald approximation is not valid, instead the Wilson score interval
is required:
1/2
𝑧 𝑝Ƹ 1 − 𝑝Ƹ 𝑧2
𝜀= +
𝑧2 𝑠 4𝑠 2
1+
𝑠
=> For 𝜀 = 0.1 only 27 measurements are required for the same
boundaries as before.
[M. Schuld et al, Machine Learning with Quantum Computers, Springer 2021]
Seite 24 09.08.2023
Why is quantum computing promising?
Entanglement of states – i.e. multiple qubits are → Simplified processing of complicated datasets, solution of
connected/correlated. currently unsolvable problems.
Interference of qubits – i.e. states interfer → However: It is uncertain when the quality of quantum
Enhancement or reduction of states (see Grover!) computers will be sufficient to fully profit from these
advantages.
[https://qiskit.org/documentation/qc_intro.html]
Seite 26 09.08.2023
What is a quantum computer?
▪ Scalability (Architecture scalable?) 4. Ability to apply unitary operators to qubit states and
to two qubits at once
▪ Qubits: number, architecture-specific limitations like nearest
5. Ability for ‚strong‘ measurements, i.e. the ability that
neighbor connections
the measurement measures the state of the qubit
▪ Logical connectivity (two-qubit gates possible for all qubits?) for the property being measured
Seite 27 09.08.2023
Different QC hardware concept (examples)
▪ Atom ensemble surrounded by laser system ▪ Superconducting Josephson junctions at ▪ Ionized atoms trapped in electric potentials
forming an magneto-optical trap, cryogenic temperatures. to form a line of qubits.
addressable arrays of atoms. ▪ Low connectivity, many SWAP operations ▪ Can be operated at room temperature,
▪ Requires a specific way of programming needed for highly connected circuits, high connectivity, no runtime environment
(pulser), good connectivity, more native to runtime environments in first attempts and running jobs relatively manuel
QUBO formulations? available
Source:
https://www.aqt.eu/
media-press/, Dieter
Kühl
Ibm_cusco
127 qubits
Seite 29 09.08.2023
Classical computation and
complexity
Seite 31 09.08.2023
Storage of information and operations
▪ A bit is either 0 or 1
▪ At a low level a computer works with binary numbers
▪ Example: 1101 = 1 ∙ 23 + 1 ∙ 22 + 1 ∙ 21 + 1 ∙ 20
Nanotechnology. 2. 10.1515/rnan-2015-0003.]
Capacity of storage:
▪ Measured in terabytes, gigabytes, …
▪ 1 gigabyte = 1000 megabytes = … = 109 bytes
▪ 1 byte ^= 8 bits
Seite 32 09.08.2023
Seite 33
09.08.2023
Operations
Task:
0+0=0
1+ 0 = 1
0+1=1
1 + 1 = 0 carry 1
Seite 34 09.08.2023
How to realize an addition
0+0=0
1+ 0 = 1
0+1=1
1 + 1 = 0 carry 1
Almost there!
Seite 35 09.08.2023
How to realize an addition
0+0=0
1+ 0 = 1
0+1=1
1 + 1 = 0 carry 1
[Source: https://www.101computing.net/binary-
additions-using-logic-gates/ ]
Almost there!
Seite 36 09.08.2023
The interplay between classical and quantum computers
Controls QC
QC
Iteration
Classical computer or
HPC system
Seite 37 09.08.2023
A word on complexity and what we need to achieve
Let f(n) and g(n) be functions from positive integers to positive reals.
We say f = O(g) (which means that „f grows no faster than g“) if
there is a constant c > 0 such that 𝑓 𝑛 ≤ 𝑐 ∙ 𝑔 𝑛 .
Example: Sorting
Terminology developed by T.F. Rnnow et al. to benchmark QCs and quantum algorithms:
Phase estimation
Setup:
▪ Either linux installation, virtual box with linux installation, or google colab
▪ Install via pip:
▪ pip install qiskit
▪ pip install pennylane
▪ (and probably a few more things will be requested during the installation process)
▪ Installation commands in google colab have to be preceeded by a !
Seite 42 09.08.2023