JuMP interface for LANL's QuantumAnnealing.jl
import Pkg
Pkg.add("JuMP")
Pkg.add("QuantumAnnealingInterface")using JuMP
using QuantumAnnealingInterface
model = Model(QuantumAnnealingInterface.Optimizer)
Q = [ -1 2 2
2 -1 2
2 2 -1 ]
@variable(model, x[1:3], Bin)
@objective(model, Min, x' * Q * x)
optimize!(model)QuantumAnnealing.jl's state-vector backend builds a dense 2^n by 2^n
density matrix. QuantumAnnealingInterface.Optimizer rejects models with more
than 12 variables by default through the "max_variables" optimizer attribute.
Raise this limit only when the corresponding memory cost is acceptable.