SlideShare a Scribd company logo
1 of 12
Quantum Machine Learning
Sasha Lazarevic, Qiskit Advocate
LZRVC.com
www.linkedin.com/in/LZRVC
Exploiting Quantum Phenomena
Superposition
Quantum Measurement
Entanglement
Interference
|Y⟩ = a|0⟩ + b|1⟩
Universal Quantum Computer
Architecture of the quantum computer
Quantum Processor
Analog instructions
Microarchitecture
Runtime
Transpiler
Compiler
Programming language
Algorithm
Problem representation Mathematical
model
Software
code
Firmware
Hardware
(quantum)
1 qubit can represent simultaneously 2 bits
2 qubits can represent 4 bits or 2^2
10 qubits can represent 2^10 bits or 128 bytes
30 qubits can represent 2^30 bits or 128 MB
40 qubits can represent 2^40 bits or 128 GB
50 qubits can represent 2^50 bits or 128 TB
…
1. Exploit superposition to keep more information
in quantum states
2. Exploit entanglement to parallelize operations
on these quantum states
3. Evolve the overall state to get expected results
4. Measure multiple times to get the probability
distribution of these results
Bit flip
Phase flip
Hadamard
CNOT
Toffoli
Meaasurement
Quantum gates Design of a quantum algorithm
Quantum circuit
Qubits
Classical bits
(results)
Initialization
Classical
computer
High-Value Use Cases for Finance
VaR / CVaR
Risk and scenario analysis
CVA and XVA
Derivative pricing
Portfolio optimization
Optimal arbitrage opportunities
Collateral optimization
Trade settlement
Combinatorial auction
Fraud detection
Customer scoring
Forecasting
Risk estimation
Dimensionality reduction
Synthetic data generation
Simulation Optimization Machine Learning
Quantum amplitude estimation
(AE)
Quantum Kernel Estimation (QKE)
Variational Quantum Classification (VQC)
Quantum PCA (qPCA)
Quantum Circuit Born Machines (QCBM)
Quantum Boltzmann Machines (QBM)
Convex optimization:
Quantum Semidefinite Programming (QSDP)
Combinatorial optimization:
QUBO -> Variational Quantum Eigensolver
(VQE) / Quantum Approximate Optimization
Algorithm (QAOA)
Mixed-Binary optimization:
3-ADMM-H -> QUBO with VQE/QAOA,
CPLEX
• Linear regression has been implemented using QPE and HHL
• Ridge regression, where QPE and QFT help find optimal value of the reg. parameter
• Perceptron can be implemented with Grover's search
• Support Vector Machine has been implemented with HHL algorithm
• k-means clustering and k-nearest neighbours classification can be improved with Grover's search
• Principal component analysis has been implemented with QPE and VQA
• Autoencoders have been implemented with VQA
• Restricted Boltzmann Machines have been implemented as Var-QBM
• Deep neural networks can be implemented as hybrid models with VQA
• GANs training has been done in a way that Generator or Discriminator use associative QBM-based NNs
• Synthetic data has been generated with QCBM
• Model-based RL can be enhanced with Grover's algorithm to find rewarding action-sequences
• RL Q-learning has been successfully tested with QBM, which generates values of the Q-value function
• Monte-Carlo sampling, implemented with QAE, can be used for policy evaluation in RL
Quantum Algorithms :
• QPE – Quantum Phase Estimation
• QAE – Quantum Amplitude Estimation
• QFT – Quantum Fourier Transform
• HHL - Harrow-Hassidim-Lloyd
• Grover’s search
• VQA/E – Variational Quantum Algorithm / Eigensolver
• QAOA – Quantum Approximate Optimization Algorithm
• QCBM – Quantum Circuit Born Machine
• QBM – Quantum Boltzmann Machines
Quantum-enhanced Machine Learning
Error-free NISQ
QPE ✓
QAE ✓
QFT ✓
HHL ✓
Grover’s ✓
VQA/E ✓
QAOA ✓
QCBM ✓
QBM ✓
Data Encoding
Basis
𝑥 = 0.1, −0.8, 1.0
First, convert to binary numbers
(up to a precision, lets’ say 𝜏=5)
𝑥 = 00011, 11001, 11111
Add a sign bit (0 for +, 1 for -):
𝑥 = 000011, 111001, 011111
Our state can be written as :
| ⟩
𝜓 = | ⟩
000011111001011111
Next, initialize qubits and use bit
flip to create this state.
Advantage: Easy to create
Disadvantage: Requires
𝜏+1*(#𝑥) qubits
Not suitable for NISQ computers
Amplitude
𝑥 = 0.1, −0.8, 1.0
First, normalize it :
𝑥 = 0.12 + −0.82 +12= 1.2845
𝑥 =
0.1
1.2845
,
−0.8
1.2845
,
1
1.2845
Pad it to log2(#𝑥) elements:
𝑥 = 0.078, −0.623, 0.779, 0
Our state can be written as :
| ⟩
𝜓 = 0.078| ⟩
00 - 0.623| ⟩
01 + 0.779| ⟩
10 + 0| ⟩
11
Next, make a custom operator to create this state.
Advantage: Uses log2N qubits to encode N features
Disadvantage: Depth of encoding circuit
Not suitable for NISQ computers
Angle
𝑥 = 0.1, −0.8, 1.0
Rescale the data to 0-2𝜋 radians:
𝑥 = 3.45575, 0.62832, 6.28319
Use X rotation for each data point:
⟩
|𝜓1 = 𝑅𝑥(3.45575)
⟩
|𝜓2 = 𝑅𝑥(0.62832)
⟩
|𝜓3 = 𝑅𝑥 6.28319
Advantage: Can be used for NISQ
Higher-order Angle
Repeat angle encoding circuit multiple times
This can encode complex frequencies, as the
frequency spectrum increases linearly with
the number of repetitions
Intertwine encoding with data processing
In Qiskit implemented with PauliFeatureMap
and ZZFeatureMap as rotation around Z axis
QML Training Process
Training procedure :
1. Data Encoding
• Basis
• Amplitude
• Angle
2. Variational Circuit
• Expressive power
3. Measurements (readouts)
4. Cost Function
5. Analytic Gradient Descent
6. Update parameters
7. Run again until convergence
- Parameter shift rule and Linear combination
- Natural gradient
• Higher entangling capability means being better able to capture non-trivial
correlations in the input data
• Expressivity increases with stacking up several layers
Labels extraction :
• based on parity or
• measuring only the first qubit
Beware of the barren plateau !
How to implement non-linearity ?
• QFT
• repeat-until-success schemes
• Use stochastic nature of measurement
QML – Neural Networks
Source: S. Mangini et al 2021 EPL 134 1000
QML - Kernel Methods
Quantum Kernels - SVM
Feature maps help resolve the data non-linearity problem
Dual formulation reduces the dimensions of the search space through
a function that implicitly encodes the feature map
But to ensure quantum
speedup, the quantum
kernel function Φ(𝑥) has
to be hard to estimate
clasically.
Idea: Design quantum
kernels to exploit the
group structure in data.
Example is DLOG kernel
Sources:
Global Qiskit Summer School 2021
https://arxiv.org/pdf/2010.02174.pdf
QML – Coding Examples
• Building hybrid quantum-classical classifier
• Hybrid quantum-classical neural network for MNIST recognition
• 6
• Quantum Support Vector Machine
https://github.com/LZRVC/Quantum-Computing
Your next steps
https://www.meetup.com/Quantum-Serbia
https://www.linkedin.com/groups/9024908/
email: quantumserbia@gmail.com
https://qiskit.org/advocates/
Join :
Learn :
From Books
• Qiskit Textbook (https://qiskit.org/textbook) by IBM
• Quantum Computation and Quantum Information by
M. Nielson, I.Chuang
• Quantum Programming Illustrated by Aleksandar Radovanovic
• Introduction to Quantum Information Science by Vlatko Vedral
• Quantum Computing for Computer Scientists by N. Yanofski
• Machine Learning with Quantum Computers by Maria Schuld
Online Courses
• CaltechX, DelftX (2018) Quantum Cryptography (edX, online)
• Keio (2018) Understanding Quantum Computers (futurelearn.com)
IBM Qiskit Summer Schools (in July, online)
• TUDelft (2021) The Hardware of a Quantum Computer (edX, online)
Thank you!
Sasha Lazarevic
Qiskit Advocate
Sasha.Lazarevic@gmail.com
www.linkedin.com/in/lzrvc

More Related Content

Similar to [Q-tangled 22] Deconstructing Quantum Machine Learning Algorithms - Sasha Lazarevic

Optimizing Terascale Machine Learning Pipelines with Keystone ML
Optimizing Terascale Machine Learning Pipelines with Keystone MLOptimizing Terascale Machine Learning Pipelines with Keystone ML
Optimizing Terascale Machine Learning Pipelines with Keystone MLSpark Summit
 
Quantum Computing and Qiskit
Quantum Computing and QiskitQuantum Computing and Qiskit
Quantum Computing and QiskitPooja Mistry
 
QGATE 0.3: QUANTUM CIRCUIT SIMULATOR
QGATE 0.3: QUANTUM CIRCUIT SIMULATORQGATE 0.3: QUANTUM CIRCUIT SIMULATOR
QGATE 0.3: QUANTUM CIRCUIT SIMULATORNVIDIA Japan
 
Performance Benchmarking of the R Programming Environment on the Stampede 1.5...
Performance Benchmarking of the R Programming Environment on the Stampede 1.5...Performance Benchmarking of the R Programming Environment on the Stampede 1.5...
Performance Benchmarking of the R Programming Environment on the Stampede 1.5...James McCombs
 
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...Tom Hubregtsen
 
Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)DonghyunKang12
 
Quantum Computing with Amazon Braket
Quantum Computing with Amazon BraketQuantum Computing with Amazon Braket
Quantum Computing with Amazon BraketChris Fregly
 
Traffic Demand Prediction Based Dynamic Transition Convolutional Neural Network
Traffic Demand Prediction Based Dynamic Transition Convolutional Neural NetworkTraffic Demand Prediction Based Dynamic Transition Convolutional Neural Network
Traffic Demand Prediction Based Dynamic Transition Convolutional Neural Networkivaderivader
 
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNetFrom Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNetEric Haibin Lin
 
Quantum computing in machine learning
Quantum computing in machine learningQuantum computing in machine learning
Quantum computing in machine learningkhalidhassan105
 
Exploring Optimization in Vowpal Wabbit
Exploring Optimization in Vowpal WabbitExploring Optimization in Vowpal Wabbit
Exploring Optimization in Vowpal WabbitShiladitya Sen
 
Efficient execution of quantized deep learning models a compiler approach
Efficient execution of quantized deep learning models a compiler approachEfficient execution of quantized deep learning models a compiler approach
Efficient execution of quantized deep learning models a compiler approachjemin lee
 
Strengths and limitations of quantum computing
Strengths and limitations of quantum computingStrengths and limitations of quantum computing
Strengths and limitations of quantum computingVinayak Sharma
 
Search and optimization on quantum accelerators - 2019-05-23
Search and optimization on quantum accelerators - 2019-05-23Search and optimization on quantum accelerators - 2019-05-23
Search and optimization on quantum accelerators - 2019-05-23Aritra Sarkar
 

Similar to [Q-tangled 22] Deconstructing Quantum Machine Learning Algorithms - Sasha Lazarevic (20)

Optimizing Terascale Machine Learning Pipelines with Keystone ML
Optimizing Terascale Machine Learning Pipelines with Keystone MLOptimizing Terascale Machine Learning Pipelines with Keystone ML
Optimizing Terascale Machine Learning Pipelines with Keystone ML
 
Quantum Computing and Qiskit
Quantum Computing and QiskitQuantum Computing and Qiskit
Quantum Computing and Qiskit
 
QGATE 0.3: QUANTUM CIRCUIT SIMULATOR
QGATE 0.3: QUANTUM CIRCUIT SIMULATORQGATE 0.3: QUANTUM CIRCUIT SIMULATOR
QGATE 0.3: QUANTUM CIRCUIT SIMULATOR
 
Performance Benchmarking of the R Programming Environment on the Stampede 1.5...
Performance Benchmarking of the R Programming Environment on the Stampede 1.5...Performance Benchmarking of the R Programming Environment on the Stampede 1.5...
Performance Benchmarking of the R Programming Environment on the Stampede 1.5...
 
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
 
2017 10 17_quantum_program_v2
2017 10 17_quantum_program_v22017 10 17_quantum_program_v2
2017 10 17_quantum_program_v2
 
Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)Cvpr 2018 papers review (efficient computing)
Cvpr 2018 papers review (efficient computing)
 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
 
Quantum computing
Quantum computingQuantum computing
Quantum computing
 
Quantum Computing with Amazon Braket
Quantum Computing with Amazon BraketQuantum Computing with Amazon Braket
Quantum Computing with Amazon Braket
 
Svm on cloud (presntation)
Svm on cloud  (presntation)Svm on cloud  (presntation)
Svm on cloud (presntation)
 
Traffic Demand Prediction Based Dynamic Transition Convolutional Neural Network
Traffic Demand Prediction Based Dynamic Transition Convolutional Neural NetworkTraffic Demand Prediction Based Dynamic Transition Convolutional Neural Network
Traffic Demand Prediction Based Dynamic Transition Convolutional Neural Network
 
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNetFrom Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
From Hours to Minutes: The Journey of Optimizing Mask-RCNN and BERT Using MXNet
 
Quantum computing in machine learning
Quantum computing in machine learningQuantum computing in machine learning
Quantum computing in machine learning
 
Exploring Optimization in Vowpal Wabbit
Exploring Optimization in Vowpal WabbitExploring Optimization in Vowpal Wabbit
Exploring Optimization in Vowpal Wabbit
 
Deep Learning
Deep LearningDeep Learning
Deep Learning
 
Quantum & AI in Finance
Quantum & AI in FinanceQuantum & AI in Finance
Quantum & AI in Finance
 
Efficient execution of quantized deep learning models a compiler approach
Efficient execution of quantized deep learning models a compiler approachEfficient execution of quantized deep learning models a compiler approach
Efficient execution of quantized deep learning models a compiler approach
 
Strengths and limitations of quantum computing
Strengths and limitations of quantum computingStrengths and limitations of quantum computing
Strengths and limitations of quantum computing
 
Search and optimization on quantum accelerators - 2019-05-23
Search and optimization on quantum accelerators - 2019-05-23Search and optimization on quantum accelerators - 2019-05-23
Search and optimization on quantum accelerators - 2019-05-23
 

More from DataScienceConferenc1

[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdf
[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdf[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdf
[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdfDataScienceConferenc1
 
[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...
[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...
[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...DataScienceConferenc1
 
[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdf
[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdf[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdf
[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdfDataScienceConferenc1
 
[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdf
[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdf[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdf
[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdfDataScienceConferenc1
 
[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdf
[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdf[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdf
[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdfDataScienceConferenc1
 
[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptx
[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptx[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptx
[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptxDataScienceConferenc1
 
[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdf
[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdf[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdf
[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdfDataScienceConferenc1
 
[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...
[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...
[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...DataScienceConferenc1
 
[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdf
[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdf[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdf
[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdfDataScienceConferenc1
 
[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...
[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...
[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...DataScienceConferenc1
 
[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...
[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...
[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...DataScienceConferenc1
 
[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdf
[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdf[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdf
[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdfDataScienceConferenc1
 
[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptx
[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptx[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptx
[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptxDataScienceConferenc1
 
[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...
[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...
[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...DataScienceConferenc1
 
[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptx
[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptx[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptx
[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptxDataScienceConferenc1
 
[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...
[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...
[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...DataScienceConferenc1
 
[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...
[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...
[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...DataScienceConferenc1
 
[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptx
[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptx[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptx
[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptxDataScienceConferenc1
 
[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptx
[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptx[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptx
[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptxDataScienceConferenc1
 
[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdf
[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdf[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdf
[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdfDataScienceConferenc1
 

More from DataScienceConferenc1 (20)

[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdf
[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdf[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdf
[DSC MENA 24] Mostafa_Essa_-_Ai_and_cloud.pdf
 
[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...
[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...
[DSC MENA 24] Yasser_El_Bendary - How NLP & LLMs model can excel in comprehen...
 
[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdf
[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdf[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdf
[DSC MENA 24] Medhat_Kandil - Empowering Egypt's AI & Biotechnology Scenes.pdf
 
[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdf
[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdf[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdf
[DSC MENA 24] Youssef_Kamal - Data governance and quality.pdf
 
[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdf
[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdf[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdf
[DSC MENA 24] Abdelrahman_Ghallab_-_Data_Product_mgmt.pdf
 
[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptx
[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptx[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptx
[DSC MENA 24] Asmaa_Eltaher_-_Innovation_Beyond_Brainstorming.pptx
 
[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdf
[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdf[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdf
[DSC MENA 24] Muhammad_Ezzat_-_Sustianable_Growth_Empowerment.pdf
 
[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...
[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...
[DSC MENA 24] Basma_Rady_-_Building_a_Data_Driven_Culture_in_Your_Organizatio...
 
[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdf
[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdf[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdf
[DSC MENA 24] Ahmed_Muselhy_-_Unveiling-the-Secrets-of-AI-in-Hiring.pdf
 
[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...
[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...
[DSC MENA 24] Ziad_Diab_-_Data-Driven_Disruption_-_The_Role_of_Data_Strategy_...
 
[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...
[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...
[DSC MENA 24] Mohammad_Essam_- Leveraging Scene Graphs for Generative AI and ...
 
[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdf
[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdf[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdf
[DSC MENA 24] Ahmed_Fahmy - Navigating the Future.pdf
 
[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptx
[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptx[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptx
[DSC MENA 24] Hany_Saad_Gheit_-_Azure_OpenAI_service.pptx
 
[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...
[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...
[DSC MENA 24] Nezar_El_Kady_-_From_Turing_to_Transformers__Navigating_the_AI_...
 
[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptx
[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptx[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptx
[DSC MENA 24] Amira_Abdelaziz_-_AI_in_Financial_Services.pptx
 
[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...
[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...
[DSC MENA 24] Omar_Ossama - My Journey from the Field of Oil & Gas, to the Ex...
 
[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...
[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...
[DSC MENA 24] Ramy_Agieb_-_Advancements_in_Artificial_Intelligence_for_Cybers...
 
[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptx
[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptx[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptx
[DSC MENA 24] Sohaila_Diab_-_Lets_Talk_Gen_AI_Presentation.pptx
 
[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptx
[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptx[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptx
[DSC MENA 24] Amal_Elgammal_-_QUALITOP_presentation.pptx
 
[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdf
[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdf[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdf
[DSC MENA 24] Abdelrahman_Sleem_-_AI_For_Marketing_DSC.pdf
 

Recently uploaded

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 

[Q-tangled 22] Deconstructing Quantum Machine Learning Algorithms - Sasha Lazarevic

  • 1. Quantum Machine Learning Sasha Lazarevic, Qiskit Advocate LZRVC.com www.linkedin.com/in/LZRVC
  • 2. Exploiting Quantum Phenomena Superposition Quantum Measurement Entanglement Interference |Y⟩ = a|0⟩ + b|1⟩
  • 3. Universal Quantum Computer Architecture of the quantum computer Quantum Processor Analog instructions Microarchitecture Runtime Transpiler Compiler Programming language Algorithm Problem representation Mathematical model Software code Firmware Hardware (quantum) 1 qubit can represent simultaneously 2 bits 2 qubits can represent 4 bits or 2^2 10 qubits can represent 2^10 bits or 128 bytes 30 qubits can represent 2^30 bits or 128 MB 40 qubits can represent 2^40 bits or 128 GB 50 qubits can represent 2^50 bits or 128 TB … 1. Exploit superposition to keep more information in quantum states 2. Exploit entanglement to parallelize operations on these quantum states 3. Evolve the overall state to get expected results 4. Measure multiple times to get the probability distribution of these results Bit flip Phase flip Hadamard CNOT Toffoli Meaasurement Quantum gates Design of a quantum algorithm Quantum circuit Qubits Classical bits (results) Initialization Classical computer
  • 4. High-Value Use Cases for Finance VaR / CVaR Risk and scenario analysis CVA and XVA Derivative pricing Portfolio optimization Optimal arbitrage opportunities Collateral optimization Trade settlement Combinatorial auction Fraud detection Customer scoring Forecasting Risk estimation Dimensionality reduction Synthetic data generation Simulation Optimization Machine Learning Quantum amplitude estimation (AE) Quantum Kernel Estimation (QKE) Variational Quantum Classification (VQC) Quantum PCA (qPCA) Quantum Circuit Born Machines (QCBM) Quantum Boltzmann Machines (QBM) Convex optimization: Quantum Semidefinite Programming (QSDP) Combinatorial optimization: QUBO -> Variational Quantum Eigensolver (VQE) / Quantum Approximate Optimization Algorithm (QAOA) Mixed-Binary optimization: 3-ADMM-H -> QUBO with VQE/QAOA, CPLEX
  • 5. • Linear regression has been implemented using QPE and HHL • Ridge regression, where QPE and QFT help find optimal value of the reg. parameter • Perceptron can be implemented with Grover's search • Support Vector Machine has been implemented with HHL algorithm • k-means clustering and k-nearest neighbours classification can be improved with Grover's search • Principal component analysis has been implemented with QPE and VQA • Autoencoders have been implemented with VQA • Restricted Boltzmann Machines have been implemented as Var-QBM • Deep neural networks can be implemented as hybrid models with VQA • GANs training has been done in a way that Generator or Discriminator use associative QBM-based NNs • Synthetic data has been generated with QCBM • Model-based RL can be enhanced with Grover's algorithm to find rewarding action-sequences • RL Q-learning has been successfully tested with QBM, which generates values of the Q-value function • Monte-Carlo sampling, implemented with QAE, can be used for policy evaluation in RL Quantum Algorithms : • QPE – Quantum Phase Estimation • QAE – Quantum Amplitude Estimation • QFT – Quantum Fourier Transform • HHL - Harrow-Hassidim-Lloyd • Grover’s search • VQA/E – Variational Quantum Algorithm / Eigensolver • QAOA – Quantum Approximate Optimization Algorithm • QCBM – Quantum Circuit Born Machine • QBM – Quantum Boltzmann Machines Quantum-enhanced Machine Learning Error-free NISQ QPE ✓ QAE ✓ QFT ✓ HHL ✓ Grover’s ✓ VQA/E ✓ QAOA ✓ QCBM ✓ QBM ✓
  • 6. Data Encoding Basis 𝑥 = 0.1, −0.8, 1.0 First, convert to binary numbers (up to a precision, lets’ say 𝜏=5) 𝑥 = 00011, 11001, 11111 Add a sign bit (0 for +, 1 for -): 𝑥 = 000011, 111001, 011111 Our state can be written as : | ⟩ 𝜓 = | ⟩ 000011111001011111 Next, initialize qubits and use bit flip to create this state. Advantage: Easy to create Disadvantage: Requires 𝜏+1*(#𝑥) qubits Not suitable for NISQ computers Amplitude 𝑥 = 0.1, −0.8, 1.0 First, normalize it : 𝑥 = 0.12 + −0.82 +12= 1.2845 𝑥 = 0.1 1.2845 , −0.8 1.2845 , 1 1.2845 Pad it to log2(#𝑥) elements: 𝑥 = 0.078, −0.623, 0.779, 0 Our state can be written as : | ⟩ 𝜓 = 0.078| ⟩ 00 - 0.623| ⟩ 01 + 0.779| ⟩ 10 + 0| ⟩ 11 Next, make a custom operator to create this state. Advantage: Uses log2N qubits to encode N features Disadvantage: Depth of encoding circuit Not suitable for NISQ computers Angle 𝑥 = 0.1, −0.8, 1.0 Rescale the data to 0-2𝜋 radians: 𝑥 = 3.45575, 0.62832, 6.28319 Use X rotation for each data point: ⟩ |𝜓1 = 𝑅𝑥(3.45575) ⟩ |𝜓2 = 𝑅𝑥(0.62832) ⟩ |𝜓3 = 𝑅𝑥 6.28319 Advantage: Can be used for NISQ Higher-order Angle Repeat angle encoding circuit multiple times This can encode complex frequencies, as the frequency spectrum increases linearly with the number of repetitions Intertwine encoding with data processing In Qiskit implemented with PauliFeatureMap and ZZFeatureMap as rotation around Z axis
  • 7. QML Training Process Training procedure : 1. Data Encoding • Basis • Amplitude • Angle 2. Variational Circuit • Expressive power 3. Measurements (readouts) 4. Cost Function 5. Analytic Gradient Descent 6. Update parameters 7. Run again until convergence - Parameter shift rule and Linear combination - Natural gradient • Higher entangling capability means being better able to capture non-trivial correlations in the input data • Expressivity increases with stacking up several layers Labels extraction : • based on parity or • measuring only the first qubit Beware of the barren plateau ! How to implement non-linearity ? • QFT • repeat-until-success schemes • Use stochastic nature of measurement
  • 8. QML – Neural Networks Source: S. Mangini et al 2021 EPL 134 1000
  • 9. QML - Kernel Methods Quantum Kernels - SVM Feature maps help resolve the data non-linearity problem Dual formulation reduces the dimensions of the search space through a function that implicitly encodes the feature map But to ensure quantum speedup, the quantum kernel function Φ(𝑥) has to be hard to estimate clasically. Idea: Design quantum kernels to exploit the group structure in data. Example is DLOG kernel Sources: Global Qiskit Summer School 2021 https://arxiv.org/pdf/2010.02174.pdf
  • 10. QML – Coding Examples • Building hybrid quantum-classical classifier • Hybrid quantum-classical neural network for MNIST recognition • 6 • Quantum Support Vector Machine https://github.com/LZRVC/Quantum-Computing
  • 11. Your next steps https://www.meetup.com/Quantum-Serbia https://www.linkedin.com/groups/9024908/ email: quantumserbia@gmail.com https://qiskit.org/advocates/ Join : Learn : From Books • Qiskit Textbook (https://qiskit.org/textbook) by IBM • Quantum Computation and Quantum Information by M. Nielson, I.Chuang • Quantum Programming Illustrated by Aleksandar Radovanovic • Introduction to Quantum Information Science by Vlatko Vedral • Quantum Computing for Computer Scientists by N. Yanofski • Machine Learning with Quantum Computers by Maria Schuld Online Courses • CaltechX, DelftX (2018) Quantum Cryptography (edX, online) • Keio (2018) Understanding Quantum Computers (futurelearn.com) IBM Qiskit Summer Schools (in July, online) • TUDelft (2021) The Hardware of a Quantum Computer (edX, online)
  • 12. Thank you! Sasha Lazarevic Qiskit Advocate Sasha.Lazarevic@gmail.com www.linkedin.com/in/lzrvc