dwave.system.composites.VirtualGraphComposite.sample_ising

VirtualGraphComposite.sample_ising(h, J, apply_flux_bias_offsets=True, **kwargs)[source]

Sample from the given Ising model.

Parameters:
  • h (list/dict) – Linear terms of the model.
  • J (dict of (int, int) – float): Quadratic terms of the model.
  • apply_flux_bias_offsets (bool, optional) – If True, use the calculated flux_bias offsets (if available).
  • **kwargs – Parameters for the sampling method, specified by the child sampler.