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 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)

Uploaded Source

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

Hashes for ommx_dwave_adapter-0.2.0b1.tar.gz
Algorithm Hash digest
SHA256 1dafd0e2b4ba91fac379c78449010cf92ac554813a8580fcc0622d034ed8fbd4
MD5 e1071ee5ef099b30bc5a17439ff8021a
BLAKE2b-256 b391058f37419324aa329501687c49d829bdc2875250152b300125d450fc1fa9

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0b1 This release

1 file

0.1.1

1 file

0.1.0

1 file

0.0.3

1 file

0.0.2

1 file

0.0.0

1 file

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