Pre-release
This release is a pre-release and may not be stable for production use.
ommx-dwave-adapter
Provides an adapter to translate between OMMX and D-Wave samplers.
Currently only implements an adapter to LeapHybridCQMSampler.
Usage
ommx-dwave-adapter can be installed from PyPI as follows:
pip install ommx-dwave-adapter
An example usage of the LeapHybridCQMSampler through this adapter:
from ommx_dwave_adapter import OMMXLeapHybridCQMAdapter
from ommx import Instance
ommx_instance = Instance.minimize()
x1 = ommx_instance.new_binary("x1")
ommx_instance.objective = x1
# Create `ommx.SampleSet` through `dwave.system.LeapHybridCQMSampler`
# Your Leap token can be set through configuration file, environment variable,
# or passed with a `token` parameter.
ommx_sampleset = OMMXLeapHybridCQMAdapter.sample(ommx_instance)
print(ommx_sampleset)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ommx_dwave_adapter-0.2.0b1.tar.gz
(168.4 kB
view details)
File details
Details for the file ommx_dwave_adapter-0.2.0b1.tar.gz.
File metadata
- Download URL: ommx_dwave_adapter-0.2.0b1.tar.gz
- Upload date:
- Size: 168.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dafd0e2b4ba91fac379c78449010cf92ac554813a8580fcc0622d034ed8fbd4
|
|
| MD5 |
e1071ee5ef099b30bc5a17439ff8021a
|
|
| BLAKE2b-256 |
b391058f37419324aa329501687c49d829bdc2875250152b300125d450fc1fa9
|
Provenance
The following attestation bundles were made for ommx_dwave_adapter-0.2.0b1.tar.gz:
Publisher:
release.yml on Jij-Inc/ommx-dwave-adapter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ommx_dwave_adapter-0.2.0b1.tar.gz -
Subject digest:
1dafd0e2b4ba91fac379c78449010cf92ac554813a8580fcc0622d034ed8fbd4 - Sigstore transparency entry: 2827026322
- Sigstore integration time:
-
Permalink:
Jij-Inc/ommx-dwave-adapter@67045d4fbe68780d513fd2ba9b2b954ff07725df -
Branch / Tag:
refs/tags/v0.2.0b1 - Owner: https://github.com/Jij-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@67045d4fbe68780d513fd2ba9b2b954ff07725df -
Trigger Event:
push
-
Statement type: