dimod.reference.composites.truncatecomposite.TruncateComposite.sample#

TruncateComposite.sample(bqm, **kwargs)[source]#

Sample from the binary quadratic model and truncate returned sample set.

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

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

Returns:

dimod.SampleSet