Other Solver Properties & Parameters#
The Leap service provides several hybrid solvers for quadratic models with the properties and configurable parameters described here. For the properties and parameters of QPU solvers, see the QPU Solver Properties and QPU Solver Parameters sections.
Properties of the CQM solver.
Parameters of the CQM solver.
Properties of the binary quadratic model (BQM) solver.
Parameters of the BQM solver.
Properties of the discrete quadratic model (DQM) solver.
Parameters of the DQM solver.
Examples#
The following code creates a constrained quadratic model (CQM) representing a knapsack problem and solves it using a quantum-classical hybrid solver in the Leap service.
>>> from dimod.generators import random_knapsack
>>> from dwave.system import LeapHybridCQMSampler
...
>>> cqm = random_knapsack(10)
>>> sampler = LeapHybridCQMSampler()
>>> sampleset = sampler.sample_cqm(cqm,
... time_limit=180,
... label="SDK Examples - Bin Packing")