Mind the gap Solving optimization problems with a quantum computer

Similar documents
The Quantum Adiabatic Algorithm

Mind the gap Solving optimization problems with a quantum computer

Mind the gap Solving optimization problems with a quantum computer

Numerical Studies of Adiabatic Quantum Computation applied to Optimization and Graph Isomorphism

Numerical Studies of the Quantum Adiabatic Algorithm

Complexity of the quantum adiabatic algorithm

Quantum and classical annealing in spin glasses and quantum computing. Anders W Sandvik, Boston University

Adiabatic quantum computation a tutorial for computer scientists

Quantum Annealing in spin glasses and quantum computing Anders W Sandvik, Boston University

Ground State Projector QMC in the valence-bond basis

Classical Monte Carlo Simulations

arxiv: v1 [quant-ph] 28 Jan 2014

Quantum s=1/2 antiferromagnet on the Bethe lattice at percolation I. Low-energy states, DMRG, and diagnostics

Spin glasses and Adiabatic Quantum Computing

Quantum annealing for problems with ground-state degeneracy

Quantum-Classical Hybrid Monte Carlo Algorithm with Applications to AQC

Quantum spin systems - models and computational methods

Stochastic series expansion (SSE) and ground-state projection

Phase transition phenomena of statistical mechanical models of the integer factorization problem (submitted to JPSJ, now in review process)

Quantum Monte Carlo Simulations in the Valence Bond Basis. Anders Sandvik, Boston University

Quantum Monte Carlo Simulations in the Valence Bond Basis

Quantum Phase Transitions in Low Dimensional Magnets

Generating Hard but Solvable SAT Formulas

Overview of adiabatic quantum computation. Andrew Childs

Adiabatic Quantum Computation An alternative approach to a quantum computer

Power of Adiabatic Quantum Computation

Foundations of Artificial Intelligence

Modern WalkSAT algorithms

Solving the sign problem for a class of frustrated antiferromagnets

Introduction to Adiabatic Quantum Computation

Average-case Analysis for Combinatorial Problems,

Quantum annealing by ferromagnetic interaction with the mean-field scheme

arxiv: v1 [quant-ph] 3 Dec 2009

On The Power Of Coherently Controlled Quantum Adiabatic Evolutions

Long Range Frustration in Finite Connectivity Spin Glasses: Application to the random K-satisfiability problem

Information, Physics, and Computation

Methods of Fermion Monte Carlo

Quantum Hamiltonian Complexity. Itai Arad

Quantum search by local adiabatic evolution

Second Lecture: Quantum Monte Carlo Techniques

Quantum versus Thermal annealing (or D-wave versus Janus): seeking a fair comparison

Polynomial-time classical simulation of quantum ferromagnets

The cavity method. Vingt ans après

7 Monte Carlo Simulations of Quantum Spin Models

Auxiliary-field Monte Carlo methods in Fock space: sign problems and methods to circumvent them

(De)-localization in mean-field quantum glasses

Phase Transitions and Local Search for k-satisfiability

Optimization in random field Ising models by quantum annealing

Analysis of a Randomized Local Search Algorithm for LDPCC Decoding Problem

Simulated Quantum Annealing For General Ising Models

Local and Stochastic Search

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE

arxiv: v1 [quant-ph] 13 Apr 2010

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 11: From random walk to quantum walk

Wang-Landau sampling for Quantum Monte Carlo. Stefan Wessel Institut für Theoretische Physik III Universität Stuttgart

Problem set for the course Skálázás és renormálás a statisztikus fizikában, 2014

arxiv: v4 [quant-ph] 7 Dec 2016

Newton s Method and Localization

Solving the Schrödinger equation for the Sherrington Kirkpatrick model in a transverse field

Quantum simulation with string-bond states: Joining PEPS and Monte Carlo

Numerical diagonalization studies of quantum spin chains

Topologicaly protected abelian Josephson qubits: theory and experiment.

Magnetic ordering of local moments

Energy-Decreasing Dynamics in Mean-Field Spin Models

Quantum Phase Transition

Quantum Neural Network

arxiv:cond-mat/ v3 [cond-mat.dis-nn] 24 Jan 2006

Proof Complexity Meets Algebra

LPTM. Quantum-Monte-Carlo Approach to the Thermodynamics of Highly Frustrated Spin-½ Antiferromagnets. Andreas Honecker 1

+E v(t) H(t) = v(t) E where v(t) is real and where v 0 for t ±.

quantum information technology Tad Hogg HP Labs

Chasing the k-sat Threshold

Time Evolving Block Decimation Algorithm

Phase Transitions and Critical Behavior:

Minor-Embedding in Adiabatic Quantum Optimization

2.2. Polynomial Functions of Higher Degree. Copyright Cengage Learning. All rights reserved.

I. Perturbation Theory and the Problem of Degeneracy[?,?,?]

arxiv:cond-mat/ v1 [cond-mat.str-el] 24 Jan 2000

Experiments with and Applications of the D-Wave Machine

Phase Transitions (and their meaning) in Random Constraint Satisfaction Problems

Discrete Math, Fourteenth Problem Set (July 18)

Optimized statistical ensembles for slowly equilibrating classical and quantum systems

Meron-Cluster and Nested Cluster Algorithms: Addressing the Sign Problem in Quantum Monte Carlo Simulations

Quantum Physics III (8.06) Spring 2008 Final Exam Solutions

Physics 115/242 Monte Carlo simulations in Statistical Physics

Numerical Analysis of 2-D Ising Model. Ishita Agarwal Masters in Physics (University of Bonn) 17 th March 2011

Algebra I. Course Outline

Social balance as a satisfiability problem of computer science

NETADIS Kick off meeting. Torino,3-6 february Payal Tyagi

Advanced Algebra II 1 st Semester Exam Review

Classical and quantum simulation of dissipative quantum many-body systems

arxiv: v1 [cond-mat.str-el] 17 Jan 2011

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT

Chapter 7 Propositional Satisfiability Techniques

Geometric phases and spin-orbit effects

Metropolis Monte Carlo simulation of the Ising Model

Introduction to Quantum Computing

Accelerating QMC on quantum computers. Matthias Troyer

quasi-particle pictures from continuous unitary transformations

Monte Carlo Simulations in Statistical Physics

Transcription:

Mind the gap Solving optimization problems with a quantum computer A.P. Young http://physics.ucsc.edu/~peter Work supported by NASA future technologies conference, January 17-212, 2012 Collaborators: Itay Hen, see poster and Phys. Rev. E, 061152 (2011) E. Farhi, P. Shor, D. Gosset, A. Sandvik, V. Smelyanskiy, S. Knysh, M. Guidetti.

Mind the gap Solving optimization problems with a quantum computer A.P. Young http://physics.ucsc.edu/~peter Work supported by NASA future technologies conference, January 17-212, 2012 Collaborators: Itay Hen, see poster and Phys. Rev. E, 061152 (2011) E. Farhi, P. Shor, D. Gosset, A. Sandvik, V. Smelyanskiy, S. Knysh, M. Guidetti.

Plan Question: What could we do with an eventual quantum computer in addition to Shor and Grover? Here: compare the efficiency of a proposed quantum algorithm with that of a classical algorithm for solving optimization and constraint satisfaction problems Will use the Quantum Monte Carlo (QMC) Method to study the Quantum Adiabatic Algorithm (QAA) for large sizes, and compare with a classical algorithm (WALKSAT).

Quantum Adiabatic Algorithm Proposed by Farhi et. al (2001) to solve hard optimization problems on a quantum computer. H(t) = [1 s(t)]h D + s(t)h P H D (g.s.) adiabatic? H P (g.s.?) s 0 1 H P is the problem Hamiltonian, depends on the H D is the driver Hamiltonian = h x 1 i 0 s(t) 1, s(0) = 0, s(t )=1 T is the running time System starts in ground state of driver Hamiltonian. If process is adiabatic (and T 0), it ends in g.s. of problem Hamiltonian, and problem is solved. Minimum T is the complexity. z i

Quantum Adiabatic Algorithm Proposed by Farhi et. al (2001) to solve hard optimization problems on a quantum computer. H(t) = [1 s(t)]h D + s(t)h P H D (g.s.) adiabatic? H P (g.s.?) s 0 1 H P is the problem Hamiltonian, depends on the H D is the driver Hamiltonian = h x 1 i 0 s(t) 1, s(0) = 0, s(t )=1 T is the running time System starts in ground state of driver Hamiltonian. If process is adiabatic (and T 0), it ends in g.s. of problem Hamiltonian, and problem is solved. Minimum T is the complexity. z i

Quantum Adiabatic Algorithm Proposed by Farhi et. al (2001) to solve hard optimization problems on a quantum computer. H(t) = [1 s(t)]h D + s(t)h P H D (g.s.) adiabatic? H P (g.s.?) s 0 1 H P is the problem Hamiltonian, depends on the H D is the driver Hamiltonian = h x 1 i 0 s(t) 1, s(0) = 0, s(t )=1 T is the running time System starts in ground state of driver Hamiltonian. If process is adiabatic (and T 0), it ends in g.s. of problem Hamiltonian, and problem is solved. Minimum T is the complexity. z i Is exponential or polynomial in the problem size N? T

Quantum Phase Transition H D H P 0 QPT 1 s Bottleneck is likely to be a quantum phase transition (QPT) where the gap to the first excited state is very small

Quantum Phase Transition H D H P 0 QPT 1 s Bottleneck is likely to be a quantum phase transition (QPT) where the gap to the first excited state is very small E E 1 E min E 0 s

Quantum Phase Transition H D H P 0 QPT 1 s Bottleneck is likely to be a quantum phase transition (QPT) where the gap to the first excited state is very small E E 1 E min E 0 s

Quantum Phase Transition H D H P 0 QPT 1 s Bottleneck is likely to be a quantum phase transition (QPT) where the gap to the first excited state is very small E E 1 E min E 0 s

Quantum Phase Transition H D H P 0 QPT 1 s Bottleneck is likely to be a quantum phase transition (QPT) where the gap to the first excited state is very small E E 1 E 0 E min Landau Zener Theory: To stay in the ground state the time needed is proportional to E 2 min s

Quantum Phase Transition H D H P 0 QPT 1 s Bottleneck is likely to be a quantum phase transition (QPT) where the gap to the first excited state is very small E E 1 E 0 E min Landau Zener Theory: To stay in the ground state the time needed is proportional to E 2 min Using QMC compute E s for different s: ΔEmin

Quantum Monte Carlo We do a sampling of the 2 N states (so statistical errors). Study equilibrium properties of a quantum system by simulating a classical model with an extra dimension, imaginary time, τ, where 0 <1/T. Not perfect, but the only numerical method available for large N. We use the stochastic series expansion method for Quantum Monte Carlo simulations which was pioneered by Anders Sandvik. Z Tre H Tr ( H) n = n! n=0 Stochastically sum the terms in the series.

Examples of results with the SSE code <H p ()H p (0)> - <H p > 2 Time dependent correlation functions decay with τ as a sum of exponentials A( )A(0) A 2 = n=0 0 A n 2 exp[ (E n E 0 ) ] For large τ only first excited state contributes, pure exponential decay 10 1 0.1 0.01 0.001 3-reg MAX-2-XORSAT, N=24 diag. QMC = 64, symmetric levels 0 5 10 15 20 25 30 Small size, N= 24, excellent agreement with diagonalization. C() 1 0.1 0.01 0.001 3-reg MAX-2-XORSAT, N = 128 QMC fit, E = 0.090 0 10 20 30 40 50 Large size, N = 128, good quality data, slope of straight line gap.

Satisfiability Problems I In satisfiability problems (SAT) we ask whether there is an assignment of N bits which satisfies all of M logical conditions ( clauses ). We assign an energy to each clause such that it is zero if the clause is satisfied and a positive value if not satisfied. i.e. We need to determine if the ground state energy is 0. We take the ratio of M/N to be at the satisfiability threshold, and study instances with a unique satisfying assignment (USA). (so gap to 1st excited state has a minimum whose value indicates the complexity.)

Satisfiability Problems II Locked 1-in-3 SAT The clause is formed from 3 bits picked at random. The clause is satisfied (has energy 0) if 1 is one and the other two are zero. Otherwise it is not satisfied (and the energy is 1). Locked 2-in-4 SAT Similar to 1-in-3 but the clause has 4 bits and is satisfied if 2 of them are one. (This has bit-flip symmetry). Locked means that each bit is in at least two clauses, and flipping one bit in a satisfying assignment makes it unsatisfied. Satisfiability threshold at critical value of M/N. We work at this threshold, (hard, Kirkpatrick and Selman) and take instances with a USA. These seem to be a finite fraction of whole ensemble even for N.

Satisfiability Problems III 3-spin model (3-regular 3-XORSAT) 3-regular means that each bit is in exactly three clauses. 3- XORSAT means that the clause is satisfied if the sum of the bits (mod 2) is a value specified (0 or 1) for each clause. In terms of spins σ z (= ±1) we require that the product of the three σ z s in a clause is specified (+1 or -1). H P = M =1 1 2 1 J z (Is at SAT threshold.) This SAT problem can be solved by linear algebra (Gaussian elimination) and so is in P. Nonetheless we will see that it is very hard for heuristic algorithms (quantum and classical).,1 z,2 z,3

Locked 1-in-3 0.1 Plots of the median minimum gap 2 / ndf = 1.35 Q = 0.26 0.1 2 / ndf = 18.73 Q = 3.82e-12 median E min 0.01 median E min 0.01 0.16 exp(-0.042 N) 0.001 10 20 30 40 50 60 70 80 90 100 N Exponential fit 5.6 N -1.51 10 100 N Power law fit Clearly the behavior of the minimum gap is exponential

Locked 2-in-4 Plots of the median minimum gap 0.1 2 / ndf = 1.58 Q = 0.19 0.1 2 / ndf = 5.80 Q = 5.86e-04 median E min median E min 0.01 0.32 exp(-0.063 N) 0.01 8.6 N -1.55 10 20 30 40 50 60 10 20 30 40 50 N Exponential fit N Power law fit The exponential fit is much better.

3-Reg 3-XORSAT Exponential (i.e. log-lin) plot of the median minimum gap 3-reg XORSAT median E min 0.1 0.08 0.06 0.04 0.02 diag QMC 0.22 exp(-0.080 N) 0.01 10 15 20 25 30 35 40 N Clearly the minimum gap is exponential, even for small N

Comparison with a classical algorithm, WalkSAT: I WalkSAT is a classical, heuristic, local search algorithm. It is a reasonable classical algorithm to compare with QAA. We have compared the running time of the QAA for the three SAT problems studied with that of WalkSAT. For QAA, Landau-Zener theory states that the time is proportional to 1/(ΔEmin) 2 (neglecting N dependence of matrix elements). For WalkSAT the running time is proportional to number of bit flips. We write the running time as proportional to exp(µ N). We will compare the values of µ among the different models and between QAA and WalkSAT.

Comparison with a classical algorithm, WalkSAT: II QAA WalkSAT 0.1 10 9 10 8 10 7 median E min 0.01 median flips 10 6 10 5 10 4 1-in-3, 0.16 exp(-0.042 N) 2-in-4, 0.32 exp(-0.063 N) 0.001 3-XORSAT, 0.22 exp(-0.080 N) 10 20 30 40 50 60 70 80 90 100 N 10 3 10 2 10 1 3-XORSAT, 158 exp(0.120 N) 2-in-4, 96 exp(0.086 N) 1-in-3, 496 exp(0.050 N) 0 50 100 150 200 250 300 N Exponential behavior for both QAA and WalkSAT The trend is the same in both QAA and WalkSAT. 3-XORSAT is the hardest, and locked 1-in-3 SAT the easiest.

Comparison with a classical algorithm, WalkSAT: III Model QAA WalkSAT Ratio 1-in-3 0.084(3) 0.0505(5) 1.66 2-in-4 0.126(7) 0.0858(8) 1.47 3-XORSAT 0.159(2) 0.1198(4) 1.32 Values of µ (where time ~ exp[µ N]). These results used the simplest implementation of the QAA for instances with a USA. Interesting to also study random instances to see if they also have exponential complexity in QAA. Also look for better paths in Hamiltonian space.

3-Reg MAX-2-XORSAT: I We have also studied one MAX (i.e. optimization) problem. MAX means we are in the UNSAT phase, and want to find the configuration with the least number of unsatisfied clauses. The 2 in 2-XORSAT means each clause has 2 bits. Replica theory indicates that 2-SAT-like problems are different from K-SAT problems for K > 2. We take the antiferromagnet version, i.e. the energy is zero if the bits are different (otherwise it is 1). 3-Regular means that it bit is in three clauses, i.e. has 3 neighbors connected to it. The connected pairs are chosen at random. 1 3 i Note: there are large loops 2

3-Reg MAX-2-XORSAT: II The problem Hamiltonian is (i.e. antiferro. on random graph) H P = 1 2 i,j 1+ z i z j Note the symmetry under z i Cannot form an up-down antiferromagnet because of loops of odd length. In fact, it is a spin glass. Adding the driver Hamiltonian there is a quantum phase transition at s = s * above which the symmetry is spontaneously broken. Cavity calculations (Gosset) find s * 0.36 So far, have just investigated the problem near s *. Also just considered instances with a unique satisfying assignment (apart from the degenerate state related by flipping all the spins). z i, i

3-Reg MAX-2-XORSAT: III Median minimum gap for intermediate values of s 3-reg MAX-2-XORSAT 3-reg MAX-2-XORSAT 0.3 0.3 0.29 exp(-0.014 N) 0.2 0.2 2 / ndf = 0.56 Q = 0.57 E min 0.1 power-law fit 2 / ndf = 4.47 Q = 1.29e-03 E min 0.1 0.05 3.60 N -0.866 10 100 N 20 40 60 80 100 120 140 160 180 Power-law fit Exponential fit omitting 1st 2 points Quantum Phase transition is at s 0.36 ( cavity method). Data shows the minimum gap in region 0.36 s 0.50. Looks exponential at large sizes. N

3-Reg MAX-2-XORSAT: IV Small sizes have just one minimum, near s = 0.36. Larger sizes have additional, deeper minima at larger s, in the spin glass phase. Figures below are for two instances of N = 160. 0.04 0.20 0.03 instance 9 0.15 instance 27 gap 0.02 gap 0.10 0.01 0.05 0.00 0.40 0.42 0.44 0.46 0.48 0.50 s 0.00 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50 s Previous slide shows data for the deepest minimum in the range 0.36 s 0.50. Next slide shows data for the minimum closest to 3 = 0.36 (if there is more than 1).

3-Reg MAX-2-XORSAT: V Median minimum gap near s 0.36 (the quantum critical point) 3-reg MAX-2-XORSAT (near 0.36) 3-reg MAX-2-XORSAT (near 0.36) 0.3 0.3 0.26 exp(-0.011 N) 0.2 0.2 2 / ndf = 4.15 Q = 0.02 E min 0.1 power-law fit 2 / ndf = 0.15 Q = 0.96 E min 0.1 0.05 2.79 N -0.781 10 100 N Power-law fit 20 40 60 80 100 120 140 160 180 Exponential fit omitting 1st 2 points N The data close to the critical point seems to be power-law, at least for this range of sizes.

Conclusions Simple application of QAA gives exponentially small gaps for SAT problems with a USA. An optimization problem, MAX-2-SAT, seems to have polynomial gaps near the quantum critical point, but exponentially small gaps at larger s (in the spin glass phase) Need to see if the exponentially small gap can be removed by repeatedly running the algorithm with different random values for the transverse fields (and costs). trying to find a clever way to optimize the path in Hamiltonian space on the fly during the simulation to increase the minimum gap. considering random instances rather than instances with a USA.