SlideShare a Scribd company logo
1 of 20
Download to read offline
Machine Learning with Quantum Computers
Speck&Tech event
Davide Pastorello
Department of Mathematics, University of Bologna
and
Trento Institute for Fundamental Physics and Applications, INFN
Impact Hub Trento. September 21, 2023
Picture credit: IBM
Premise: The World is quantum
At microscopic length scales (molecules, atoms, electrons,...): Newton’s laws of
dynamics and electromagnetism based on Maxwell’s equations do not work.
We need quantum mechanics to describe physical phenomena.
Quantum things:
• Superposition of states
(is the electron either "here" or "there"? In both places!).
• Observations alters the state of the observed system.
(We observe the electron "here" with some probability)
• Entanglement ("spooky action at distance" as Einstein said)
Using physical phenomena to process information is a good and old idea...
What if are we able to use quantum phenomena?
A bit of history...
1981. At the First Conference of Physics of Computation (MIT), R. Feynman observed
that quantum systems cannot be efficiently simulated by classical computers and
proposed a model of quantum computer.
1985. D. Deutsch described the universal quantum computer in terms of the quantum
Turing machine.
1994. P. Shor proposed an algorithm for a quantum computer to factor large integers
in polynomial time.
1995. L. Grover presents the quantum search algorithm in an unsorted database.
2000s. First prototypes of working quantum computers.
2010s. Quantum computers on the market (e.g. D-Wave, IBM Q System 1).
Present days (2023)
• Anyone can run his/her quantum algorithms on available quantum machines (a
basic access is usually free).
• Real-life problems are tackled by quantum computers.
• The interest by industry and non academic institutions is dramatically increasing.
• Availability of fault-tolerant, error-corrected, universal quantum computers?
Not yet, we are in the Noisy Intermediate-Scale Quantum (NISQ).
• Quantum supremacy? Not yet.
• Hot topics: quantum optimization and quantum machine learning...
Quantum computers exist
Examples of quantum computers:
D-Wave IBM Quantum
Quantum bits
Examples of qubits:
• Particles with spin 1/2;
• Polarized Photons;
• Controlled superconducting circuits.
Qubits (mathematical description)
Quantum state superposition
The state of a qubit is a unit vector* in C2:
| i = ↵|0i + |1i ↵, 2 C , |↵|2
+ | |2
= 1
{|0i, |1i} computational basis.
A measurement process affects the qubit state
Measurement of a qubit (e.g. we measure the polarization of a photon)
P(0) = |↵|2
P(1) = | |2
The qubit state after the measurement is |ii if the outcome is i = 0, 1.
*The vectors | i and ei✓
| i with ✓ 2 R represent the same physical state.
Qubits (mathematical description)
Tensor product
| i =
✓
↵
◆
2 C2
|'i =
✓ ◆
2 C2
| i ⌦ |'i =
0
B
B
@
↵
↵
1
C
C
A 2 C4
2 qubits (as a composite system) are described in:
C2
⌦ C2
:= span{| i ⌦ |'i : | i, |'i 2 C2
} = C4
.
n qubits (as a composite system) are described in:
(C2
)⌦n
= C2n
.
A new kind of information
Empirical evidence:
Quantum randomness, state superpositions, entanglement are
physical phenomena not simply theoretical interpretations.
+
Encoding information into qubits (or more general quantum objects) allows completely
new kinds of:
• information storing and processing
• data representation
• telecommunication
• cybersecurity
• ...
In particular we are interested in machine learning!
Quantum gates
Let {|0i, |1i} be the computational basis
• Hadamard gate:
|xi H
1
p
2
(|0i + ( 1)x
|1i) x 2 {0, 1}
• Phase gate:
↵|0i + |1i P ↵|0i + ei
|1i
• CNOT gate:
|xi • |xi
|yi |x yi
x, y 2 {0, 1}
Theorem: {H, P⇡/4, CNOT} is a universal set for quantum computation.
Machine learning with quantum computers?
Achievements in Quantum Machine Learning (since 2013)
Algorithm Quantum speedup
K-medians Quadratic
Hierarchical clustering Quadratic
K-means Exponential
Principal component analysis Exponential
Support vector machines Exponential
Several classifiers Exponential
Neural networks ?
General observation
Quantum architectures enable new paradigms of data representation and information
processing.
Current challenge
Devising quantum learning mechanisms for available or near-term quantum machines.
A quantum binary classifier
The classification model
Assume data are represented in a feature space.
The model assigns a binary label to a new data instance evaluating its similarity to any training
point.
Quantum implementation on the IBM ibmq_melbourne
• Quantum superposition of training vectors;
• Test instance in quantum superposition of the two classes;
• Parallel computing over the superposed data.
Classical complexity: O(Nd)
Quantum complexity: O(log(Nd))
Reference:
D. Pastorello, E. Blanzieri. A quantum binary classifier based on cosine similarity
Proc. IEEE International Conference on Quantum Computing and Engineering (QCE 21)
Some QML schemes designed for universal quantum computers
• Quantum divisive clustering
W. Aïmeur et al. Quantum clustering algorithms ICML ’07: Proceedings of the 24th
international conference on Machine learning (2007)
• Quantum principal component analysis
S. Lloyd, et al. Quantum principal component analysis Nature Physics 10, 631 (2014)
• Quantum support vector machine
P. Rebentrost et al. Quantum support vector machine for big data classification Phys. Rev. Lett.
113, 130503 (2014)
• Quantum nearest neighbor
N. Wiebe et al. Quantum Algorithms for Nearest-Neighbor Methods for Supervised and
Unsupervised Learning Quantum Information and Computation 15(3,4): 0318- 0358 (2015)
• Quantum perceptron M. Schuld et al. Simulating a perceptron on a quantum computer
Physics Letters A, 379, pp. 660-663 (2015)
• Quantum meta-learning M. Wilson et al. Optimizing quantum heuristic with meta-learning
Quantum Machine Intelligence 3 (2021)
Quantum Annealing
Quantum Annealers
The hardware is a quantum spin glass, i.e. a collection of qubits arranged in the vertices of a
graph (V , E) where edges represent the interactions between neighbors.
Example: D-Wave Chimera topology
Quantum Annealing
Annealing process (annealing time ⇠ 20µs)
By energy dissipation the quantum system evolves in the ground state (the less energetic
state) corresponding to the solution of a given optimization problem.
Quantum Annealing
Shortcoming
Representing a given problem into the quantum hardware architecture is difficult in
general and can destroy the efficiency of the quantum computation.
Proposed solution
Quantum Annealing Learning Search (QALS):
A hybrid quantum-classical algorithm enabling a learning mechanism so that the
quantum machine learns the representation of the problem on its own without an
expensive classical pre-processing.
References:
-) Davide Pastorello, E. Blanzieri. Quantum Annealing Learning Search for solving QUBO problems.
Quantum Information Processing 18: 303 (2019)
-) A. Bonomi et al. Quantum annealing learning search implementations in Quantum Information and
Computation, v. 22, n. 3&4 (2022)
ML with quantum annealers
• Boltzmann machine implementation
M.H. Amin Quantum Boltzmann machine Phys. Rev. X 8, 021050 (2018)
• Classification
N. T. Nguyen et al. Image classification using quantum inference on the D-wave 2X. In: 2018
IEEE International Conference on Rebooting Computing (ICRC), pp. 1-7. IEEE (2018)
• Clustering
V. Kumar et al. Quantum Annealing for Combinatorial Clustering Quantum Inf Process (2018)
17: 39
• Training of a SVM
D. Willsch et al. Support vector machines on the D-wave quantum annealer Computer Physics
Communications 248, 107006 (2020)
...and quantum neural networks?
A feedforward QNN made by single-qubit rotations and CNOTs:
A QNN of this form achieves higher values of effective dimension w.r.t. to a classical NN
with same number of parameters.
Ref.: A. Abbas et al. The power of quantum neural networks Nat. Comput. Sci. 1, 403-409 (2021)
Some concluding remarks
• Quantum architectures enable new kinds of data processing.
• There is a bottleneck about the efficient data representation into quantum hardware
(QRAM are not feasible yet).
• The era of quantum machine learning is just started but it is maybe the most promising
road for putting forward the frontiers of quantum computing.
• The quantum-classical hybrid approach is the best way to use the existing quantum
machines.
• Providing efficient quantum algorithms is a very difficult task.
So we have to devise learning mechanisms of new quantum algorithms towards a
"quantum meta-learning"...
In other words, quantum computers must learn how to solve problems on their own...
Thanks for your attention!
Picture credit: IBM

More Related Content

Similar to Machine learning with quantum computers

An Introduction to Quantum computing
An Introduction to Quantum computingAn Introduction to Quantum computing
An Introduction to Quantum computingJai Sipani
 
Quantum computing in machine learning
Quantum computing in machine learningQuantum computing in machine learning
Quantum computing in machine learningkhalidhassan105
 
Quantum computing seminar
Quantum computing seminarQuantum computing seminar
Quantum computing seminarPankaj Kumar
 
Quantum communication and quantum computing
Quantum communication and quantum computingQuantum communication and quantum computing
Quantum communication and quantum computingIOSR Journals
 
QuantumComputersPresentation
QuantumComputersPresentationQuantumComputersPresentation
QuantumComputersPresentationVinayak Suresh
 
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHMCOMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHMcsitconf
 
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHMCOMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHMcscpconf
 
Quantum Blockchains
Quantum BlockchainsQuantum Blockchains
Quantum BlockchainsMelanie Swan
 
Mathematical_Introduction_to_Quantum_Computation
Mathematical_Introduction_to_Quantum_ComputationMathematical_Introduction_to_Quantum_Computation
Mathematical_Introduction_to_Quantum_ComputationBrian Flynn
 
Fundamentals of quantum computing part i rev
Fundamentals of quantum computing   part i revFundamentals of quantum computing   part i rev
Fundamentals of quantum computing part i revPRADOSH K. ROY
 
Let's build a quantum computer!
Let's build a quantum computer!Let's build a quantum computer!
Let's build a quantum computer!Andreas Dewes
 

Similar to Machine learning with quantum computers (20)

Quantum & AI in Finance
Quantum & AI in FinanceQuantum & AI in Finance
Quantum & AI in Finance
 
Seminar
SeminarSeminar
Seminar
 
An Introduction to Quantum computing
An Introduction to Quantum computingAn Introduction to Quantum computing
An Introduction to Quantum computing
 
Quantum computing in machine learning
Quantum computing in machine learningQuantum computing in machine learning
Quantum computing in machine learning
 
177
177177
177
 
Quantum computing seminar
Quantum computing seminarQuantum computing seminar
Quantum computing seminar
 
Quantum communication and quantum computing
Quantum communication and quantum computingQuantum communication and quantum computing
Quantum communication and quantum computing
 
QuantumComputersPresentation
QuantumComputersPresentationQuantumComputersPresentation
QuantumComputersPresentation
 
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHMCOMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
 
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHMCOMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
COMPUTATIONAL PERFORMANCE OF QUANTUM PHASE ESTIMATION ALGORITHM
 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
 
Quantum computers
Quantum computersQuantum computers
Quantum computers
 
Quantum computers
Quantum computersQuantum computers
Quantum computers
 
Quantum computing meghaditya
Quantum computing meghadityaQuantum computing meghaditya
Quantum computing meghaditya
 
Quantum Blockchains
Quantum BlockchainsQuantum Blockchains
Quantum Blockchains
 
Mathematical_Introduction_to_Quantum_Computation
Mathematical_Introduction_to_Quantum_ComputationMathematical_Introduction_to_Quantum_Computation
Mathematical_Introduction_to_Quantum_Computation
 
Algoritmo quântico
Algoritmo quânticoAlgoritmo quântico
Algoritmo quântico
 
Fundamentals of quantum computing part i rev
Fundamentals of quantum computing   part i revFundamentals of quantum computing   part i rev
Fundamentals of quantum computing part i rev
 
MASTER_THESIS-libre
MASTER_THESIS-libreMASTER_THESIS-libre
MASTER_THESIS-libre
 
Let's build a quantum computer!
Let's build a quantum computer!Let's build a quantum computer!
Let's build a quantum computer!
 

More from Speck&Tech

What should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futuresWhat should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futuresSpeck&Tech
 
Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"Speck&Tech
 
AWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scalaAWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scalaSpeck&Tech
 
Praticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web ServicesPraticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web ServicesSpeck&Tech
 
Data Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information designData Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information designSpeck&Tech
 
Data Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as powerData Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as powerSpeck&Tech
 
Delve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomicsDelve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomicsSpeck&Tech
 
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...Speck&Tech
 
Monitorare una flotta di autobus: architettura di un progetto di acquisizione...
Monitorare una flotta di autobus: architettura di un progetto di acquisizione...Monitorare una flotta di autobus: architettura di un progetto di acquisizione...
Monitorare una flotta di autobus: architettura di un progetto di acquisizione...Speck&Tech
 
Why LLMs should be handled with care
Why LLMs should be handled with careWhy LLMs should be handled with care
Why LLMs should be handled with careSpeck&Tech
 
Building intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsBuilding intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsSpeck&Tech
 
Privacy in the era of quantum computers
Privacy in the era of quantum computersPrivacy in the era of quantum computers
Privacy in the era of quantum computersSpeck&Tech
 
Give your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUsGive your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUsSpeck&Tech
 
From leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technologyFrom leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technologySpeck&Tech
 
Innovating Wood
Innovating WoodInnovating Wood
Innovating WoodSpeck&Tech
 
Behind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIXBehind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIXSpeck&Tech
 
Architecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for scienceArchitecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for scienceSpeck&Tech
 
Truck planning: how to certify the right route
Truck planning: how to certify the right routeTruck planning: how to certify the right route
Truck planning: how to certify the right routeSpeck&Tech
 
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...Speck&Tech
 
AI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPSAI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPSSpeck&Tech
 

More from Speck&Tech (20)

What should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futuresWhat should 6G be? - 6G: bridging gaps, connecting futures
What should 6G be? - 6G: bridging gaps, connecting futures
 
Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"Creare il sangue artificiale: "buon sangue non mente"
Creare il sangue artificiale: "buon sangue non mente"
 
AWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scalaAWS: gestire la scalabilità su larga scala
AWS: gestire la scalabilità su larga scala
 
Praticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web ServicesPraticamente... AWS - Amazon Web Services
Praticamente... AWS - Amazon Web Services
 
Data Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information designData Sense-making: navigating the world through the lens of information design
Data Sense-making: navigating the world through the lens of information design
 
Data Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as powerData Activism: data as rhetoric, data as power
Data Activism: data as rhetoric, data as power
 
Delve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomicsDelve into the world of the human microbiome and metagenomics
Delve into the world of the human microbiome and metagenomics
 
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
Home4MeAi: un progetto sociale che utilizza dispositivi IoT per sfruttare le ...
 
Monitorare una flotta di autobus: architettura di un progetto di acquisizione...
Monitorare una flotta di autobus: architettura di un progetto di acquisizione...Monitorare una flotta di autobus: architettura di un progetto di acquisizione...
Monitorare una flotta di autobus: architettura di un progetto di acquisizione...
 
Why LLMs should be handled with care
Why LLMs should be handled with careWhy LLMs should be handled with care
Why LLMs should be handled with care
 
Building intelligent applications with Large Language Models
Building intelligent applications with Large Language ModelsBuilding intelligent applications with Large Language Models
Building intelligent applications with Large Language Models
 
Privacy in the era of quantum computers
Privacy in the era of quantum computersPrivacy in the era of quantum computers
Privacy in the era of quantum computers
 
Give your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUsGive your Web App superpowers by using GPUs
Give your Web App superpowers by using GPUs
 
From leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technologyFrom leaf to orbit: exploring forests with technology
From leaf to orbit: exploring forests with technology
 
Innovating Wood
Innovating WoodInnovating Wood
Innovating Wood
 
Behind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIXBehind the scenes of our everyday Internet: the role of an IXP like MIX
Behind the scenes of our everyday Internet: the role of an IXP like MIX
 
Architecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for scienceArchitecting a 35 PB distributed parallel file system for science
Architecting a 35 PB distributed parallel file system for science
 
Truck planning: how to certify the right route
Truck planning: how to certify the right routeTruck planning: how to certify the right route
Truck planning: how to certify the right route
 
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
Break it up! 5G, cruise control, autonomous vehicle cooperation, and bending ...
 
AI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPSAI and Space: finally, no more arguing with the GPS
AI and Space: finally, no more arguing with the GPS
 

Recently uploaded

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Recently uploaded (20)

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

Machine learning with quantum computers

  • 1. Machine Learning with Quantum Computers Speck&Tech event Davide Pastorello Department of Mathematics, University of Bologna and Trento Institute for Fundamental Physics and Applications, INFN Impact Hub Trento. September 21, 2023 Picture credit: IBM
  • 2. Premise: The World is quantum At microscopic length scales (molecules, atoms, electrons,...): Newton’s laws of dynamics and electromagnetism based on Maxwell’s equations do not work. We need quantum mechanics to describe physical phenomena. Quantum things: • Superposition of states (is the electron either "here" or "there"? In both places!). • Observations alters the state of the observed system. (We observe the electron "here" with some probability) • Entanglement ("spooky action at distance" as Einstein said) Using physical phenomena to process information is a good and old idea... What if are we able to use quantum phenomena?
  • 3. A bit of history... 1981. At the First Conference of Physics of Computation (MIT), R. Feynman observed that quantum systems cannot be efficiently simulated by classical computers and proposed a model of quantum computer. 1985. D. Deutsch described the universal quantum computer in terms of the quantum Turing machine. 1994. P. Shor proposed an algorithm for a quantum computer to factor large integers in polynomial time. 1995. L. Grover presents the quantum search algorithm in an unsorted database. 2000s. First prototypes of working quantum computers. 2010s. Quantum computers on the market (e.g. D-Wave, IBM Q System 1).
  • 4. Present days (2023) • Anyone can run his/her quantum algorithms on available quantum machines (a basic access is usually free). • Real-life problems are tackled by quantum computers. • The interest by industry and non academic institutions is dramatically increasing. • Availability of fault-tolerant, error-corrected, universal quantum computers? Not yet, we are in the Noisy Intermediate-Scale Quantum (NISQ). • Quantum supremacy? Not yet. • Hot topics: quantum optimization and quantum machine learning...
  • 5. Quantum computers exist Examples of quantum computers: D-Wave IBM Quantum
  • 6. Quantum bits Examples of qubits: • Particles with spin 1/2; • Polarized Photons; • Controlled superconducting circuits.
  • 7. Qubits (mathematical description) Quantum state superposition The state of a qubit is a unit vector* in C2: | i = ↵|0i + |1i ↵, 2 C , |↵|2 + | |2 = 1 {|0i, |1i} computational basis. A measurement process affects the qubit state Measurement of a qubit (e.g. we measure the polarization of a photon) P(0) = |↵|2 P(1) = | |2 The qubit state after the measurement is |ii if the outcome is i = 0, 1. *The vectors | i and ei✓ | i with ✓ 2 R represent the same physical state.
  • 8. Qubits (mathematical description) Tensor product | i = ✓ ↵ ◆ 2 C2 |'i = ✓ ◆ 2 C2 | i ⌦ |'i = 0 B B @ ↵ ↵ 1 C C A 2 C4 2 qubits (as a composite system) are described in: C2 ⌦ C2 := span{| i ⌦ |'i : | i, |'i 2 C2 } = C4 . n qubits (as a composite system) are described in: (C2 )⌦n = C2n .
  • 9. A new kind of information Empirical evidence: Quantum randomness, state superpositions, entanglement are physical phenomena not simply theoretical interpretations. + Encoding information into qubits (or more general quantum objects) allows completely new kinds of: • information storing and processing • data representation • telecommunication • cybersecurity • ... In particular we are interested in machine learning!
  • 10. Quantum gates Let {|0i, |1i} be the computational basis • Hadamard gate: |xi H 1 p 2 (|0i + ( 1)x |1i) x 2 {0, 1} • Phase gate: ↵|0i + |1i P ↵|0i + ei |1i • CNOT gate: |xi • |xi |yi |x yi x, y 2 {0, 1} Theorem: {H, P⇡/4, CNOT} is a universal set for quantum computation.
  • 11. Machine learning with quantum computers? Achievements in Quantum Machine Learning (since 2013) Algorithm Quantum speedup K-medians Quadratic Hierarchical clustering Quadratic K-means Exponential Principal component analysis Exponential Support vector machines Exponential Several classifiers Exponential Neural networks ? General observation Quantum architectures enable new paradigms of data representation and information processing. Current challenge Devising quantum learning mechanisms for available or near-term quantum machines.
  • 12. A quantum binary classifier The classification model Assume data are represented in a feature space. The model assigns a binary label to a new data instance evaluating its similarity to any training point. Quantum implementation on the IBM ibmq_melbourne • Quantum superposition of training vectors; • Test instance in quantum superposition of the two classes; • Parallel computing over the superposed data. Classical complexity: O(Nd) Quantum complexity: O(log(Nd)) Reference: D. Pastorello, E. Blanzieri. A quantum binary classifier based on cosine similarity Proc. IEEE International Conference on Quantum Computing and Engineering (QCE 21)
  • 13. Some QML schemes designed for universal quantum computers • Quantum divisive clustering W. Aïmeur et al. Quantum clustering algorithms ICML ’07: Proceedings of the 24th international conference on Machine learning (2007) • Quantum principal component analysis S. Lloyd, et al. Quantum principal component analysis Nature Physics 10, 631 (2014) • Quantum support vector machine P. Rebentrost et al. Quantum support vector machine for big data classification Phys. Rev. Lett. 113, 130503 (2014) • Quantum nearest neighbor N. Wiebe et al. Quantum Algorithms for Nearest-Neighbor Methods for Supervised and Unsupervised Learning Quantum Information and Computation 15(3,4): 0318- 0358 (2015) • Quantum perceptron M. Schuld et al. Simulating a perceptron on a quantum computer Physics Letters A, 379, pp. 660-663 (2015) • Quantum meta-learning M. Wilson et al. Optimizing quantum heuristic with meta-learning Quantum Machine Intelligence 3 (2021)
  • 14. Quantum Annealing Quantum Annealers The hardware is a quantum spin glass, i.e. a collection of qubits arranged in the vertices of a graph (V , E) where edges represent the interactions between neighbors. Example: D-Wave Chimera topology
  • 15. Quantum Annealing Annealing process (annealing time ⇠ 20µs) By energy dissipation the quantum system evolves in the ground state (the less energetic state) corresponding to the solution of a given optimization problem.
  • 16. Quantum Annealing Shortcoming Representing a given problem into the quantum hardware architecture is difficult in general and can destroy the efficiency of the quantum computation. Proposed solution Quantum Annealing Learning Search (QALS): A hybrid quantum-classical algorithm enabling a learning mechanism so that the quantum machine learns the representation of the problem on its own without an expensive classical pre-processing. References: -) Davide Pastorello, E. Blanzieri. Quantum Annealing Learning Search for solving QUBO problems. Quantum Information Processing 18: 303 (2019) -) A. Bonomi et al. Quantum annealing learning search implementations in Quantum Information and Computation, v. 22, n. 3&4 (2022)
  • 17. ML with quantum annealers • Boltzmann machine implementation M.H. Amin Quantum Boltzmann machine Phys. Rev. X 8, 021050 (2018) • Classification N. T. Nguyen et al. Image classification using quantum inference on the D-wave 2X. In: 2018 IEEE International Conference on Rebooting Computing (ICRC), pp. 1-7. IEEE (2018) • Clustering V. Kumar et al. Quantum Annealing for Combinatorial Clustering Quantum Inf Process (2018) 17: 39 • Training of a SVM D. Willsch et al. Support vector machines on the D-wave quantum annealer Computer Physics Communications 248, 107006 (2020)
  • 18. ...and quantum neural networks? A feedforward QNN made by single-qubit rotations and CNOTs: A QNN of this form achieves higher values of effective dimension w.r.t. to a classical NN with same number of parameters. Ref.: A. Abbas et al. The power of quantum neural networks Nat. Comput. Sci. 1, 403-409 (2021)
  • 19. Some concluding remarks • Quantum architectures enable new kinds of data processing. • There is a bottleneck about the efficient data representation into quantum hardware (QRAM are not feasible yet). • The era of quantum machine learning is just started but it is maybe the most promising road for putting forward the frontiers of quantum computing. • The quantum-classical hybrid approach is the best way to use the existing quantum machines. • Providing efficient quantum algorithms is a very difficult task. So we have to devise learning mechanisms of new quantum algorithms towards a "quantum meta-learning"... In other words, quantum computers must learn how to solve problems on their own...
  • 20. Thanks for your attention! Picture credit: IBM