dwave.system.samplers.LeapHybridCQMSampler.sample_cqm

LeapHybridCQMSampler.sample_cqm(cqm: dimod.constrained.ConstrainedQuadraticModel, time_limit: Optional[float] = None, **kwargs)[source]

Sample from the specified constrained quadratic model.

Parameters
  • cqm (dimod.ConstrainedQuadraticModel) – Constrained quadratic model (CQM).

  • time_limit (int, optional) –

    Maximum run time, in seconds, to allow the solver to work on the problem. Must be at least the minimum required for the problem, which is calculated and set by default.

    min_time_limit() calculates (and describes) the minimum time for your problem.

  • **kwargs – Optional keyword arguments for the solver, specified in parameters.

Returns

Sample set constructed from a (non-blocking) Future-like object.

Return type

SampleSet

Examples

See the example in LeapHybridCQMSampler.