dwave.cloud.solver.UnstructuredSolver.sample_qubo

UnstructuredSolver.sample_qubo(qubo, offset=0, **params)

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.
  • **params – Parameters for the sampling method, solver-specific.
Returns:

Future

Note

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