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:
- Create a new changelog fragment directory
changelog.dif it doesn't exist. - Run
hatch run changelog:createto create a new changelog fragment file. - Add relevant changes (Only include changes that are relevant to the external users) to the new changelog fragment file.
- Commit the changes and push to the repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hybridsolver-0.16.0rc3.tar.gz.
File metadata
- Download URL: hybridsolver-0.16.0rc3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b306b241f6167fc48845155800ddaea6ce8adc13e39ee9c9618aa49d0617de9b
|
|
| MD5 |
42d8cf03d95be38f6716ac7dd4d33c33
|
|
| BLAKE2b-256 |
01beefe88b66429d18f3e239af1f6e56fa3940a3ece08555576396c302207d79
|
Provenance
The following attestation bundles were made for hybridsolver-0.16.0rc3.tar.gz:
Publisher:
api-client-publish.yml on strangeworks/HybridSolver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hybridsolver-0.16.0rc3.tar.gz -
Subject digest:
b306b241f6167fc48845155800ddaea6ce8adc13e39ee9c9618aa49d0617de9b - Sigstore transparency entry: 1393016776
- Sigstore integration time:
-
Permalink:
strangeworks/HybridSolver@737cfbfa9c3179f78390ec95c25e5025d0f9b0e0 -
Branch / Tag:
refs/heads/axel/dev-1050-setup-hibridsolver-repo-in-strangeworks-pypi - Owner: https://github.com/strangeworks
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
api-client-publish.yml@737cfbfa9c3179f78390ec95c25e5025d0f9b0e0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file hybridsolver-0.16.0rc3-py3-none-any.whl.
File metadata
- Download URL: hybridsolver-0.16.0rc3-py3-none-any.whl
- Upload date:
- Size: 66.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a862bb45128f8971fa48511a4e2154579267be2659b6c80f9c0afe01a4c8226d
|
|
| MD5 |
aed2435bf0d288c5299e9dfdd4b58288
|
|
| BLAKE2b-256 |
5756d43849d4cc8e56bf1319e373c929cb311afe1734282df3f3b68f0d2edebc
|
Provenance
The following attestation bundles were made for hybridsolver-0.16.0rc3-py3-none-any.whl:
Publisher:
api-client-publish.yml on strangeworks/HybridSolver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hybridsolver-0.16.0rc3-py3-none-any.whl -
Subject digest:
a862bb45128f8971fa48511a4e2154579267be2659b6c80f9c0afe01a4c8226d - Sigstore transparency entry: 1393016807
- Sigstore integration time:
-
Permalink:
strangeworks/HybridSolver@737cfbfa9c3179f78390ec95c25e5025d0f9b0e0 -
Branch / Tag:
refs/heads/axel/dev-1050-setup-hibridsolver-repo-in-strangeworks-pypi - Owner: https://github.com/strangeworks
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
api-client-publish.yml@737cfbfa9c3179f78390ec95c25e5025d0f9b0e0 -
Trigger Event:
workflow_dispatch
-
Statement type: