Skip to content

Leap Hybrid BQM

Leap's quantum-classical hybrid solvers are intended to solve arbitrary application problems formulated as quadratic models. This solver accepts arbitrarily structured, unconstrained problems formulated as BQMs, with any constraints typically represented through penalty models.

Compatible Backends

Backend Default
DWaveQpu

Initialization

Python
from luna_quantum.solve.parameters.algorithms.quantum_annealing.leap_hybrid_bqm import LeapHybridBqm

algorithm = LeapHybridBqm(
    backend=None,
    time_limit=None
)

Usage

Python
from luna_quantum.algorithms import LeapHybridBqm
from luna_quantum import Model, Vtype
model = Model('Example Model')
x = model.add_variable('x', Vtype.BINARY)
model.set_objective(1*x)

algorithm = LeapHybridBqm()
solve_job = algorithm.run(model, name="my-solve-job")