Skip to main content

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.v1 import Instance, DecisionVariable

x1 = DecisionVariable.integer(1, lower=0, upper=5)
ommx_instance = Instance.from_components(
    decision_variables=[x1],
    objective=x1,
    constraints=[],
    sense=Instance.MINIMIZE,
)

# Create `ommx.v1.SampleSet` through `diwave.system.LeapHybridCQMSampler`
# Your Leap token can be set through configuration file, environment variable,
# or passed with a `token` parameter.
ommx_sampleset = OMMLeapHybridCQMAdapter.sample(ommx_instance)

print(ommx_sampleset)

Metadata

Release files for ommx-dwave-adapter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ommx-dwave-adapter 0.1.0
File Size Uploaded Provenance Actions
ommx_dwave_adapter-0.1.0.tar.gz 109.1 kB With provenance Details for ommx_dwave_adapter-0.1.0.tar.gz

Release files / ommx_dwave_adapter-0.1.0.tar.gz

Download URL ommx_dwave_adapter-0.1.0.tar.gz
Size 109.1 kB
Tags Source
SHA-256 checksum
How to use checksums
257ef3fafbbd88900218d45babdc7bd0dd7c86b8fd0ae3431a063bce42bb3158
BLAKE2b-256 checksum
How to use checksums
5d2af0cb5509024ba3333974cd8f25fbcfa2365611d475e2f3d763c1cf13baea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 4, 2025.

Transparency log

Security for ommx-dwave-adapter 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for ommx_dwave_adapter-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 4, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page