Skip to main content

This package contains the CLI and API to access the HybridSolver.

Project description

HybridSolver API Client

This package contains the CLI and API to access the HybridSolver.

Installation

Python >= 3.8 is required. Then, do

python -m pip install hybridsolver

In order to use the cloud-based HybridSolver, you need to sign up for an API key at https://platform.quantagonia.com and set it system-wide by

export QUANTAGONIA_API_KEY=<your API key here>

Features

CLI

The package installs a hybridsolver CLI command for job submission, status checking, and solution retrieval:

hybridsolver submit problem.mps
hybridsolver status <job-id>
hybridsolver solution <job-id>

Supported Model Formats

  • MPS/LP files — Submit standard optimization problem files directly
  • PuLP — Integration with the PuLP modeling library
  • QUBO — Support via Qiskit, D-Wave Ocean, and pyqubo
  • SCIP — Integration with PySCIPOpt

Examples

The examples/ directory contains 14+ example scripts covering MIP, QUBO, batch solving, and various modeling interfaces. See Documentation for a Quick Start Guide and API reference.

Development

This project uses Hatch for environment management, testing, and building:

hatch test                    # run unit tests
hatch fmt --linter --check    # lint check
hatch fmt --formatter --check # format check
hatch build                   # build package

Changelog for Documentation

To include the changelog in the external documentation, please see the add the relevant section in the changelog fragment file in the changelog.d directory for the latest changes.

Steps to add a new changelog:

  1. Create a new changelog fragment directory changelog.d if it doesn't exist.
  2. Run hatch run changelog:create to create a new changelog fragment file.
  3. Add relevant changes (Only include changes that are relevant to the external users) to the new changelog fragment file.
  4. Commit the changes and push to the repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hybridsolver-0.16.0.tar.gz (4.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hybridsolver-0.16.0-py3-none-any.whl (66.6 kB view details)

Uploaded Python 3

File details

Details for the file hybridsolver-0.16.0.tar.gz.

File metadata

  • Download URL: hybridsolver-0.16.0.tar.gz
  • Upload date:
  • Size: 4.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hybridsolver-0.16.0.tar.gz
Algorithm Hash digest
SHA256 3e5cb0de6b082196ba62a7d0a510f4d33050390f5c2425cbc6a3119bf17822be
MD5 3105345ccbefd1f78a0dd8e1d2a7c8a2
BLAKE2b-256 d267ba836f975bc420ed04e24cb3d0454cb41d98aac94a95077c107befe775ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for hybridsolver-0.16.0.tar.gz:

Publisher: api-client-publish.yml on strangeworks/HybridSolver

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

File details

Details for the file hybridsolver-0.16.0-py3-none-any.whl.

File metadata

  • Download URL: hybridsolver-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 66.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hybridsolver-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a490e587b7eecb5277e3449a684a2685690d36984463a429d1af2f01d058a16
MD5 d1b1ac2e04de4f1ef2dc9f948be8ea9f
BLAKE2b-256 4e76bd19df9d5ace38ee922ebc2e050c7f8538d54cf0c3707bd8ce00718a2197

See more details on using hashes here.

Provenance

The following attestation bundles were made for hybridsolver-0.16.0-py3-none-any.whl:

Publisher: api-client-publish.yml on strangeworks/HybridSolver

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page