dwave.system.samplers.DWaveSampler.sample_ising¶

DWaveSampler.
sample_ising
(h, *args, **kwargs)[source]¶ Sample from an Ising model using the implemented sample method.
This method is inherited from the
Sampler
base class.Converts the Ising model into a
BinaryQuadraticModel
and then callssample()
.Parameters:  h (dict/list) – Linear biases of the Ising problem. If a dict, should be of the form {v: bias, …} where is a spinvalued 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 – See the implemented sampling for additional keyword definitions.
Returns: See also