dimod.reference.samplers.ExactPolySolver.sample_hising#

ExactPolySolver.sample_hising(h: Mapping[Hashable, float | floating | integer], J: Mapping[tuple[Hashable, Hashable], float | floating | integer], **kwargs) 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.