dimod.reference.composites.PolyFixedVariableComposite.sample_poly#

PolyFixedVariableComposite.sample_poly(poly, fixed_variables=None, **parameters)[source]#

Sample from the provided binary quadratic model.

Parameters:
  • poly (dimod.BinaryPolynomial) – Binary polynomial model to be sampled from.

  • fixed_variables (dict) – A dictionary of variable assignments.

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

Returns:

dimod.SampleSet