dwave.system.samplers.DWaveCliqueSampler.sample_ising¶
-
DWaveCliqueSampler.sample_ising(h: Union[Mapping[Hashable, Union[float, numpy.floating, numpy.integer]], Sequence[Union[float, numpy.floating, numpy.integer]]], J: Mapping[Tuple[Hashable, Hashable], Union[float, numpy.floating, numpy.integer]], **parameters) → dimod.sampleset.SampleSet¶ Sample from an Ising model using the implemented sample method.
This method is inherited from the
Samplerbase class.Converts the Ising model into a
BinaryQuadraticModeland then callssample().Parameters: - h – Linear biases of the Ising problem. If a list, indices are the variable labels.
- J – Quadratic biases of the Ising problem.
- **kwargs – See the implemented sampling for additional keyword definitions.
Returns: Samples from the Ising model.
See also