dimod.reference.composites.tracking.TrackingComposite.sample_ising#

TrackingComposite.sample_ising(h, J, **parameters)[source]#

Sample from the child sampler and store the given inputs/outputs.

The binary quadratic model and any parameters are stored in inputs. The returned sample set is stored in outputs.

Parameters:
  • h (dict/list) – Linear biases of the Ising problem. If a dict, should be of the form {v: bias, …} where is a spin-valued variable and bias is its associated bias. If a list, it is treated as a list of biases where the indices are the variable labels.

  • J (dict[(variable, variable), bias]) – Quadratic biases of the Ising problem.

  • **kwargs – Parameters for the sampling method, specified by the child sampler.

Returns:

dimod.SampleSet