dwave.system.composites.CutOffComposite.sample#

CutOffComposite.sample(bqm, **parameters)[source]#

Cut off interactions and sample from the provided binary quadratic model.

Prunes the binary quadratic model (BQM) submitted to the child sampler by retaining only interactions with value commensurate with the sampler’s precision as specified by the cutoff argument. Also removes variables isolated post- or pre-removal of these interactions from the BQM passed on to the child sampler, setting these variables to values that minimize the original BQM’s energy for the returned samples.

Parameters:
  • bqm (dimod.BinaryQuadraticModel) – Binary quadratic model to be sampled from.

  • **parameters – Parameters for the sampling method, specified by the child sampler.

Returns:

dimod.SampleSet

Examples

See the example in CutOffComposite.