SlideShare a Scribd company logo
Using Quantum Computers
Barry C. Sanders
Quantum Information Summer School
15-18 July 2019
Institute of Business Administration Karachi
What is computation?
 A [universal] computer is a [programmable]
machine that process input information (bits) into
output information (bits) via a logical sequence of
hardware instructions.
 Computation is the physical process in this
machine, determined by an algorithm, whose
purpose is to solve a computational problem.
 Computational problems arise as different types,
including ”decision”, “function”, “search”, “promise”
and ”optimization”.
Decision problems
 Map bits to a single bit (Yes/No).
 Boolean function f:{0,1}* {0,1}.
 Boolean function decomposable into NAND gates.
 NAND:{0,1}2 → {0,1}:
(x,y)↦ ¬(x ⋀ y).
 Problem complexity
concerns how space
and time costs scale
with size of problem
instance (#bits).
Complexity
 Space cost S
 Time cost T
 Given problem,
complexity
characterizes how
S and T grow with
respect to instance
n, which is the
number of bits
required to specify
the problem
Reversible computing
 Motivated 1960s to avoid heat generation
 Every logical mapping is reversible:
for each 𝐹: 0,1 *→ 0,1 * whose input and
output string are the same size, 𝐹−1 exists.
Fredkin Gate
Quantum computer
 Accepts classical information (bits) as input and
yields classical information (bits) as output
 Convert classical to quantum information
 Process quantum information in machine
 Measure quantum information
 Classical out as bits
 |Ψ = 𝜳𝒃 |𝒃 for |𝒃 qubit strings, eg |010 … 11 ,
which are vectors in Hilbert space.
 Processing by unitary maps (isometries on Hilbert
space: preserve inner product).
Not really parallelism
Universal quantum instructions
Schrödinger’s cat
Simulating Schrödinger’s cat
Building and using q computer
Physical representation of bit
Classical
 Mechanical: Position of
a gear or lever
 Dynamic RAM: charge
buildup in capacitor
 Read-only memory:
presence/absence of
conducting pathway
 Bar code
Quantum
 Magnetic: electron spin
or flux quantum
 Energy: dipole in atom
 Charge: Cooper pair left
or right of junction
 Light: Photon path or
polarization or arrival
time
Dealing with imperfection
Q Error Correction
 Block coding: a logical
qubit is represented by
a few physical qubits in
an entangled state
 Encode to overcome
exponential sensitivity
to decoherence
 Decode to extract
answer
Fault tolerance
 Each new instrument
brings new errors
 Fault tolerance ensures
that complicating the
set-up has the net
effect of reducing the
overall error.
 Convergence from q
threshold theorem
Using the q computer
Q algorithms
 Proven quadratic
speed-up such as
amplitude
amplification
 Believed
subexponential
speedup for hidden
abelian subgroup
Q simulation
 Hamiltonian simulation
for q-state input to q-
state output under
generic, restricted
Hamiltonian (H)
 Another definition
refers to analogue q
machine for dynamical
simulation trusting H
Hamiltonian H
 A q “program” is a unitary (isometric) map U of
states (Hilbert-space vectors): 𝑈|𝜓 = |𝜓 ,
|𝜓 = 𝜓 𝜓
 Stone’s theorem on one-parameter unitary groups:
∀𝑈(𝑡)∃𝐻(= 𝐻†
):𝑈 𝑡 = e−i𝐻𝑡
 Hamiltonian generates dynamics of a system; fits
with physicists’ concept of quantum mechanics
usingqcomp.pptx
H as an adjacency graph
y1
yd
x :
α1
αd 2
2
2
2
2
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
1
1
1
1 1
1
3
3
3
3
3
3
3
3
3
3
3
3
2
1
2
2
2
2
2
2
3
3
3
3
3
3
Solve Schrödinger’s Equation
 Solve state |𝜓 as a function of t.
 Determine the spectrum of H
 Find eigenvectors of H, e.g. ground state.
 Estimate mean of some operator 𝜓 Ω 𝜓
 Applications: Chemistry, Physics, coupled linear
equations, differential equations, machine learning,
….
H 2
Äntotal
˜
Y0
˜
Yt '
H
Y0
Yt
exp -it ˆ
H
{ }
exp -i
t
r
ˆ
˜
H ji
#
%
&
¢
(
i=1
N
Õ ˜
Yt
e
Physical
Space
QComp
Space
Q circuit for Pauli evolution
H H
S6
H H S2
Linear-equation solver
Linear equations for learning
 Fit model to data set
 Linear regression
 Regularization (regression with small coefficients).
 Principal-component analysis (dimensional
reduction via matrix factorization e.g. SVD*)
 Latent semantic analysis for natural language
processing using matrix factorization
 Recommender systems
 Deep learning
Harrow-Hassidim-Lloyd strategy
 Modify Kitaev’s eigenvalue-estimation algorithm for
Hermitian A
 Prepare and inject |𝒃 as input
 Then approximate |𝒃 in A-eigenbasis {|uj>} with
corresponding eigenvalues {lj}
 Requires O(nlogn) steps
 Kitaev q algorithm output: eigenvalues and
corresponding eigenvectors of A
 Then controlled rotations on |𝒃 and then undo to
get |𝒙
Aaronson’s Caveats
Four Caveats
Amplitude amplification
 Given output
determines
corresponding
black-box input
with high prob that
yields given output
 Uses √N queries for
N the domain size
 Quadratic q
improvement
Hidden Abelian Subgroup
Problem
 Consider group G, subgroup H, and set X
 For O(log|G|+log|X|)-bit oracular hiding function
f:G→X st f(g)=f(g’)⟺gH=g’H, determine generating
set for H from oracular evaluations of G
 Hard classically (subexponential); easy quantumly
(polynomial)
 Includes factoring, discrete logarithm, graph
isomorphism, shortest-vector
Shor algorithm
Quantum simulation
 For sparse Hamiltonian H on n degrees of freedom,
exp(-iHt) can be simulated with poly(n,t) gates
whereas superpolynomial classical unless BPP=BQP
 Can tractably approximate ground states for some
systems and some tensor-network states
 Applications to chemistry, condensed matter,
relativistic q dynamics, q field theory
Optimization
 Minimize 𝑓 𝑥 : 𝑔𝑖 𝑥 ≤ 0 , ℎ𝑗 𝑥 = 0 .
Combinatorial optimization
 Find optimum from a finite set of feasible solutions
 Approaches are generally search algorithms
 Not guaranteed to solve efficiently
 Applications: machine learning, auctions,
operations research, algorithms
Simulated annealing
 Metaheuristic* to approximate global optimum
 Goal: minimize energy of a system
 Agent moves probabilistically from current state s to
neighbor s’ or stays at s
 Accept worse neighbours with low probability as a way
to escape local optimal that are not global
 Acceptance prob depends on energy & “temperature”
*Problem-independent strategy to guide search
procedures for approximating global optima, including
sim annealing, evolutionary algorithms & local searches
Simulated annealing
Cooling schedule
 Temperature T corresponds to probability of
accepting jumps to worse neighbouring states
 Cooling must be slow to allow near-equilibrium
dynamics; depends on topography and present T
 Strategies for cooling include adaptive and
thermodynamic approaches
 Sometimes restart rather than continue from
current state and temperature
Quantum annealing
 Augments temperature-
driven jumps to worse
neighbours with
quantum tunneling
through bad-neighbour
regions
 Typically used for
combinatorial
optimization problems
Hamiltonian
 Construct problem Hamiltonian Hp whose ground
state encodes the problem.
 Start with ground state of simple Hamiltonian H0
 Cooling schedule slow compared to spectral gap
Boolean Satisfiability problem
 Boolean expression built from binary variables,
operation AND (∧), OR (∨), NOT and parentheses
 Literals include variables and their negation
 Conjunctive normal form:
• (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ ¬x1
 Conjunctive normal form:
 3SAT:
• (l1 ∨ l2 ∨ x2) ∧ (¬x2 ∨ l3 ∨ x3) ∧ (¬x3 ∨ l4 ∨ x4) ∧ ⋯ ∧ (¬xn −
3 ∨ ln − 2 ∨ xn − 2) ∧ (¬xn − 2 ∨ ln − 1 ∨ ln)
MAX-SAT
 Generalizes SAT
 What is maximum number of clauses that can be
satisfied in a Boolean expression?
 Efficiently solved approximately but NP-Hard
exactly.

More Related Content

PDF
Search and optimization on quantum accelerators - 2019-05-23
PDF
PDF
Quantum computation: past-now-future - 2021-06-19
PDF
quantum_computing_and_machine_learning.pdf
PDF
Quantum & AI in Finance
PPTX
Quantum & AI in Finance
PDF
Quantum Information Science 1st Edition R. Manenti && M. Motta
PDF
Quantum Information Science 1st Edition R. Manenti && M. Motta
Search and optimization on quantum accelerators - 2019-05-23
Quantum computation: past-now-future - 2021-06-19
quantum_computing_and_machine_learning.pdf
Quantum & AI in Finance
Quantum & AI in Finance
Quantum Information Science 1st Edition R. Manenti && M. Motta
Quantum Information Science 1st Edition R. Manenti && M. Motta

Similar to usingqcomp.pptx (20)

PPTX
Universal Adiabatic Quantum Computer v1.0
PPTX
An Introduction to Quantum Computers Architecture
PDF
This is presentation about quantum computing
PDF
2024-10-18 - IIT Kgp Qiskit Fall Fest.pdf
PPTX
quantum computing presentation for professionals
PDF
Towards quantum machine learning calogero zarbo - meet up
PDF
Quantum computation a review
PDF
Quantum algorithm for solving linear systems of equations
PDF
PPTX
Quantum computing and machine learning overview
PDF
Analyzing The Quantum Annealing Approach For Solving Linear Least Squares Pro...
PPTX
Quantum computing
PPTX
A short introduction to Quantum Computing and Quantum Cryptography
PDF
2024-11-05 - KAIST guest lecture - Aritra Sarkar
PPTX
Macaluso antonio meetup dli 2020-12-15
PDF
ML Reading Group (Intro to Quantum Computation)
PDF
Genomics algorithms on digital NISQ accelerators - 2019-01-25
PPTX
Strengths and limitations of quantum computing
PPT
Fundamentals of Quantum Computing
PPTX
Quantum Computing.pptx
Universal Adiabatic Quantum Computer v1.0
An Introduction to Quantum Computers Architecture
This is presentation about quantum computing
2024-10-18 - IIT Kgp Qiskit Fall Fest.pdf
quantum computing presentation for professionals
Towards quantum machine learning calogero zarbo - meet up
Quantum computation a review
Quantum algorithm for solving linear systems of equations
Quantum computing and machine learning overview
Analyzing The Quantum Annealing Approach For Solving Linear Least Squares Pro...
Quantum computing
A short introduction to Quantum Computing and Quantum Cryptography
2024-11-05 - KAIST guest lecture - Aritra Sarkar
Macaluso antonio meetup dli 2020-12-15
ML Reading Group (Intro to Quantum Computation)
Genomics algorithms on digital NISQ accelerators - 2019-01-25
Strengths and limitations of quantum computing
Fundamentals of Quantum Computing
Quantum Computing.pptx
Ad

Recently uploaded (20)

PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Lesson notes of climatology university.
PPTX
GDM (1) (1).pptx small presentation for students
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Final Presentation General Medicine 03-08-2024.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
01-Introduction-to-Information-Management.pdf
Cell Structure & Organelles in detailed.
Anesthesia in Laparoscopic Surgery in India
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Lesson notes of climatology university.
GDM (1) (1).pptx small presentation for students
VCE English Exam - Section C Student Revision Booklet
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Computing-Curriculum for Schools in Ghana
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Chinmaya Tiranga quiz Grand Finale.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Ad

usingqcomp.pptx

  • 1. Using Quantum Computers Barry C. Sanders Quantum Information Summer School 15-18 July 2019 Institute of Business Administration Karachi
  • 2. What is computation?  A [universal] computer is a [programmable] machine that process input information (bits) into output information (bits) via a logical sequence of hardware instructions.  Computation is the physical process in this machine, determined by an algorithm, whose purpose is to solve a computational problem.  Computational problems arise as different types, including ”decision”, “function”, “search”, “promise” and ”optimization”.
  • 3. Decision problems  Map bits to a single bit (Yes/No).  Boolean function f:{0,1}* {0,1}.  Boolean function decomposable into NAND gates.  NAND:{0,1}2 → {0,1}: (x,y)↦ ¬(x ⋀ y).  Problem complexity concerns how space and time costs scale with size of problem instance (#bits).
  • 4. Complexity  Space cost S  Time cost T  Given problem, complexity characterizes how S and T grow with respect to instance n, which is the number of bits required to specify the problem
  • 5. Reversible computing  Motivated 1960s to avoid heat generation  Every logical mapping is reversible: for each 𝐹: 0,1 *→ 0,1 * whose input and output string are the same size, 𝐹−1 exists. Fredkin Gate
  • 6. Quantum computer  Accepts classical information (bits) as input and yields classical information (bits) as output  Convert classical to quantum information  Process quantum information in machine  Measure quantum information  Classical out as bits  |Ψ = 𝜳𝒃 |𝒃 for |𝒃 qubit strings, eg |010 … 11 , which are vectors in Hilbert space.  Processing by unitary maps (isometries on Hilbert space: preserve inner product).
  • 11. Building and using q computer
  • 12. Physical representation of bit Classical  Mechanical: Position of a gear or lever  Dynamic RAM: charge buildup in capacitor  Read-only memory: presence/absence of conducting pathway  Bar code Quantum  Magnetic: electron spin or flux quantum  Energy: dipole in atom  Charge: Cooper pair left or right of junction  Light: Photon path or polarization or arrival time
  • 13. Dealing with imperfection Q Error Correction  Block coding: a logical qubit is represented by a few physical qubits in an entangled state  Encode to overcome exponential sensitivity to decoherence  Decode to extract answer Fault tolerance  Each new instrument brings new errors  Fault tolerance ensures that complicating the set-up has the net effect of reducing the overall error.  Convergence from q threshold theorem
  • 14. Using the q computer Q algorithms  Proven quadratic speed-up such as amplitude amplification  Believed subexponential speedup for hidden abelian subgroup Q simulation  Hamiltonian simulation for q-state input to q- state output under generic, restricted Hamiltonian (H)  Another definition refers to analogue q machine for dynamical simulation trusting H
  • 15. Hamiltonian H  A q “program” is a unitary (isometric) map U of states (Hilbert-space vectors): 𝑈|𝜓 = |𝜓 , |𝜓 = 𝜓 𝜓  Stone’s theorem on one-parameter unitary groups: ∀𝑈(𝑡)∃𝐻(= 𝐻† ):𝑈 𝑡 = e−i𝐻𝑡  Hamiltonian generates dynamics of a system; fits with physicists’ concept of quantum mechanics
  • 17. H as an adjacency graph y1 yd x : α1 αd 2 2 2 2 2 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 1 1 1 1 1 1 3 3 3 3 3 3 3 3 3 3 3 3 2 1 2 2 2 2 2 2 3 3 3 3 3 3
  • 18. Solve Schrödinger’s Equation  Solve state |𝜓 as a function of t.  Determine the spectrum of H  Find eigenvectors of H, e.g. ground state.  Estimate mean of some operator 𝜓 Ω 𝜓  Applications: Chemistry, Physics, coupled linear equations, differential equations, machine learning, ….
  • 19. H 2 Äntotal ˜ Y0 ˜ Yt ' H Y0 Yt exp -it ˆ H { } exp -i t r ˆ ˜ H ji # % & ¢ ( i=1 N Õ ˜ Yt e Physical Space QComp Space
  • 20. Q circuit for Pauli evolution H H S6 H H S2
  • 22. Linear equations for learning  Fit model to data set  Linear regression  Regularization (regression with small coefficients).  Principal-component analysis (dimensional reduction via matrix factorization e.g. SVD*)  Latent semantic analysis for natural language processing using matrix factorization  Recommender systems  Deep learning
  • 23. Harrow-Hassidim-Lloyd strategy  Modify Kitaev’s eigenvalue-estimation algorithm for Hermitian A  Prepare and inject |𝒃 as input  Then approximate |𝒃 in A-eigenbasis {|uj>} with corresponding eigenvalues {lj}  Requires O(nlogn) steps  Kitaev q algorithm output: eigenvalues and corresponding eigenvectors of A  Then controlled rotations on |𝒃 and then undo to get |𝒙
  • 26. Amplitude amplification  Given output determines corresponding black-box input with high prob that yields given output  Uses √N queries for N the domain size  Quadratic q improvement
  • 27. Hidden Abelian Subgroup Problem  Consider group G, subgroup H, and set X  For O(log|G|+log|X|)-bit oracular hiding function f:G→X st f(g)=f(g’)⟺gH=g’H, determine generating set for H from oracular evaluations of G  Hard classically (subexponential); easy quantumly (polynomial)  Includes factoring, discrete logarithm, graph isomorphism, shortest-vector
  • 29. Quantum simulation  For sparse Hamiltonian H on n degrees of freedom, exp(-iHt) can be simulated with poly(n,t) gates whereas superpolynomial classical unless BPP=BQP  Can tractably approximate ground states for some systems and some tensor-network states  Applications to chemistry, condensed matter, relativistic q dynamics, q field theory
  • 30. Optimization  Minimize 𝑓 𝑥 : 𝑔𝑖 𝑥 ≤ 0 , ℎ𝑗 𝑥 = 0 .
  • 31. Combinatorial optimization  Find optimum from a finite set of feasible solutions  Approaches are generally search algorithms  Not guaranteed to solve efficiently  Applications: machine learning, auctions, operations research, algorithms
  • 32. Simulated annealing  Metaheuristic* to approximate global optimum  Goal: minimize energy of a system  Agent moves probabilistically from current state s to neighbor s’ or stays at s  Accept worse neighbours with low probability as a way to escape local optimal that are not global  Acceptance prob depends on energy & “temperature” *Problem-independent strategy to guide search procedures for approximating global optima, including sim annealing, evolutionary algorithms & local searches
  • 34. Cooling schedule  Temperature T corresponds to probability of accepting jumps to worse neighbouring states  Cooling must be slow to allow near-equilibrium dynamics; depends on topography and present T  Strategies for cooling include adaptive and thermodynamic approaches  Sometimes restart rather than continue from current state and temperature
  • 35. Quantum annealing  Augments temperature- driven jumps to worse neighbours with quantum tunneling through bad-neighbour regions  Typically used for combinatorial optimization problems
  • 36. Hamiltonian  Construct problem Hamiltonian Hp whose ground state encodes the problem.  Start with ground state of simple Hamiltonian H0  Cooling schedule slow compared to spectral gap
  • 37. Boolean Satisfiability problem  Boolean expression built from binary variables, operation AND (∧), OR (∨), NOT and parentheses  Literals include variables and their negation  Conjunctive normal form: • (x1 ∨ ¬x2) ∧ (¬x1 ∨ x2 ∨ x3) ∧ ¬x1  Conjunctive normal form:  3SAT: • (l1 ∨ l2 ∨ x2) ∧ (¬x2 ∨ l3 ∨ x3) ∧ (¬x3 ∨ l4 ∨ x4) ∧ ⋯ ∧ (¬xn − 3 ∨ ln − 2 ∨ xn − 2) ∧ (¬xn − 2 ∨ ln − 1 ∨ ln)
  • 38. MAX-SAT  Generalizes SAT  What is maximum number of clauses that can be satisfied in a Boolean expression?  Efficiently solved approximately but NP-Hard exactly.