dwave.system.composites.PolyCutOffComposite.sample_hising

PolyCutOffComposite.sample_hising(h, J, **kwargs)

Sample from a higher-order Ising model.

Convert the given higher-order Ising model to a BinaryPolynomial and call sample_poly().

Parameters
  • h (dict) – Variable biases of the Ising problem as a dict of the form {v: bias, …}, where v is a variable in the polynomial and bias its associated coefficient.

  • J (dict) – Interaction biases of the Ising problem as a dict of the form {(u, v, …): bias}, where u, v, are spin-valued variables in the polynomial and bias their associated coefficient.

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

Returns

SampleSet