arxiv: v1 [math.oc] 5 Jun 2013

Similar documents
A note on QUBO instances defined on Chimera graphs

Solving Box-Constrained Nonconvex Quadratic Programs

A Note on Representations of Linear Inequalities in Non-Convex Mixed-Integer Quadratic Programs

Extended Linear Formulation for Binary Quadratic Problems

Separation Techniques for Constrained Nonlinear 0 1 Programming

Tightening linearizations of non-linear binary optimization problems

A Penalized Quadratic Convex Reformulation Method for Random Quadratic Unconstrained Binary Optimization

Convexification of Mixed-Integer Quadratically Constrained Quadratic Programs

Minimum Linear Arrangements

Cutting Planes for RLT Relaxations of Mixed 0-1 Polynomial Programs

Cutting Planes for RLT Relaxations of Mixed 0-1 Polynomial Programs

Cutting Planes in SCIP

Introduction to Integer Linear Programming

Performance of hybrid quantum/classical variational heuristics for combinatorial optimization

Conic optimization under combinatorial sparsity constraints

Nonconvex Quadratic Programming: Return of the Boolean Quadric Polytope

Studying Spin Glasses via Combinatorial Optimization

Finding Maximum Cliques on a Quantum Annealer

Integer Programming Formulations for the Minimum Weighted Maximal Matching Problem

Online generation via offline selection - Low dimensional linear cuts from QP SDP relaxation -

Polyhedral Approach to Integer Linear Programming. Tepper School of Business Carnegie Mellon University, Pittsburgh

Working Paper Series HEARIN CENTER FOR ENTERPRISE SCIENCE

Gestion de la production. Book: Linear Programming, Vasek Chvatal, McGill University, W.H. Freeman and Company, New York, USA

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

Quadratic reformulation techniques for 0-1 quadratic programs

Integer Programming ISE 418. Lecture 12. Dr. Ted Ralphs

Linear Programming Versus Convex Quadratic Programming for the Module Allocation Problem

Minor-Embedding in Adiabatic Quantum Optimization

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

On mathematical programming with indicator constraints

MVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms

On Valid Inequalities for Quadratic Programming with Continuous Variables and Binary Indicators

MILP reformulation of the multi-echelon stochastic inventory system with uncertain demands

Scenario Grouping and Decomposition Algorithms for Chance-constrained Programs

Mixed Integer Programming Solvers: from Where to Where. Andrea Lodi University of Bologna, Italy

Introduction to Mathematical Programming IE406. Lecture 21. Dr. Ted Ralphs

Cutting Planes for First Level RLT Relaxations of Mixed 0-1 Programs

A note on : A Superior Representation Method for Piecewise Linear Functions

A new family of facet defining inequalities for the maximum edge-weighted clique problem

Monoidal Cut Strengthening and Generalized Mixed-Integer Rounding for Disjunctions and Complementarity Constraints

A note on : A Superior Representation Method for Piecewise Linear Functions by Li, Lu, Huang and Hu

IMA Preprint Series # 2176

Axioms of Density: How to Define and Detect the Densest Subgraph

Semidefinite Programming Basics and Applications

On Non-Convex Quadratic Programming with Box Constraints

Strengthened Benders Cuts for Stochastic Integer Programs with Continuous Recourse

Optimization in Process Systems Engineering

The Bipartite Boolean Quadratic. Programming Problem

Solving the maximum edge weight clique problem via unconstrained quadratic programming

arxiv: v2 [math.oc] 3 Nov 2016

23. Cutting planes and branch & bound

Disconnecting Networks via Node Deletions

XLVI Pesquisa Operacional na Gestão da Segurança Pública

arxiv: v1 [math.oc] 23 Aug 2018

Introduction to Quantum Optimization using D-WAVE 2X

Optimization Bounds from Binary Decision Diagrams

Indicator Constraints in Mixed-Integer Programming

A Comparative Study of Linear and Semidefinite Branch-and-Cut Methods for Solving the Minimum Graph Bisection Problem

Alain Billionnet 1, Sourour Elloumi 2 and Marie-Christine Plateau 2, 3

Lecture 2. Split Inequalities and Gomory Mixed Integer Cuts. Tepper School of Business Carnegie Mellon University, Pittsburgh

Gates for Adiabatic Quantum Computing

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

First results solving arbitrarily structured Maximum Independent Set problems using quantum annealing

Convex Optimization M2

POLYNOMIAL MILP FORMULATIONS

Projected Perspective Reformulations for NonLinear Network Design Problems

Semidefinite Relaxations for Non-Convex Quadratic Mixed-Integer Programming

Section Notes 9. Midterm 2 Review. Applied Math / Engineering Sciences 121. Week of December 3, 2018

Projection Results for the k-partition Problem

Quadratic 0 1 optimization using separable underestimators

Computational Integer Programming. Lecture 2: Modeling and Formulation. Dr. Ted Ralphs

A NEW SECOND-ORDER CONE PROGRAMMING RELAXATION FOR MAX-CUT PROBLEMS

Solving the Order-Preserving Submatrix Problem via Integer Programming

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. The Symmetric Quadratic Semi-Assignment Polytope

Orbital Shrinking: A New Tool for Hybrid MIP/CP Methods

Computational Experiments with Cross and Crooked Cross Cuts

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

AM 121: Intro to Optimization! Models and Methods! Fall 2018!

Gomory Cuts. Chapter 5. Linear Arithmetic. Decision Procedures. An Algorithmic Point of View. Revision 1.0

Mixed-Integer Nonlinear Programming

arxiv: v1 [cs.cc] 5 Dec 2018

Modeling with semidefinite and copositive matrices

The traveling salesman problem

MIT Algebraic techniques and semidefinite optimization February 14, Lecture 3

CMOS Ising Computer to Help Optimize Social Infrastructure Systems

NEW RESULTS ON SOME QUADRATIC PROGRAMMING PROBLEMS RUI YANG DISSERTATION

A Branch-and-Bound Algorithm for a Family of Pseudo-Boolean Optimization Problems

Maximum 3-SAT as QUBO

A practical anytime algorithm for bipartizing networks

There are several approaches to solve UBQP, we will now briefly discuss some of them:

16.410/413 Principles of Autonomy and Decision Making

A BRANCH AND CUT APPROACH TO LINEAR PROGRAMS WITH LINEAR COMPLEMENTARITY CONSTRAINTS

A Branch-and-Cut Algorithm for the Stochastic Uncapacitated Lot-Sizing Problem

Improved linearized models for Graph Partitioning Problem under Capacity Constraints

f-flip strategies for unconstrained binary quadratic programming

ground state degeneracy ground state energy

Using Sparsity to Design Primal Heuristics for MILPs: Two Stories

A coordinate ascent method for solving semidefinite relaxations of non-convex quadratic integer programs

Models and Cuts for the Two-Echelon Vehicle Routing Problem

Decision Diagrams for Discrete Optimization

Transcription:

A note on QUBO instances defined on Chimera graphs Sanjeeb Dash IBM T. J. Watson Research Center arxiv:1306.1202v1 [math.oc] 5 Jun 2013 May 9, 2017 Abstract McGeogh and Wang (2013) recently obtained optimal or near-optimal solutions to some quadratic unconstrained boolean optimization (QUBO) problems using a 439 qubit D-Wave quantum computer in much less time than with the IBM ILOG CPLEX mixed-integer quadratic programming solver. The problems studied by McGeogh et. al. are defined on subgraphs of 512 node Chimera graphs. We observe that after a standard reformulation of QUBO problems defined on 512 node Chimera graphs as mixedinteger linear programs (MILP), they can be solved to optimality with the CPLEX MILP solver in time comparable to the time reported by McGeogh and Wang for the D-wave quantum computer. 1 Introduction The quadratic unconstrained boolean optimization (QUBO) problem is the problem of minimizing a quadratic function of n {0, 1} variables, see [6] for applications. It is a special case of the mixed-integer quadratic programming (MIQP) problem. A QUBO instance on n variables is specified by a n n matrix Q: Min i,j Q ij x i x j subject to x {0,1} n. (1) A QUBO instance is associated with a weighted graph, G = {G = (V,E),w}, where G is an n-node unweighted graph with node set V and edge set E, w : V V R defines the weight of nodes and edges, w((i,j)) = Q ij +Q ji for all i j with (i,j) E, and w((i,i)) = Q ii for all i, and is zero otherwise. G is called the connectivity graph. The decision version of the QUBO problem is NP-complete even when G is a planar cubic graph [2], and NP-complete for graphs containing a planar cubic graph as a minor, such as 2D grid graphs or Chimera graphs (see below). In this note we study the case when G is a Chimera graph as described in [14]. A Chimera graph C k has 8k 2 vertices arranged in a grid-like pattern: each node in a k k grid graph is replaced by a complete bipartite graph K 4,4, and the nodes in the right partition are connected to the respective nodes in the right partitions of thek 4,4 s on the left and right (if they exist), and the nodes in the left partition are connected to the respective nodes in the left partitions of thek 4,4 s above and below. McGeogh and Wang [14] solve randomly generated QUBO problem instances where the connectivity graph has at most 439 nodes and is a subgraph of the Chimera graph C 8 (it has 512 nodes) on a D-Wave Two chip[12][9] and compare the running times to the time taken by the MIQP algorithm within IBM ILOG CPLEX [13] (henceforth called CPLEX). Letting Q = (Q+Q T )/2, the problem in (1) can be written as Min x T Qx subject to x {0,1} n. (2) 1

We call this formulation QUBO-miqp. An MIQP solver, such as the one in CPLEX, typically uses a branchand-bound algorithm, where lower bounds on QUBO-miqp are obtained by solving a quadratic programming (QP) relaxation of the form Min x T Qx subject to x [0,1] n. (3) If Q is not positive semidefinite, then the QP problem above is nonconvex and NP-hard. For QUBO instances, a simple transformation makes Q positive semidefinite without changing the optimal solution. Let D be an n diagonal matrix. Then Min x T ( Q+D)x n D ii x i subject to x {0,1} n, (4) i=1 is equivalent to QUBO-miqp. Whenx i = {0,1}, x 2 i = x i and therefore for everyx {0,1} n, the objective function in (4) has the same value as the objective function in (2). There are many choices of D such that Q+D is positive semidefinite: e.g., ifd = λ min ( Q)I whereλ min ( Q) is the minimum eigenvalue of Q and I is the identity matrix, or D is chosen so that Q+D is diagonally dominant. The choice of D influences the quality of the lower bound on the optimal solution value of (4) from its convex QP relaxation (obtained by setting x [0,1] n ), see [5]. An alternative approach to solving QUBO instances is via the following standard mixed-integer linear programming (MILP) formulation (here we assume, without loss of generality, that Q is upper triangular): Min i<j Q ijz ij + n i=1 Q iix i (5) subject to z ij x i i < j, (6) z ij x j i < j, (7) x i +x j z ij 1 i < j, (8) z ij 0 i < j (9) x {0,1} n. (10) We call this formulation QUBO-milp. For any fixedi,j, the constraints (6)-(9) forcez ij to equal x i x j when x i,x j {0,1}, and define the convex hull of {(x i,x j,x i x j ) : x i,x j {0,1}} [11]. It is well-known (see results below) that QUBO-milp can be solved quickly for sparse graphs with linear programming (LP) based branch-and-cut algorithms: LP relaxations yield bounds, and cutting planes are used to strengthen the LP relaxation of the MILP formulation. The QUBO problem maps, via a one-to-one linear transformation (and QUBO-milp maps to an MILP formulation) to the Ising Spin Model (ISM) problem with magnetic fields with the same connectivity graph, or to the Max Cut problem [7] on a graph with one extra node connected to all existing nodes. ISM instances (or equivalently QUBO instances) on 3D grid graphs were shown to be easy to solve [3] using LP relaxations combined with cycle inequalities [2] for the Max Cut problem. The same techniques combined with branchand-bound were used in [4] to solve randomly generated QUBO instances on sparse graphs with (n =) 100 nodes (and average node degree.0625n), and with additional cutting planes in [8] to solve ISM instances on 100 100 2D grid graphs. In [4], 160 out of 162 instances were solved by strengthening the LP relaxation with cycle inequalities and without branching; almost all instances in [8] were solved in this manner. It was shown in [5] that QUBO-milp instances based on sparse, randomly generated graphs G with 2

n 80 (average degree of a node is.2n or less) can be solved very quickly even with a general MILP solver, specifically CPLEX 8.1. They use edge weights in the range[ 50,50] and node weights in the range [ 100,100]. Depending on the sign of Q ij, some inequalities from (6)-(9) can be deleted (see [5]), though we do not do this here. The average node degree of a Chimera graph is between 5 and 6, and much less than the average degrees considered in [5]. In this note, motivated by the above results on sparse graphs, we run the CPLEX 12.3 (same version as in [14]) MILP solver on QUBO-milp for randomly generated QUBO instances on Chimera graphs. We observe that such instances are solved to optimality (up to the default optimality tolerance) in a small amount of time. On the average, the CPLEX MILP solver takes less than 0.2 seconds on a standard Microsoft Windows laptop with a 2.2 GHz Intel Core i7 processor to solve instances on C 8 graphs with 512 nodes. To test the increase in difficulty with increasing graph size, we experiment with instances based on C 20 graphs with 3200 nodes, C 35 graphs with 9800 nodes, and C 50 graphs with 20,000 nodes, and obtain average solution times less than 2.4 seconds, 16.5 seconds and 51.5 seconds, respectively. We expect similar behaviour on the McGeogh-Wang instances (based on subgraphs of C 8 ), as removing edges/nodes usually makes a QUBO instance easier to solve. Furthermore, forc 4 graphs, we observe that solving QUBO-miqp via QP-based branch and bound (with CPLEX s MIQP solver) takes significantly more time than solving QUBO-milp via LP-based branch-andcut (with CPLEX s MILP solver). In other words, like McGeogh and Wang, we observe large computation times to solve QUBO-miqp. In the worst case, we observe a 10,000 fold slowdown compared with QUBOmilp, though the average slowdown is less; see the next section for a partial explanation. In other words, it seems that Chimera graph based QUBO instances similar to the ones studied by McGeogh and Wang are actually easy to solve with classical computers, even for much larger graphs. 2 Details of computational experiments We generate two groups of random QUBO instances on Chimera graphs C k with varying k. In the first group, each node or edge weight is chosen uniformly at random from { 1,1} as in McGeogh and Wang; what they do differently is that they choose subgraphs of the Chimera graph C 8, whereas we always work with the complete Chimera graph. In the second group, each node or edge weight is an integer chosen uniformly at random from the interval [-100, 100]. We generate 50 instances for each group forc 8,C 20,C 35 and C 50. The C 8 (and C 4 ) instances (as weighted graphs), CPLEX readable inputs for QUBO-miqp and QUBO-milp, and cplex output and logs for our tests on these instances (only for QUBO-milp for C 8 ) are available at http://researcher.watson.ibm.com/researcher/files/us-sanjeebd/chimera-data.zip. In Table 1, we report running times. In the first column we specify the group of instances, in the second column we give the graph. In the third and fourth columns, we give the number of nodes and edges. In the sixth and seventh columns, respectively, we give the arithmetic mean and geometric mean of the running times across the 50 randomly generated instances. The remaining columns give the minimum, maximum and standard deviation of the running times across all 50 instances. All instances are solved with IBM ILOG CPLEX 12.3 running on an 8-core Windows 7 laptop (with a 2.2 GHz Intel Core i7 vpro chip). All runs are executed on a single core with default settings and no specialized code (such as cut callbacks). The running times are the times in seconds reported by CPLEX. The second group of instances seem slightly easier than the first. The maximum time to solve any instance is 73.6 seconds. All but 6 of the 400 instances in this table are solved without branching and the total number of branch-and-bound nodes across all instances is 345; the LP relaxation of QUBO-milp augmented with cutting planes is enough to solve almost all instances, just as in [3], [4] and [8]. Now CPLEX does not 3

Graph nodes edges Mean G. Mean Min Max Std. Dev. Group 1 C8 512 1472 0.19 0.18 0.09 0.39 0.06 C20 3200 9440 2.38 2.33 1.06 3.90 0.43 C35 9800 29120 16.52 16.40 13.17 24.46 2.11 C50 20000 59600 51.48 51.14 42.96 73.60 6.30 Group 2 C8 512 1472 0.12 0.11 0.06 0.27 0.04 C20 3200 9440 1.89 1.84 0.73 2.54 0.38 C35 3200 29120 12.87 12.61 6.30 20.48 2.54 C50 20000 59600 32.59 29.86 12.79 49.58 12.47 Table 1: Run times for QUBO instances on different graph sizes generate cycle inequalities specifically; however it generates zero-half cuts [10] and Gomory fractional cuts, which generalize cycle inequalities. Indeed, these are the only two classes of cutting planes generated by CPLEX in our tests and seem essential. The first group of C 8 instances are all solved within 6.99 seconds and in 0.6 seconds on the average with pure branch-and-bound and no cutting planes (the second group takes less time), but larger instances are hard to solve in this way. Finally, we also compare the solution times for QUBO-miqp and QUBO-milp solved with the respective solvers of CPLEX. Even for instances based on small graphs such as C 4, the difference in time can be significant. The mean solution time for QUBO-milp is 0.03 seconds, the maximum solution time is 0.09 seconds, and the standard deviation in solution times is 0.015. The corresponding numbers for QUBO-miqp are 36.62 seconds, 1355.85 seconds, and 195.33. Therefore, in the worst case, the running time for QUBOmiqp is over 10,000 times the running time for QUBO-milp (qchim4.12.lp versus chim4.12.lp in our data set, available at the link above). Why does this happen? We believe it is more because of formulation differences rather than differences in solver quality (though CPLEX-MILP is much more mature, given its relative importance for practical applications). Firstly, even though the QP relaxation of QUBO-miqp is stronger than the LP relaxation of QUBO-milp, after modifying Q as in (4) to make it positive semidefinite, the associated convex QP relaxation yields nontrivially worse lower bounds for many of our instances. Secondly, QUBO-milp is an extended formulation with extra variables (representing x i x j ). One can derive new linear constraints (e.g., cycle inequalities) to get a better approximation of conv(xx T : x {0,1} n ) than conv(xx T : x [0,1] n ). This is not possible in QUBO-miqp. That said, QUBO-miqp may be much better for dense graphs [5]. Acknowledgements We would like to thank Francisco Barahona for helpful discussions on solution techniques for sparse QUBO instances. References [1] F. Barahona, On the computational complexity of Ising spin glass models, Journal of Physics A: Mathematical and General 15(10) 3241 3253 (1982). [2] F. Barahona, A.R. Mahjoub, On the cut polytope, Mathematical Programming 36 157-173 (1986). [3] F. Barahona, E. Maccioni, On the exact ground states of three-dimensional Ising spin glasses, Journal of Physics A: Mathematical and General 15, 611 615 (1982). 4

[4] F. Barahona, M. Jünger, G. Reinelt, Experiments in quadratic 01 programming, Mathematical Programming 44, 127 137 (1989). [5] A. Billionnet and S.Elloumi, Using a mixed integer quadratic programming solver for the unconstrained quadratic 0-1 problem, Mathematical Programming 109, 55 68 (2007). [6] E. Boros, P. Hammer and G. Tavares, Local search heuristics for quadratic unconstrained binary optimization (QUBO), Journal of Heuristics 13, 99 132 (2007). [7] C. De Simone, The cut polytope and the Boolean quadric polytope Discrete Mathematics 79(1), 71-75 (1990). [8] C. De Simone, M. Diehl, M. Jünger, P. Mutzel, G. Reinelt, and G. Rinaldi, Exact ground states of Ising spin glasses: New experimental results with a branch-and-cut algorithm Journal of Statistical Physics 80(1-2), 487 496 (1995). [9] D-Wave Systems Inc., 4401 Still Creek Drive, Burnaby, British Columbia, Canada V5C 6G9 [10] A. Caprara and M. Fischetti, 0, 1/2-Chvtal-Gomory cuts, Mathematical Programming 74, 221 235 (1996). [11] R. Fortet, Applications de l algebre de Boole en recherche opérationelle. Revue Française de Recherche Opérationelle 4(14), 17 26 (1960). [12] R. Harris, M. W. Johnson, T. Lanting, A. J. Berkley, J. Johanson, P. Bunyk, E. Tolkacheva, E. Ladizinsky, N. Ladizinsky, T. Oh, et. al., Experimental investigation of an eight-qubit unit cell in a superconducting optimization processor, Phys. Rev. B 82 024511 (2010). [13] IBM ILOG CPLEX Optimizer, www-01.ibm.com/software/commerce/optimization/cplex-optimizer [14] C. C. McGeoch and C. Wang, Experimental Evaluation of an adiabatic quantum system for combinatorial optimization, Proceedings of the 2013 ACM Conference on Computing Frontiers 2013, Ischia, Italy. 5