An implementation of a simulated annealing sampler.
import neal
sampler = neal.SimulatedAnnealingSampler()
h = {0: -1, 1: -1}
J = {(0, 1): -1}
response = sampler.sample_ising(h, J)
To install:
pip install dwave-neal
To build from source:
pip install -r requirements.txt
python setup.py build_ext --inplace
python setup.py install
Released under the Apache License 2.0. See LICENSE file.
See CONTRIBUTING.rst file.