Attention

dwave-greedy is deprecated since dwave-ocean-sdk 6.1.0 in favor of dwave-samplers and will be removed in dwave-ocean-sdk 8.0.0.

Composites#

The dwave-greedy package currently includes just one composite, SteepestDescentComposite.

SteepestDescentComposite#

Class#

class SteepestDescentComposite(child_sampler)[source]#

Runs greedy local optimization (steepest descent) on input problem, seeded with samples from the sampler.

Parameters:

child_sampler (dimod.Sampler) – A dimod sampler, such as a DWaveSampler.

Attributes#

SteepestDescentComposite.properties

Properties in the form of a dict.

SteepestDescentComposite.parameters

Parameters in the form of a dict.

Methods#

SteepestDescentComposite.sample(bqm, ...)

Find minima of a binary quadratic model.

SteepestDescentComposite.sample_ising(h, J, ...)

Sample from an Ising model using the implemented sample method.

SteepestDescentComposite.sample_qubo(Q, ...)

Sample from a QUBO using the implemented sample method.