Sampler Interface
QUBODrivers.AbstractSampler — Type
AbstractSampler{T} <: MOI.AbstractOptimizerAbstract supertype for QUBODrivers sampler optimizers.
Concrete sampler optimizers are usually generated with QUBODrivers.@setup. They are MathOptInterface optimizers that accept QUBO or Ising models with binary or spin variables and return one or more sampled states through standard MOI result attributes.
The type parameter T is the numeric coefficient type used by the internal QUBOTools.Model.
QUBODrivers.set_model! — Function
set_model!(sampler::AbstractSampler{T}, model::QUBOTools.Model{VI,T,Int}) where {T}Store the QUBOTools model backing a sampler.
The @setup macro provides this method for generated optimizer types. Custom sampler types that do not use @setup must provide it so that MOI.copy_to can transfer JuMP/MOI models into the sampler before optimization.