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.0.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.0.0
File Size Uploaded Provenance Actions
ommx_dwave_adapter-0.0.0.tar.gz 12.3 kB With provenance Details for ommx_dwave_adapter-0.0.0.tar.gz

Release files / ommx_dwave_adapter-0.0.0.tar.gz

Download URL ommx_dwave_adapter-0.0.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
14e45bc71b8a6c012a59dedda743cc9318b5a51c903ceeee61308e979ad6e8cc
BLAKE2b-256 checksum
How to use checksums
98be9a8fc9f3c99fbe80f4095820c55f493d187c81e4437c072b2c1fcd410f72
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 Mar 20, 2025.

Transparency log

Security for ommx-dwave-adapter 0.0.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.0.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 Mar 20, 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