dwave.cloud.solver.CQMSolver.sample_cqm#
- CQMSolver.sample_cqm(cqm, label=None, **params)[source]#
Sample from the specified CQM.
- Parameters:
cqm (
ConstrainedQuadraticModel
/str) – A constrained quadratic model, or a reference to one (Problem ID returned by .upload_cqm method).label (str, optional) – Problem label you can optionally tag submissions with for ease of identification.
**params – Parameters for the sampling method, solver-specific.
- Returns:
Note
To use this method, dimod package has to be installed.