A replay cache for the `dimod.Sampler`-class.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dimod-cache-0.0.0.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dimod-cache-0.0.0.tar.gz.
File metadata
- Download URL: dimod-cache-0.0.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59a21a47f26ca1465659fd6486d642c1627909c1f557900a9edb6b428f7cd8fb
|
|
| MD5 |
640da5cad80bf477e48df229351182b9
|
|
| BLAKE2b-256 |
f2d40811142185d524dec5bd4cfc8f1c143ace43226dc84b97c7a7019116757e
|
File details
Details for the file dimod_cache-0.0.0-py3-none-any.whl.
File metadata
- Download URL: dimod_cache-0.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfe1cc67cf33cdb34761caf6dea1dc0dee2f798ada5a539e1b994e2f0f120e99
|
|
| MD5 |
7cc60b5400d80be20cc5f4bfb7efcf83
|
|
| BLAKE2b-256 |
de9fc1fe842831ecedf2edacb836af8568223cf1eab2e741057d3c9dfe414da4
|