dimod-cache-0.0.0
توضیحات
A replay cache for the `dimod.Sampler`-class.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dimod-cache-0.0.0 |
| نام | dimod-cache |
| نسخه کتابخانه | 0.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Janus <janus@insignificancegalore.net> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dimod-cache/ |
| مجوز | MIT License |
`dimod-cache` is a hoarding proxy framework for `dimod.Sampler`-objects.
Example use:
```
import dimod
import dwave.samplers
qubo = dimod.generators.gnp_random_bqm(10, .5, 'BINARY').to_qubo()[0]
sampler = HoardingSampler(dwave.samplers.SimulatedAnnealingSampler(), replay=True)
res_1 = sampler.sample_qubo(qubo, num_reads=10)
sampler = HoardingSampler(dwave.samplers.SimulatedAnnealingSampler(), replay=True)
res_2 = sampler.sample_qubo(qubo, num_reads=10)
assert res_1==res_2
```
نیازمندی
| مقدار | نام |
|---|---|
| - | dimod |
| - | numpy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl dimod-cache-0.0.0:
pip install dimod-cache-0.0.0.whl
نصب پکیج tar.gz dimod-cache-0.0.0:
pip install dimod-cache-0.0.0.tar.gz