Skip to main content

ommx-da4-adapter

This package provides an adapter for Fujitsu Digital Annealer(DA4) from OMMX. It allows you to solve optimization problems defined in OMMX format using DA4's powerful solver.

Installation

The ommx-da4-adapter can be installed from PyPI as follows:

pip install ommx-da4-adapter

Usage

Here's a simple example of how to use the adapter directly:

from ommx import Instance
from ommx_da4_adapter import OMMXDA4Adapter

ommx_instance = Instance.minimize()
x_0 = ommx_instance.new_binary("x_0")
x_1 = ommx_instance.new_binary("x_1")
ommx_instance.objective = x_0 * x_1 + x_0 - x_1 + 1
ommx_instance.add_constraint(x_0 + x_1 == 1)

ommx_sampleset = OMMXDA4Adapter.sample(
    ommx_instance=ommx_instance,
    token="*** your da4 api token ***",
    url="*** da4 url ***",
)

You can also use the adapter and client separately:

from ommx_da4_adapter import OMMXDA4Adapter, DA4Client

# Assuming ommx_instance is already defined as above
adapter = OMMXDA4Adapter(ommx_instance)

qubo_request = adapter.sampler_input

client = DA4Client(
    token="*** your da4 api token ***",
    url="*** da4 url ***",
)

qubo_response = client.sample(qubo_request=qubo_request)

ommx_sampleset = adapter.decode_to_sampleset(qubo_response)

Metadata

Release files for ommx-da4-adapter 0.2.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-da4-adapter 0.2.0
File Size Uploaded Provenance Actions
ommx_da4_adapter-0.2.0.tar.gz 92.1 kB With provenance Details for ommx_da4_adapter-0.2.0.tar.gz

Release files / ommx_da4_adapter-0.2.0.tar.gz

Download URL ommx_da4_adapter-0.2.0.tar.gz
Size 92.1 kB
Tags Source
SHA-256 checksum
How to use checksums
956045a4d31432dd5d9618100d7f66a483765252e66cca0cbcb4dff485edb14b
BLAKE2b-256 checksum
How to use checksums
e11d99f55fd2b097a80b1ff34b2648d4401f49ec61017300fc19b80e2f49f67a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for ommx-da4-adapter 0.2.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_da4_adapter-0.2.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 Nov 25, 2026.

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