Quantum Annealing and the Satisfiability Problem

Similar documents
LOCKHEED MARTIN SITE UPDATE

Quantum Computing Approach to V&V of Complex Systems Overview

1.1 P, NP, and NP-complete

Quantum computing with superconducting qubits Towards useful applications

LOCKHEED MARTIN SITE UPDATE 11 APRIL 2018 MUNICH, GERMANY Kristen Pudenz Senior Quantum Applications Engineer

System Roadmap. Qubits 2018 D-Wave Users Conference Knoxville. Jed Whittaker D-Wave Systems Inc. September 25, 2018

Opportunities and challenges in quantum-enhanced machine learning in near-term quantum computers

Gates for Adiabatic Quantum Computing

CS 583: Algorithms. NP Completeness Ch 34. Intractability

Developing a commercial superconducting quantum annealing processor

REPORT DOCUMENTATION PAGE

Exploring reverse annealing as a tool for hybrid quantum/classical computing

A Quantum Computing Approach to the Verification and Validation of Complex Cyber-Physical Systems

SAT-Solvers: propositional logic in action

Generating Hard but Solvable SAT Formulas

Quantum Computing. Separating the 'hope' from the 'hype' Suzanne Gildert (D-Wave Systems, Inc) 4th September :00am PST, Teleplace

Numerical Studies of the Quantum Adiabatic Algorithm

Small Traveling Salesman Problems

Complexity of the quantum adiabatic algorithm

Mind the gap Solving optimization problems with a quantum computer

Simulated Quantum Annealing For General Ising Models

An Analysis on Recombination in Multi-Objective Evolutionary Optimization

4/19/11. NP and NP completeness. Decision Problems. Definition of P. Certifiers and Certificates: COMPOSITES

Introduction to Arti Intelligence

Inference of A Minimum Size Boolean Function by Using A New Efficient Branch-and-Bound Approach From Examples

AFRL-RI-RS-TR

Adiabatic Quantum Computation An alternative approach to a quantum computer

Partition of Large Optimization Problems with One-Hot Constraint

Introduction to Solving Combinatorial Problems with SAT

Quantum annealing. Matthias Troyer (ETH Zürich) John Martinis (UCSB) Dave Wecker (Microsoft)

Multiple Query Optimization on the D-Wave 2X Adiabatic Quantum Computer

Chapter 1. Introduction

Recap from Last Time

Algorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University

Design and Analysis of Algorithms

The Quantum Supremacy Experiment

COMPLEX NOISE-BITS AND LARGE-SCALE INSTANTANEOUS PARALLEL OPERATIONS WITH LOW COMPLEXITY

Mind the gap Solving optimization problems with a quantum computer

The Quantum Landscape

Introduction to Complexity Theory

D-Wave: real quantum computer?

COMPILING PROGRAMS FOR AN ADIABATIC QUANTUM COMPUTER

Complete Sets of Hamiltonian Circuits for Classification of Documents

NP-completeness. Chapter 34. Sergey Bereg

NP-complete problems. CSE 101: Design and Analysis of Algorithms Lecture 20

SOLVING SPARSE REPRESENTATIONS FOR OBJECT CLASSIFICATION USING QUANTUM D-WAVE 2X MACHINE

arxiv: v1 [quant-ph] 10 Mar 2016

Spring Lecture 21 NP-Complete Problems

HETEROGENEOUS QUANTUM COMPUTING FOR SATELLITE OPTIMIZATION

SAT, NP, NP-Completeness

Quantum Annealing amid Local Ruggedness and Global Frustration

Comp487/587 - Boolean Formulas

NP-Complete Reductions 2

Quantum Complexity Theory and Adiabatic Computation

Ising formulations of many NP problems

arxiv: v2 [quant-ph] 2 Oct 2014

Lecture 24 : Even more reductions

Quantum Classification of Malware

NP-Hardness reductions

Formal Modeling with Propositional Logic

The Future. Currently state of the art chips have gates of length 35 nanometers.

Experiments with and Applications of the D-Wave Machine

Using Evolutionary Techniques to Hunt for Snakes and Coils

The Quantum Adiabatic Algorithm

Data Structures and Algorithms

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

ECS122A Handout on NP-Completeness March 12, 2018

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

Instructor N.Sadagopan Scribe: P.Renjith. Lecture- Complexity Class- P and NP

Learning from Examples

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions

Essential facts about NP-completeness:

CSI 4105 MIDTERM SOLUTION

1 Computational problems

On evaluating decision procedures for modal logic

V&V of Complex Systems

From Abstract Models to Executable Models for Multi-Agent Path Finding on Real Robots

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Logic BIST. Sungho Kang Yonsei University

Introduction to Computational Complexity

Minor-Embedding in Adiabatic Quantum Optimization

Foundations of Artificial Intelligence

Probabilistic Near-Duplicate. Detection Using Simhash

Efficient Sampling of SAT Solutions for Testing

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011

Logic, Optimization and Data Analytics

COP 4531 Complexity & Analysis of Data Structures & Algorithms

1a. Introduction COMP6741: Parameterized and Exact Computation

Quantum Annealing Approaches to Graph Partitioning on the D-Wave System

Evaluation and Validation

Cyber-Physical V&V Challenges for the Evaluation of State of the Art Model Checkers

A An Overview of Complexity Theory for the Algorithm Designer

Computability and Complexity Theory: An Introduction

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

Optimization with Clause Problems

Nondeterministic Polynomial Time

Algorithm Design and Analysis

Lecture 12 Scribe Notes

NP-Complete problems

Transcription:

arxiv:1612.7258v1 [quant-ph] 21 Dec 216 Quantum Annealing and the Satisfiability Problem 1. Introduction Kristen L PUDENZ 1, Gregory S TALLANT, Todd R BELOTE, and Steven H ADACHI Lockheed Martin, United States Abstract. The utility of satisfiability (SAT) as an application focused hard computational problem is well established. We explore the potential of quantum annealing to enhance classical SAT solving, especially where sampling from the space of all possible solutions is of interest. We address the formulation of SAT problems to make them suitable for commercial quantum annealers, practical concerns in their implementation, and how the performance of the resulting quantum solver compares to and complements classical SAT solvers. Keywords. quantum annealing, satisfiability, quantum information Boolean satisfiability is a well known NP-complete problem that serves as the basis for many computationally hard tasks. Some of these applications, such as formal software verification and data mining, are well served by solvers which are capable of finding more than one satisfying assignment of variables, or even all such solutions [1]. Quantum annealing (QA) has been applied to the solution of weighted max 2-SAT problems [2, 3], the construction of SAT filters [4], SAT variants [5], and frustrated loop problems inspired by SAT [6,7]. QA hardware operates by performing many annealing (solving) cycles, returning a potential solution sample for each cycle [8,3]. We seek to discover whether quantum annealers could provide an advantage in finding multiple solutions to satisfiability problems. We first provide a construction for posing satisfiability problems to quantum annealing hardware solvers in Section 2. Section 3 defines our problem set, and Section 4 details the results of our quantum and classical solution sampling comparision. 2. Cascading-OR SAT penalty functions Satisfiability problems in general consist of a conjunction of disjunctive clauses. The conjunction can be achieved on quantum annealing hardware by summing terms rep- 1 Corresponding Author: Senior Quantum Applications Engineer, Lockheed Martin Aeronautics, 1 Lockheed Boulevard, Fort Worth, Texas, United States; E-mail: kristen.l.pudenz@lmco.com Copyright 216, Lockheed Martin Corporation. All rights reserved.

(a) 2-SAT penalty (b) OR with output penalty Figure 1. Building blocks for cascading-or penalty functions. resenting individual clauses, so we will focus here on defining the disjunctive clause Hamiltonian penalty functions, which we denote H k, with k the number of variables in each clause. The clauses are built using a cascading-or construction, which requires 2(k 1) qubits per clause. It should be noted that the resulting clauses are not directly embeddable on QA hardware graphs. No direct embeddings are proposed here, primarily due to the fact that many clauses share variables, and by the time this is taken into account in building the Hamiltonian, a heuristic embedding algorithm for the problem as a whole will still be required. The overhead of heuristic embedders for QA hardware graphs is of course an entire line of research on its own. We begin our construction with two building blocks. The first is H 2 (x1,x2) = σ z x1 σ z x2 + σ z x1 σ z x2, (1) the ground states of which represent the states for which x1 x2 evaluates to true, i.e. the states for which the 2-SAT clause is satisfied. We also define an OR with output penalty function H OR (x1,x2,z) = σ z x1 + σ z x2 2σ z z + σ z x1 σ z x2 2σ z x1 σ z z 2σ z x2 σ z z, (2) which has as its ground states the states where x1 x2 = z, the crucial difference being that the correct state of the OR output is included in the penalty function. By substituting the output bit z from the OR function for x1 in H 2, we can easily construct H 3 : H 3 = H OR (x1,x2,z1) + H 2 (z1,x3) (3) = (σ z x1 + σ z x2 2σ z z1 + σ z x1 σ z x2 2σ z x1 σ z z1 2σ z x2 σ z z1 ) σ z z1 σ z x3 + σ z z1 σ z x3, (4) where the part of the equation in parenthesis represents H OR applied to x1 and x2, with its output z1 cascaded into one of the qubits in H 2. Note that the term σz1 z appears twice in the equation because it is shared between H OR and H 2, so the collected term would be 3σz1 z. See Figure 1 for diagrams of the basic penalty functions we have introduced. Penalty functions H k of any size can be built inductively by extending this methodology. Start with a valid H k 1, choose any of the qubits which directly represent problem

variables (shown in above equations as xi), and substitute the output qubit of H OR into its place. The size of the penalty function grows by 2 qubits because we are putting three in the place of one. Because we can choose any problem variable qubit, we can define multiple equivalent H k penalty functions depending on which substitution we use. Figure 2 shows several possible constructions of H 3 and H 4 penalty functions. 3. Mixed SAT The test problem set for this study consists of a group of mixed SAT problems which contain clauses of diverse lengths (as compared to the standard 3-SAT, in which each clause involves three variables). The test set was tailored to be feasible on the D-Wave 2X generation of quantum annealers. We ran 123 instances with n = 3 on a 198 qubit QA chip, taking 1 solution samples for each instance and parameter setting at an annealing time of 2 microseconds per sample. These instances were a subset of a larger set of mixed SAT instances which was generated randomly, then downselected based on number of solutions (less than a million) and embeddability of the resulting penalty function on hardware. 4. Results 4.1. Timing metrics We considered two timing metrics for the quantum annealer results. The first, core annealing time, is important because it captures the key physics of the computation. The quantum annealer calculates the satisfying assignment by performing an adiabatic quantum evolution from a known original hardware state to the unknown problem solution. This process is the core anneal, and is the key difference between quantum annealers and classical hardware. By separating the core anneal time from other hardware times, we get an idea of the essential limits on this type of computation. We also present results using wallclock time for the quantum annealer. This includes, among many things, programming time, thermalization time (so the chip can cool down after programming), core annealing time, readout time, and postprocessing time. The wallclock time is how long we have to wait for results from the current generation of quantum annealers. However, there is reason to believe that many of the elements within the wallclock time will be subject to engineering improvement in the near term. 4.2. Classical comparison We used a recently published classical ALL-SAT solver [1] to count the solutions for each problem and establish a timing baseline. Toda and Soh programmed several ALL- SAT modifications to MiniSAT, a well known single-solution SAT solver. We used the version that performed best in their benchmarks. The optimality of this solver for ALL- SAT problems in general and mixed SAT in particular is not established, but it is the current state of the art. All times shown for the classical solver are wallclock times. The solver timestamped each solution, so we have granular timing data as to when each solution was found.

(a) Option 1 for 3-SAT penalty (b) Option 2 for 3-SAT penalty (c) Option 1 for 4-SAT penalty (d) Option 2 for 4-SAT penalty Figure 2. Options for H 3 and H 4. The penalty function can take different forms depending on which logical variable qubits are extended by H OR ; these forms become more varied as k increases and the decision tree widens.

1 4 2 1.8 1.6 time (microseconds) 1.4 1.2 1.8.6.4.2 5 1 15 2 25 3 number of answers found Figure 3. Rate of solution finding for classical and quantum solvers. This plot is for an instance with one of the larger initial solution finding advantages compared to the classical alternative. The shapes of the curves are consistent across all instances in the problem set. 4.3. Core annealing time When only core annealing time is considered, most instances in the problem set initially find solutions faster than the classical solver. In Figure 3, the classical and quantum curves for time to find distinct solutions are shown. The quantum annealer initially finds solutions much more quickly, but slows in the rate at which it finds new solutions, allowing the classical curve to cross under it. Figure 4 shows these crossover points for the entire instance set. We find an initial quantum advantage in the tens of solutions for most instances. It is relevant to note that the sets of solutions found by the classical and quantum solvers at the crossover point have low overlap (see Figure 5 for details). 4.4. Wallclock time When all quantum processor activities are accounted for, and we compare quantum wallclock to classical wallclock time, the initial advantage disappears. Figure 6 shows the same instance as Figure 3, but with the quantum wallclock rather than core anneal time. The quantum curve is immediately at a disadvantage and never crosses the lower classical time curve. This is true for all instances in the set we studied.

9 8 7 time (microseconds) 6 5 4 3 2 1 2 4 6 8 1 number of answers Figure 4. Crossover points between classical and quantum solution finding rates. Each point represents one problem instance and shows the location of the crossover we see for a single problem in Figure 3. Error bars represent the resolution of the timing data. 4.5. Solution sampling Quantum annealers solve problems by sampling from the low energy state space of the penalty function, so it is natural to consider the application of quantum annealers as solution samplers for problems of interest. In particular, we were interested in whether quantum annealers could provide more variety in the answer set than classical solvers, particularly because the quantum penalty function can be subjected to trivial spin reversal transformations or parameter settings that leave the identity of the ground state solutions the same but change the physics of the solving process [9,1]. To measure the diversity of the solution set, we look at the Hamming distance between neighboring solution samples (Figure 7). We find that the classical solver is both more consistent in the distribution of solutions and finds solutions that are more widely separated in Hamming distance. 5. Conclusions Quantum annealers have the potential to assist in finding multiple solutions to mixed satisfiability problems, but in their current form are not ready for the task. The advantage in time for finding an initial set of solution samples seen when only core annealing time is considered and the low overlap between the quantum and classical crossover solution sets points to a potential future role for a quantum solver as a helper to a classical

1 9 8 number of instances 7 6 5 4 3 2 1.5.1.15.2.25.3.35.4.45 fraction of common answers before crossover point Figure 5. Overlap between classical and quantum solution sets at crossover. Bars indicate the number of problem instances with a given fraction of solutions appearing in both the classical and quantum partial solution sets at the crossover point. solver. Indeed, it might be possible to run the quantum solver to crossover with the classical solver, apply a spin reversal transformation, and run the quantum solver again to find another set of solutions. However, with current quantum annealing technology, the overhead timing factors included in the wallclock time destroy any advantage. References [1] T. Toda and T. Soh, Implementing Efficient All Solutions SAT Solvers, arxiv:151.523. [2] S. Santa et. al., MAX 2-SAT with up to 18 qubits, New Journal of Physics, 16.4 (214): 456. [3] Z. Bian et. al., The Ising model: teaching an old problem new tricks, D-Wave Systems (21). [4] A. Douglass et. al., Constructing SAT Filters with a Quantum Annealer, International Conference on Theory and Applications of Satisfiability Testing, Springer International Publishing, 215. [5] A. Roy et al., Mapping constrained optimization problems to quantum annealing with application to fault diagnosis, Frontiers in ICT 3 (216): 14. [6] I. Hen et al., Probing for quantum speedup in spin-glass problems with planted solutions, Physical Review A 92.4 (215): 42325. [7] A. King et. al., Performance of a quantum annealer on range-limited constraint satisfaction problems, arxiv:152.298 (215). [8] M. W. Johnson et. al., Quantum annealing with manufactured spins, Nature 473 (211), 194-198. [9] T. F. Ronnow et. al., Defining and detecting quantum speedup, Science 345 (21), 42-424. [1] K. L. Pudenz, Parameter Setting for Quantum Annealers, 2th IEEE High Performance Embedded Computing Workshop Proceedings (216).

1 5 3.5 3 time (microseconds) 2.5 2 1.5 1.5 5 1 15 2 25 3 number of answers found Figure 6. Wallclock rate of solution finding for classical and quantum solvers. This is the same problem instance shown in Figure 3, with the quantum curve measured in wallclock rather than core annealing time. Any quantum advantage is lost.

Hamming distance from immediate prior solution 3 25 2 15 1 5 classical SRT 1 SRT 2 SRT 3 SRT 4 1 2 3 4 5 solutions in order found Figure 7. Hamming distance between neighboring solutions. The solutions for a typical problem instance are displayed here in the order they were returned from each solver. Each point represents the Hamming distance of the current solution from the one that came before it. Blue circles represent solutions from the classical solver. All other colors and shapes represent solutions from the quantum annealer, each type of marker indicating one trivial spin reversal transformation (SRT) of the problem s penalty function. All spin reversals on the quantum annealer behave consistently, but the distance between adjacent classical solutions is both higher and more consistent than the quantum solver can produce.