SlideShare a Scribd company logo
Investigation into the applicability of Grover’s
Algorithm to search problems
S. Al Hashemi
Engineering Science
Supervisor: Prof. G. Gulak
April 2019
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 1 / 23
Outline
1 Introduction to Quantum Computing
Quantum Computers
Comparison with Classical Computing
Qubits
Quantum Circuits
Time Complexity
2 Grover’s Algorithm
Problem Statement
Breakdown of Grover’s Algorithm
3 Simple Implementations of Grover’s Algorithm
Applied to SAT
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 2 / 23
Motivation and Objective
Motivation
Encryption cracking for
encryption schemes based on
the Shortest Vector Problem
(Lattice Schemes).
Fast global optimization of
mathmatical functions.
Machine Learning
Quantum Chemistry
Searching problems
Objective
Gain insight into the hardware requirements necessary to implement
Grover’s algorithm.
Develop test quantum circuits for known problems.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 3 / 23
Quantum Computers
First proposed by Richard Feynman
Takes advantage of several quantum theories to solve problems not
computable in polynomial time on classical computers.
Superposition of quantum state
Quantum entanglement of state
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 4 / 23
Comparison with classical computing
Classical Computers
Built on semiconducting material (ie. silicon)
Encode information into bits which operate by manipulating charge.
Deterministic in nature → you can know the state of a bit or a
group of bits before any measurement is made.
Quantum Computers
Construction depends on the model → popular forms of the qubit
model are built on superconducting material.
Encode information into qubits/qumodes.
Non-deterministic → probabilistic by nature.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 5 / 23
Qubits
Quantum Basis of Qubits
The state of a qubit is naturally described by a discrete basis of |0 , |1 →
the ground/excited states.
The general state of a qubit is thus:
|Ψ = α |0 + β |1 (1)
This can be further represented as:
|Ψ →
α
0
+
0
β
(2)
Normalization Constraint: |α|2 + |β|2 = 1
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 6 / 23
Quantum Gates
Quantum Gates
Unitary operations that modify the state of a qubit(s)
Must preserve probability amplitudes normalization.
NOT Gate HADAMARD Gate
X =
0 1
1 0
H = 1√
2
1 1
1 −1
X |0 =
0 1
1 0
1
0
= |1 H |0 = 1√
2
1 1
1 −1
1
0
= 1√
2
|0 + 1√
2
|1
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 7 / 23
Time Complexity
Quantum Complexity
Bounded-Error Quantum Polynomial Time (BQP) is a classification for a
set of problems that require a polynomial amount of resources on a
quantum computer.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 8 / 23
Grover’s Algorithm
Problem Statement
Given an input space Xn = {x0, x1, x2, . . . , xn} to an oracle function,
f (x) → {1, 0} it is the goal of the algorithm to find the target element x∗
such that f (x∗) = 1
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 9 / 23
Components of Grover’s Algorithm
Breakdown
The Oracle query step, Of
Amplitude Amplification, D
Initialize equal superposition of
states for i in range(
√
N) do
Perform Oracle Query Apply
Diffusion Operator
end
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 10 / 23
Oracle Query
It’s easy to say that there is a need to have a function that
distinguishes between good and bad inputs, s.t. for a unique input x∗,
f (x∗) = 1, but how is this accomplished on a quantum computer?
An input that satisfies the search criterion can have its phase
amplitude, αi flipped. That is:
αi → −αi (3)
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 11 / 23
Grover’s Diffusion Gate
Amplitude Amplification
Grover’s Diffusion Gate applies this mapping:
αx |x → (2µ − αx ) |x (4)
Here, µ = 1
N x αx ∀x ∈ {0, 1}n
Recall that the Oracle query operation flips the phase of the state’s
normalized amplitude: αx → −αx .
The first application of the Oracle gives µ = 1
N (N−1√
N
+ 1√
N
) ≈ 1√
N
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 12 / 23
Grover’s Diffusion Gate
Diffusion Gate Mapping
The result of this mapping will thus be:
For positive amplitudes:
1
N
→ (
2
√
N
−
1
√
N
) =
1
√
N
For the flipped amplitude:
−
1
N
→ (
2
√
N
+
1
√
N
) =
3
√
N
The amplitude of the marked (flipped) state increases! Grover’s algorithm
requires
√
N operations, before the marked state reaches a probability
amplitude such that the correct state will almost certainly be measured.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 13 / 23
Compilation Time and Problem Size
Problem Size
If items in the function space need n bits to be encoded, Grover’s
Algorithm requires approximately 2n qubits.
Depending on the problem at hand, an exponential number of
quantum gates (in n) are required.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 14 / 23
Satisfiability Application
This is the full circuit for the problem considered earlier with the search
criterion f (x == 111).
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 15 / 23
Satisfiability Application
Histogram of Satisfiability measurements
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 16 / 23
Conclusions
Quantum hardware is available and readily tested on, however major
challenges are still available for Grover’s algorithm to be applicable.
Grover’s Algorithm can succesfully solve an unstructured search in a
function space, given a constructed oracle, faster than any classical
methodology.
If practical, Grover’s Algorithm presents a threat to all Lattice-based
encryption schemes.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 17 / 23
Further Work
Investigate the scalability of the Oracle; can it be implemented for
simple problems without using an extra amount of qubits and
quantum gates?
Grover’s algorithm assumes the oracle is given, so for each new
quantum search a new one must be constructed.
Can an oracle be built that probabilistically encodes classes of search
problems?
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 18 / 23
Further Reading
Resources
L. Grover, ’A fast quantum mechanical algorithm for database
search,’ arXiv:quant- ph/9605043, 1996.
T. Laarhoven, M. Mosca, and J. V. D. Pol, “Solving the Shortest
Vector Problem in Lattices Faster Using Quantum Search,”
Post-Quantum Cryptography Lecture Notes in Computer Science, vol.
1, no. 6176, pp. 83–101, Jan. 2013.
Baritompa, William & W. Bulger, D & Wood, Graham. (2005).
Grover’s Quantum Algorithm Applied to Global Optimization. SIAM
Journal on Optimization. 15. 1170-1184. 10.1137/040605072.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 19 / 23
Questions?
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 20 / 23
Compilation Time and Problem Size
Quote from Craig Gidney from Google’s Quantum Computing
The actual obstacle to running Grover’s algorithm in practice is
that the circuits are large, so you need error correction, but this
adds significant overhead. Evaluating a function under superpo-
sition is easily a billion times less energy efficient than classically
computing the same function, using current techniques. This re-
quires you to go to absolutely enormous problem sizes in order
for the quadratic advantage to overcome this starting penalty, and
because Grover search cannot be paralelized the result is a quan-
tum circuit that will take on the order of a year or a decade to
evaluate. There are not very many problems where people would
be willing to wait ten years to make the computation 10x cheaper,
in terms of dollars, compared to running in parallel on a hundred
thousand cloud computers for a few weeks.
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 21 / 23
3-SAT Application
3-SAT Problem
The following is an application for the 3-SAT
(¬x1 ∧ ¬x3 ∧ ¬x4)∨
(x2 ∧ x3 ∧ ¬x4)∨
(x1 ∧ ¬x2 ∧ x4)∨
(x1 ∧ x3 ∧ x4)∨
(¬x1 ∧ x2 ∧ ¬x3)
https://firebasestorage.googleapis.com/v0/b/arduinohandler.
appspot.com/o/Photos%2F3SAT.png?alt=media&token=
ca052733-38ef-450e-bfd4-024bbb62d7d3
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 22 / 23
3-SAT Application
Resulting histogram of measured counts
S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 23 / 23

More Related Content

What's hot

ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...
ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...
ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...
Waqas Nawaz
 
International Journal of Computational Science and Information Technology (...
  International Journal of Computational Science and Information Technology (...  International Journal of Computational Science and Information Technology (...
International Journal of Computational Science and Information Technology (...
ijcsity
 
Daa unit 5
Daa unit 5Daa unit 5
Daa unit 5
Abhimanyu Mishra
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
Tanveer Malik
 
pptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacespptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspaces
butest
 
IRJET- Artificial Algorithms Comparative Study
IRJET-  	  Artificial Algorithms Comparative StudyIRJET-  	  Artificial Algorithms Comparative Study
IRJET- Artificial Algorithms Comparative Study
IRJET Journal
 
Av33274282
Av33274282Av33274282
Av33274282
IJERA Editor
 
A Scalable Dataflow Implementation of Curran's Approximation Algorithm
A Scalable Dataflow Implementation of Curran's Approximation AlgorithmA Scalable Dataflow Implementation of Curran's Approximation Algorithm
A Scalable Dataflow Implementation of Curran's Approximation Algorithm
NECST Lab @ Politecnico di Milano
 
Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)
Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)
Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)
Aditya Yadav
 
A novel technique for speech encryption based on k-means clustering and quant...
A novel technique for speech encryption based on k-means clustering and quant...A novel technique for speech encryption based on k-means clustering and quant...
A novel technique for speech encryption based on k-means clustering and quant...
journalBEEI
 
A modified reach ability tree approach to analysis of unbounded petrinets
A modified reach ability tree approach to analysis of unbounded petrinetsA modified reach ability tree approach to analysis of unbounded petrinets
A modified reach ability tree approach to analysis of unbounded petrinets
Anirudh Kadevari
 
9 big o-notation
9 big o-notation9 big o-notation
9 big o-notation
irdginfo
 
Gk3611601162
Gk3611601162Gk3611601162
Gk3611601162
IJERA Editor
 
P229 godfrey
P229 godfreyP229 godfrey
P229 godfrey
Yanis Belkasmi
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
theijes
 
Presentation iswc
Presentation iswcPresentation iswc
Presentation iswc
SydGillani
 
Profiling Java Programs for Parallelism
Profiling Java Programs for ParallelismProfiling Java Programs for Parallelism
Profiling Java Programs for Parallelism
Dmitry Anisimov
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
Animesh Chaturvedi
 

What's hot (18)

ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...
ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...
ICDE-2015 Shortest Path Traversal Optimization and Analysis for Large Graph C...
 
International Journal of Computational Science and Information Technology (...
  International Journal of Computational Science and Information Technology (...  International Journal of Computational Science and Information Technology (...
International Journal of Computational Science and Information Technology (...
 
Daa unit 5
Daa unit 5Daa unit 5
Daa unit 5
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
pptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacespptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspaces
 
IRJET- Artificial Algorithms Comparative Study
IRJET-  	  Artificial Algorithms Comparative StudyIRJET-  	  Artificial Algorithms Comparative Study
IRJET- Artificial Algorithms Comparative Study
 
Av33274282
Av33274282Av33274282
Av33274282
 
A Scalable Dataflow Implementation of Curran's Approximation Algorithm
A Scalable Dataflow Implementation of Curran's Approximation AlgorithmA Scalable Dataflow Implementation of Curran's Approximation Algorithm
A Scalable Dataflow Implementation of Curran's Approximation Algorithm
 
Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)
Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)
Automatski - NP-Complete - TSP - Travelling Salesman Problem Solved in O(N^4)
 
A novel technique for speech encryption based on k-means clustering and quant...
A novel technique for speech encryption based on k-means clustering and quant...A novel technique for speech encryption based on k-means clustering and quant...
A novel technique for speech encryption based on k-means clustering and quant...
 
A modified reach ability tree approach to analysis of unbounded petrinets
A modified reach ability tree approach to analysis of unbounded petrinetsA modified reach ability tree approach to analysis of unbounded petrinets
A modified reach ability tree approach to analysis of unbounded petrinets
 
9 big o-notation
9 big o-notation9 big o-notation
9 big o-notation
 
Gk3611601162
Gk3611601162Gk3611601162
Gk3611601162
 
P229 godfrey
P229 godfreyP229 godfrey
P229 godfrey
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
Presentation iswc
Presentation iswcPresentation iswc
Presentation iswc
 
Profiling Java Programs for Parallelism
Profiling Java Programs for ParallelismProfiling Java Programs for Parallelism
Profiling Java Programs for Parallelism
 
P, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-HardP, NP, NP-Complete, and NP-Hard
P, NP, NP-Complete, and NP-Hard
 

Similar to Thesis presentation

Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...
Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...
Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...
Editor IJCATR
 
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEMCOMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
ijfcstjournal
 
Algorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSPAlgorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSP
Carrie Romero
 
1308.3898 1
1308.3898 11308.3898 1
1308.3898 1
vin_bha1984
 
1308.3898
1308.38981308.3898
1308.3898
vin_bha1984
 
A Literature Review on Plagiarism Detection in Computer Programming Assignments
A Literature Review on Plagiarism Detection in Computer Programming AssignmentsA Literature Review on Plagiarism Detection in Computer Programming Assignments
A Literature Review on Plagiarism Detection in Computer Programming Assignments
IRJET Journal
 
Firefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsFirefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and Applications
Xin-She Yang
 
10.1.1.34.7361
10.1.1.34.736110.1.1.34.7361
10.1.1.34.7361
Rahmat Fauzi
 
Comparative study of different algorithms
Comparative study of different algorithmsComparative study of different algorithms
Comparative study of different algorithms
ijfcstjournal
 
Extended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmExtended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithm
IJMIT JOURNAL
 
Karas and atila
Karas and atilaKaras and atila
Karas and atila
Hieu Nguyen
 
Survey on classification algorithms for data mining (comparison and evaluation)
Survey on classification algorithms for data mining (comparison and evaluation)Survey on classification algorithms for data mining (comparison and evaluation)
Survey on classification algorithms for data mining (comparison and evaluation)
Alexander Decker
 
Job Scheduling on the Grid Environment using Max-Min Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min  Firefly AlgorithmJob Scheduling on the Grid Environment using Max-Min  Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min Firefly Algorithm
Editor IJCATR
 
Proposing a scheduling algorithm to balance the time and cost using a genetic...
Proposing a scheduling algorithm to balance the time and cost using a genetic...Proposing a scheduling algorithm to balance the time and cost using a genetic...
Proposing a scheduling algorithm to balance the time and cost using a genetic...
Editor IJCATR
 
Design and analysis of algorithms
Design and analysis of algorithmsDesign and analysis of algorithms
Design and analysis of algorithms
Dr Geetha Mohan
 
Integrating fuzzy and ant colony system for
Integrating fuzzy and ant colony system forIntegrating fuzzy and ant colony system for
Integrating fuzzy and ant colony system for
ijcsa
 
Entropy 12-02268-v2
Entropy 12-02268-v2Entropy 12-02268-v2
Entropy 12-02268-v2
CAA Sudan
 
Vol 16 No 2 - July-December 2016
Vol 16 No 2 - July-December 2016Vol 16 No 2 - July-December 2016
Vol 16 No 2 - July-December 2016
ijcsbi
 
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdfAn Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
Nancy Ideker
 
ProbErrorBoundROM_MC2015
ProbErrorBoundROM_MC2015ProbErrorBoundROM_MC2015
ProbErrorBoundROM_MC2015
Mohammad Abdo
 

Similar to Thesis presentation (20)

Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...
Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...
Proposing a New Job Scheduling Algorithm in Grid Environment Using a Combinat...
 
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEMCOMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
COMPARATIVE STUDY OF DIFFERENT ALGORITHMS TO SOLVE N QUEENS PROBLEM
 
Algorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSPAlgorithms And Optimization Techniques For Solving TSP
Algorithms And Optimization Techniques For Solving TSP
 
1308.3898 1
1308.3898 11308.3898 1
1308.3898 1
 
1308.3898
1308.38981308.3898
1308.3898
 
A Literature Review on Plagiarism Detection in Computer Programming Assignments
A Literature Review on Plagiarism Detection in Computer Programming AssignmentsA Literature Review on Plagiarism Detection in Computer Programming Assignments
A Literature Review on Plagiarism Detection in Computer Programming Assignments
 
Firefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsFirefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and Applications
 
10.1.1.34.7361
10.1.1.34.736110.1.1.34.7361
10.1.1.34.7361
 
Comparative study of different algorithms
Comparative study of different algorithmsComparative study of different algorithms
Comparative study of different algorithms
 
Extended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithmExtended pso algorithm for improvement problems k means clustering algorithm
Extended pso algorithm for improvement problems k means clustering algorithm
 
Karas and atila
Karas and atilaKaras and atila
Karas and atila
 
Survey on classification algorithms for data mining (comparison and evaluation)
Survey on classification algorithms for data mining (comparison and evaluation)Survey on classification algorithms for data mining (comparison and evaluation)
Survey on classification algorithms for data mining (comparison and evaluation)
 
Job Scheduling on the Grid Environment using Max-Min Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min  Firefly AlgorithmJob Scheduling on the Grid Environment using Max-Min  Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min Firefly Algorithm
 
Proposing a scheduling algorithm to balance the time and cost using a genetic...
Proposing a scheduling algorithm to balance the time and cost using a genetic...Proposing a scheduling algorithm to balance the time and cost using a genetic...
Proposing a scheduling algorithm to balance the time and cost using a genetic...
 
Design and analysis of algorithms
Design and analysis of algorithmsDesign and analysis of algorithms
Design and analysis of algorithms
 
Integrating fuzzy and ant colony system for
Integrating fuzzy and ant colony system forIntegrating fuzzy and ant colony system for
Integrating fuzzy and ant colony system for
 
Entropy 12-02268-v2
Entropy 12-02268-v2Entropy 12-02268-v2
Entropy 12-02268-v2
 
Vol 16 No 2 - July-December 2016
Vol 16 No 2 - July-December 2016Vol 16 No 2 - July-December 2016
Vol 16 No 2 - July-December 2016
 
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdfAn Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
An Efficient Genetic Algorithm for Solving Knapsack Problem.pdf
 
ProbErrorBoundROM_MC2015
ProbErrorBoundROM_MC2015ProbErrorBoundROM_MC2015
ProbErrorBoundROM_MC2015
 

Recently uploaded

Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
ssuser36d3051
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 

Recently uploaded (20)

Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
sieving analysis and results interpretation
sieving analysis and results interpretationsieving analysis and results interpretation
sieving analysis and results interpretation
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 

Thesis presentation

  • 1. Investigation into the applicability of Grover’s Algorithm to search problems S. Al Hashemi Engineering Science Supervisor: Prof. G. Gulak April 2019 S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 1 / 23
  • 2. Outline 1 Introduction to Quantum Computing Quantum Computers Comparison with Classical Computing Qubits Quantum Circuits Time Complexity 2 Grover’s Algorithm Problem Statement Breakdown of Grover’s Algorithm 3 Simple Implementations of Grover’s Algorithm Applied to SAT S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 2 / 23
  • 3. Motivation and Objective Motivation Encryption cracking for encryption schemes based on the Shortest Vector Problem (Lattice Schemes). Fast global optimization of mathmatical functions. Machine Learning Quantum Chemistry Searching problems Objective Gain insight into the hardware requirements necessary to implement Grover’s algorithm. Develop test quantum circuits for known problems. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 3 / 23
  • 4. Quantum Computers First proposed by Richard Feynman Takes advantage of several quantum theories to solve problems not computable in polynomial time on classical computers. Superposition of quantum state Quantum entanglement of state S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 4 / 23
  • 5. Comparison with classical computing Classical Computers Built on semiconducting material (ie. silicon) Encode information into bits which operate by manipulating charge. Deterministic in nature → you can know the state of a bit or a group of bits before any measurement is made. Quantum Computers Construction depends on the model → popular forms of the qubit model are built on superconducting material. Encode information into qubits/qumodes. Non-deterministic → probabilistic by nature. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 5 / 23
  • 6. Qubits Quantum Basis of Qubits The state of a qubit is naturally described by a discrete basis of |0 , |1 → the ground/excited states. The general state of a qubit is thus: |Ψ = α |0 + β |1 (1) This can be further represented as: |Ψ → α 0 + 0 β (2) Normalization Constraint: |α|2 + |β|2 = 1 S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 6 / 23
  • 7. Quantum Gates Quantum Gates Unitary operations that modify the state of a qubit(s) Must preserve probability amplitudes normalization. NOT Gate HADAMARD Gate X = 0 1 1 0 H = 1√ 2 1 1 1 −1 X |0 = 0 1 1 0 1 0 = |1 H |0 = 1√ 2 1 1 1 −1 1 0 = 1√ 2 |0 + 1√ 2 |1 S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 7 / 23
  • 8. Time Complexity Quantum Complexity Bounded-Error Quantum Polynomial Time (BQP) is a classification for a set of problems that require a polynomial amount of resources on a quantum computer. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 8 / 23
  • 9. Grover’s Algorithm Problem Statement Given an input space Xn = {x0, x1, x2, . . . , xn} to an oracle function, f (x) → {1, 0} it is the goal of the algorithm to find the target element x∗ such that f (x∗) = 1 S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 9 / 23
  • 10. Components of Grover’s Algorithm Breakdown The Oracle query step, Of Amplitude Amplification, D Initialize equal superposition of states for i in range( √ N) do Perform Oracle Query Apply Diffusion Operator end S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 10 / 23
  • 11. Oracle Query It’s easy to say that there is a need to have a function that distinguishes between good and bad inputs, s.t. for a unique input x∗, f (x∗) = 1, but how is this accomplished on a quantum computer? An input that satisfies the search criterion can have its phase amplitude, αi flipped. That is: αi → −αi (3) S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 11 / 23
  • 12. Grover’s Diffusion Gate Amplitude Amplification Grover’s Diffusion Gate applies this mapping: αx |x → (2µ − αx ) |x (4) Here, µ = 1 N x αx ∀x ∈ {0, 1}n Recall that the Oracle query operation flips the phase of the state’s normalized amplitude: αx → −αx . The first application of the Oracle gives µ = 1 N (N−1√ N + 1√ N ) ≈ 1√ N S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 12 / 23
  • 13. Grover’s Diffusion Gate Diffusion Gate Mapping The result of this mapping will thus be: For positive amplitudes: 1 N → ( 2 √ N − 1 √ N ) = 1 √ N For the flipped amplitude: − 1 N → ( 2 √ N + 1 √ N ) = 3 √ N The amplitude of the marked (flipped) state increases! Grover’s algorithm requires √ N operations, before the marked state reaches a probability amplitude such that the correct state will almost certainly be measured. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 13 / 23
  • 14. Compilation Time and Problem Size Problem Size If items in the function space need n bits to be encoded, Grover’s Algorithm requires approximately 2n qubits. Depending on the problem at hand, an exponential number of quantum gates (in n) are required. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 14 / 23
  • 15. Satisfiability Application This is the full circuit for the problem considered earlier with the search criterion f (x == 111). S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 15 / 23
  • 16. Satisfiability Application Histogram of Satisfiability measurements S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 16 / 23
  • 17. Conclusions Quantum hardware is available and readily tested on, however major challenges are still available for Grover’s algorithm to be applicable. Grover’s Algorithm can succesfully solve an unstructured search in a function space, given a constructed oracle, faster than any classical methodology. If practical, Grover’s Algorithm presents a threat to all Lattice-based encryption schemes. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 17 / 23
  • 18. Further Work Investigate the scalability of the Oracle; can it be implemented for simple problems without using an extra amount of qubits and quantum gates? Grover’s algorithm assumes the oracle is given, so for each new quantum search a new one must be constructed. Can an oracle be built that probabilistically encodes classes of search problems? S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 18 / 23
  • 19. Further Reading Resources L. Grover, ’A fast quantum mechanical algorithm for database search,’ arXiv:quant- ph/9605043, 1996. T. Laarhoven, M. Mosca, and J. V. D. Pol, “Solving the Shortest Vector Problem in Lattices Faster Using Quantum Search,” Post-Quantum Cryptography Lecture Notes in Computer Science, vol. 1, no. 6176, pp. 83–101, Jan. 2013. Baritompa, William & W. Bulger, D & Wood, Graham. (2005). Grover’s Quantum Algorithm Applied to Global Optimization. SIAM Journal on Optimization. 15. 1170-1184. 10.1137/040605072. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 19 / 23
  • 20. Questions? S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 20 / 23
  • 21. Compilation Time and Problem Size Quote from Craig Gidney from Google’s Quantum Computing The actual obstacle to running Grover’s algorithm in practice is that the circuits are large, so you need error correction, but this adds significant overhead. Evaluating a function under superpo- sition is easily a billion times less energy efficient than classically computing the same function, using current techniques. This re- quires you to go to absolutely enormous problem sizes in order for the quadratic advantage to overcome this starting penalty, and because Grover search cannot be paralelized the result is a quan- tum circuit that will take on the order of a year or a decade to evaluate. There are not very many problems where people would be willing to wait ten years to make the computation 10x cheaper, in terms of dollars, compared to running in parallel on a hundred thousand cloud computers for a few weeks. S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 21 / 23
  • 22. 3-SAT Application 3-SAT Problem The following is an application for the 3-SAT (¬x1 ∧ ¬x3 ∧ ¬x4)∨ (x2 ∧ x3 ∧ ¬x4)∨ (x1 ∧ ¬x2 ∧ x4)∨ (x1 ∧ x3 ∧ x4)∨ (¬x1 ∧ x2 ∧ ¬x3) https://firebasestorage.googleapis.com/v0/b/arduinohandler. appspot.com/o/Photos%2F3SAT.png?alt=media&token= ca052733-38ef-450e-bfd4-024bbb62d7d3 S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 22 / 23
  • 23. 3-SAT Application Resulting histogram of measured counts S. Al Hashemi (University of Toronto) Investigation into the applicability of Grover’s Algorithm to search problemsApril 2019 23 / 23