dimod-cache


Namedimod-cache JSON
Version 0.0.0 PyPI version JSON
download
home_page
SummaryA replay cache for the `dimod.Sampler`-class.
upload_time2023-03-10 22:31:28
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License
keywords dimod cache
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `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
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dimod-cache",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "dimod,cache",
    "author": "",
    "author_email": "Janus <janus@insignificancegalore.net>",
    "download_url": "https://files.pythonhosted.org/packages/f2/d4/0811142185d524dec5bd4cfc8f1c143ace43226dc84b97c7a7019116757e/dimod-cache-0.0.0.tar.gz",
    "platform": null,
    "description": "`dimod-cache` is a hoarding proxy framework for `dimod.Sampler`-objects.\n\nExample use:\n\n```\nimport dimod\nimport dwave.samplers\n\nqubo = dimod.generators.gnp_random_bqm(10, .5, 'BINARY').to_qubo()[0]\n\nsampler = HoardingSampler(dwave.samplers.SimulatedAnnealingSampler(), replay=True)\nres_1 = sampler.sample_qubo(qubo, num_reads=10)\n\nsampler = HoardingSampler(dwave.samplers.SimulatedAnnealingSampler(), replay=True)\nres_2 = sampler.sample_qubo(qubo, num_reads=10)\n\nassert res_1==res_2\n```\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A replay cache for the `dimod.Sampler`-class.",
    "version": "0.0.0",
    "split_keywords": [
        "dimod",
        "cache"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de9fc1fe842831ecedf2edacb836af8568223cf1eab2e741057d3c9dfe414da4",
                "md5": "7cc60b5400d80be20cc5f4bfb7efcf83",
                "sha256": "dfe1cc67cf33cdb34761caf6dea1dc0dee2f798ada5a539e1b994e2f0f120e99"
            },
            "downloads": -1,
            "filename": "dimod_cache-0.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7cc60b5400d80be20cc5f4bfb7efcf83",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6288,
            "upload_time": "2023-03-10T22:31:25",
            "upload_time_iso_8601": "2023-03-10T22:31:25.992625Z",
            "url": "https://files.pythonhosted.org/packages/de/9f/c1fe842831ecedf2edacb836af8568223cf1eab2e741057d3c9dfe414da4/dimod_cache-0.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f2d40811142185d524dec5bd4cfc8f1c143ace43226dc84b97c7a7019116757e",
                "md5": "640da5cad80bf477e48df229351182b9",
                "sha256": "59a21a47f26ca1465659fd6486d642c1627909c1f557900a9edb6b428f7cd8fb"
            },
            "downloads": -1,
            "filename": "dimod-cache-0.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "640da5cad80bf477e48df229351182b9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6935,
            "upload_time": "2023-03-10T22:31:28",
            "upload_time_iso_8601": "2023-03-10T22:31:28.523213Z",
            "url": "https://files.pythonhosted.org/packages/f2/d4/0811142185d524dec5bd4cfc8f1c143ace43226dc84b97c7a7019116757e/dimod-cache-0.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-10 22:31:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "dimod-cache"
}
        
Elapsed time: 0.74602s