dimod.reference.composites.PolyTruncateComposite.sample_poly#

PolyTruncateComposite.sample_poly(poly, **kwargs)[source]#

Sample from the binary polynomial and truncate output.

Parameters:
  • (obj (poly) – .BinaryPolynomial): A binary polynomial.

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

Returns:

dimod.SampleSet