dwave.system.composites.VirtualGraphComposite.sample#

VirtualGraphComposite.sample(bqm, apply_flux_bias_offsets=True, **kwargs)[source]#

Sample from the given Ising model.

Parameters:
  • h (list/dict) – Linear biases of the Ising model. If a list, the list’s indices are used as variable labels.

  • J (dict of (int, int) – float): Quadratic biases of the Ising model.

  • apply_flux_bias_offsets (bool, optional) – If True, use the calculated flux_bias offsets (if available).

  • **kwargs – Optional keyword arguments for the sampling method, specified per solver.

See Ocean Glossary for explanations of technical terms in descriptions of Ocean tools.