Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 938 Bytes

File metadata and controls

35 lines (26 loc) · 938 Bytes

QuantumAnnealingInterface.jl

QUBODRIVERS

JuMP interface for LANL's QuantumAnnealing.jl

Installation

import Pkg
Pkg.add("JuMP")
Pkg.add("QuantumAnnealingInterface")

Usage

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)

Simulation Size Limit

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.