47-779 Lecture 5 - Quadratic Unconstrained Binary Optimization (QUBO)
47-779 Lecture 5 - Quadratic Unconstrained Binary Optimization (QUBO)
Programming
47-779
Quadratic Unconstrained
Binary Optimization (QUBO)
2
William Larimer Mellon, Founder
Agenda
o QUBO Definition
– QUBO: Binarization
– QUBO: Unconstraining
– QUBO: Quadratization
o Coloring Example
o Integer Factorization
3
William Larimer Mellon, Founder
QUBO model
Quadratic Unconstrained Binary Optimization
In terms of IP it would be a
(possible non-convex if )
Integer Nonlinear Program
4
William Larimer Mellon, Founder
QUBO - Ising Mapping
1-to-1 mapping between QUBO and Ising models using spin-binary
bijection
5
William Larimer Mellon, Founder
QUBO as Integer Programs
Although this is already solvable using INLP programming tools, we can reformulate it as
a ILP by adding a variable whose nonlinearity can be posed a linear
inequalities.
Experimental results show this is the most efficient ILP formulation of the Ising problem
[1] Billionnet, A., Elloumi, S.: Using a mixed integer quadratic programming solver
for the unconstrained quadratic 0-1 problem. Mathematical Programming 109(1)
(2007) 55–68
6
William Larimer Mellon, Founder
QUBO - Binarization
How to transform general Integer Programs into Binary programs?
o Unary encoding
o Binary encoding
o Bounded encoding
We can find an encoding with an upper bound for the coefficients
[1] Karimi, Sahar, and Pooya Ronagh. "Practical integer-to-binary mapping for quantum
annealers." Quantum Information Processing 18.4 (2019): 94. 7
William Larimer Mellon, Founder
QUBO - Binarization
upper bound can be computed from the problem matrix
and the resolution of the quadratic and linear terms in the machine
[1] Karimi, Sahar, and Pooya Ronagh. "Practical integer-to-binary mapping for quantum
annealers." Quantum Information Processing 18.4 (2019): 94. 8
William Larimer Mellon, Founder
QUBO - Pseudo-Boolean
functions and Quadratization
Any pseudo-Boolean function defined as
1 1 0 1 1
1 0 0 0 0
o Graph: 0 1 1 0 1
3
0 1 0 0 0
Usually called -2 -2
ancillary variables 0 0 1 0 3
0 0 0 0 0
1
[1] Boros, Endre, and Peter L. Hammer. "Pseudo-boolean optimization." Discrete applied
mathematics 123.1-3 (2002): 155-225. 9
William Larimer Mellon, Founder
QUBO - Quadratization and
logical functions
We can follow the previous reduction to obtain a Quadratically
constrained program from any arbitrary problem.
There are many clever way of “Quadratizing” problems [1]
o Cubic
o Quartic
Logical gates
AND:
OR:
NOT:
For IP problems, strong duality does not hold, but we can still use the
multipliers to convert the problem into unconstrained
11
William Larimer Mellon, Founder
QUBO - Unconstraining
We can transform any arbitrary constraint in terms of binaries into
multilinear, and then quadratize them.
We can then transform inequalities into equalities by introducing slack
variables, which by scaling the constraints become integers
FInally we can binarize these slacks
12
William Larimer Mellon, Founder
QUBO - Unconstraining
Penalty factor
In general, we represent the constrained problem with a feasible region
Where the variables include both the original variables and ancillas
The penalization factor for each constraint should read
[1] Bian, Zhengbing, et al. "Discrete optimization using quantum annealing on sparse Ising
models." Frontiers in Physics 2 (2014): 56. 13
William Larimer Mellon, Founder
QUBO - Examples
Binary Linear Programming
o Objective function
https://colab.research.google.com/github/bern
alde/QuIP/blob/master/notebooks/Notebook%2
05%20-%20QUBO.ipynb
15
William Larimer Mellon, Founder
QUBO - Examples
Coloring with colors
Groebner basis polynomial
IP formulation (SAT)
QUBO Formulation
[1] Lucas, Andrew. "Ising formulations of many NP problems." Frontiers in Physics 2 (2014): 5.
16
William Larimer Mellon, Founder
QUBO for coloring initial graph
with 3 colors
https://colab.research.google.com/github/bern
alde/QuIP/blob/master/notebooks/Notebook%2
05%20-%20QUBO.ipynb
17
William Larimer Mellon, Founder
QUBO - Quadratization
Algebraic geometry
[1] Dridi, Raouf, and Hedayat Alghassi. "Prime factorization using quantum annealing and
computational algebraic geometry." Scientific reports 7 (2017): 43048. 18
William Larimer Mellon, Founder
QUBO - Quadratization
Algebraic geometry
[1] Dridi, Raouf, and Hedayat Alghassi. "Prime factorization using quantum annealing and
computational algebraic geometry." Scientific reports 7 (2017): 43048. 19
William Larimer Mellon, Founder
QUBO - Quadratization
[1] Dridi, Raouf, and Hedayat Alghassi. "Prime factorization using quantum annealing and
computational algebraic geometry." Scientific reports 7 (2017): 43048. 20
William Larimer Mellon, Founder
Integer Factorization by Raouf
and Hedayat
Initial code
https://colab.research.google.com/github/bern
alde/QuIP/blob/master/notebooks/Notebook%2
05%20-%20QUBO.ipynb
21
William Larimer Mellon, Founder