通用ising图模拟退火求解器
dwave-neal的Python项目详细描述
dwave neal
模拟退火取样器的实现。
示例用法
importnealsampler=neal.SimulatedAnnealingSampler()h={0:-1,1:-1}J={(0,1):-1}response=sampler.sample_ising(h,J)
安装
要安装:
pip install dwave-neal
从源代码生成:
pip install -r requirements.txt python setup.py build_ext --inplace python setup.py install
许可证
在apache许可证2.0下发布。请参阅许可证文件。
贡献
请参见CONTRIBUTING.rst文件