dimod.reference.composites.truncatecomposite.TruncateComposite.sample

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

Sample from the problem provided by BQM and truncate output.

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