dimod.reference.composites.fixedvariable.FixedVariableComposite.sample

FixedVariableComposite.sample(bqm, fixed_variables=None, **parameters)[source]

Sample from the provided binary quadratic model.

Parameters
  • bqm (dimod.BinaryQuadraticModel) – Binary quadratic 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