Skip to main content
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.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.0rc1

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.0rc1
File Size Uploaded Provenance Actions
ommx_dwave_adapter-0.1.0rc1.tar.gz 109.1 kB With provenance Details for ommx_dwave_adapter-0.1.0rc1.tar.gz

Release files / ommx_dwave_adapter-0.1.0rc1.tar.gz

Download URL ommx_dwave_adapter-0.1.0rc1.tar.gz
Size 109.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a9f250706e6dd6c758151f486cab4ec9b8a394d277423d1f1dc210c62c6472e4
BLAKE2b-256 checksum
How to use checksums
9d6b763c7ac9441d1739f51c24298b33b8976358e0ac47186aab641a39db7cdf
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 2, 2025.

Transparency log

Security for ommx-dwave-adapter 0.1.0rc1

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.0rc1.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 2, 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