SlideShare a Scribd company logo
1 of 23
Download to read offline
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
 
pptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacespptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacesbutest
 
IRJET- Artificial Algorithms Comparative Study
IRJET-  	  Artificial Algorithms Comparative StudyIRJET-  	  Artificial Algorithms Comparative Study
IRJET- Artificial Algorithms Comparative StudyIRJET Journal
 
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 AlgorithmNECST 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 petrinetsAnirudh Kadevari
 
9 big o-notation
9 big o-notation9 big o-notation
9 big o-notationirdginfo
 
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 iswcSydGillani
 
Profiling Java Programs for Parallelism
Profiling Java Programs for ParallelismProfiling Java Programs for Parallelism
Profiling Java Programs for ParallelismDmitry 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-HardAnimesh 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 PROBLEMijfcstjournal
 
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 TSPCarrie Romero
 
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 AssignmentsIRJET Journal
 
Firefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsFirefly Algorithm: Recent Advances and Applications
Firefly Algorithm: Recent Advances and ApplicationsXin-She Yang
 
Comparative study of different algorithms
Comparative study of different algorithmsComparative study of different algorithms
Comparative study of different algorithmsijfcstjournal
 
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 algorithmIJMIT JOURNAL
 
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 AlgorithmEditor 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 algorithmsDr 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 forijcsa
 
Entropy 12-02268-v2
Entropy 12-02268-v2Entropy 12-02268-v2
Entropy 12-02268-v2CAA 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 2016ijcsbi
 
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.pdfNancy Ideker
 
Probabilistic Error Bounds for Reduced Order Modeling M&C2015
Probabilistic Error Bounds for Reduced Order Modeling M&C2015Probabilistic Error Bounds for Reduced Order Modeling M&C2015
Probabilistic Error Bounds for Reduced Order Modeling M&C2015Mohammad
 

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
 
Probabilistic Error Bounds for Reduced Order Modeling M&C2015
Probabilistic Error Bounds for Reduced Order Modeling M&C2015Probabilistic Error Bounds for Reduced Order Modeling M&C2015
Probabilistic Error Bounds for Reduced Order Modeling M&C2015
 

Recently uploaded

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 

Recently uploaded (20)

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 

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