dwave.cloud.solver.UnstructuredSolver.sample_qubo#

UnstructuredSolver.sample_qubo(qubo, offset=0, label=None, **params)[source]#

Sample from the specified QUBO.

Parameters:
  • qubo (dict) – Coefficients of a quadratic unconstrained binary optimization (QUBO) problem. Should be a dict of the form {(u, v): bias, …} where u, v, are binary-valued variables and bias is their associated coefficient.

  • offset (optional, default=0) – Constant offset applied to the model.

  • label (str, optional) – Problem label you can optionally tag submissions with for ease of identification.

  • **params – Parameters for the sampling method, solver-specific.

Returns:

Future

Note

To use this method, dimod package has to be installed.