dimod.reference.samplers.ExactPolySolver.sample_hising

ExactPolySolver.sample_hising(h: Mapping[Hashable, Union[float, numpy.floating, numpy.integer]], J: Mapping[Tuple[Hashable, Hashable], Union[float, numpy.floating, numpy.integer]], **kwargs) dimod.sampleset.SampleSet[source]

Sample from a higher-order Ising model.

Converts the given higher-order Ising model to a BinaryPolynomial and calls sample_poly().

Parameters
  • h – Variable biases of the Ising problem.

  • J – Interaction biases of the Ising problem.

  • **kwargs – See sample_poly() for additional keyword definitions.

Returns

Samples from the higher-order Ising model.