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 hashes)
Built Distribution
Close
Hashes for dimod_cache-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe1cc67cf33cdb34761caf6dea1dc0dee2f798ada5a539e1b994e2f0f120e99 |
|
MD5 | 7cc60b5400d80be20cc5f4bfb7efcf83 |
|
BLAKE2b-256 | de9fc1fe842831ecedf2edacb836af8568223cf1eab2e741057d3c9dfe414da4 |