greedy.composite.SteepestDescentComposite.sample_qubo

SteepestDescentComposite.sample_qubo(Q, **parameters)

Sample from a QUBO using the implemented sample method.

This method is inherited from the Sampler base class.

Converts the QUBO into a BinaryQuadraticModel and then calls sample().

Parameters
  • Q (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.

  • **kwargs – See the implemented sampling for additional keyword definitions.

Returns

SampleSet