Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
quantagonia-api-client
Advanced tools
This package contains APIs for accessing Quantagonia's HybridSolver for solving MIPs and QUBOs through native file formats or PuLP resp. PyQUBO, Qiskit, or Ocean
This package contains Quantagonia's CLI client and client-side APIs for using HybridSolver in the cloud.
Python >= 3.8 is required. Then, do
python -m pip install quantagonia-api-client
In order to use HybridSolver through Quantagonia's cloud system, you'll need to sign up for an API key and set it system-wide by
export QUANTAGONIA_API_KEY=<your API key here>
This package provides the script hybridsolver
to interact with the
cloud solver. In order to solve a MIP (supported formats: .mps, .lp, .mps.gz, .lp.gz
) or QUBO (spported formats: .qubo, .qubo.gz
), just
use
hybridsolver solve path/to/example.mps
which will automatically set all parameters and solver controls to their default value, which is a good compromise for many middle-sized optimization problems out there.
The solve
call has a few options (try hybridsolver solve --help
) and will, after submitting the problem, stream the logs and output the
solution vector if one is found.
To start a job without attaching to its log stream and leave it running in the background, use
hybridsolver submit path/to/example.mps
which supports the same parameters as solve
and returns a job_id
.
using this ID, logs, results and job status as well as time billed can
be retrieved using
hybridsolver (logs | solution | status | time_billed) job_id
Lastly, in order to cancel a runnning job and avoid unnecessary
costs, use hybridsolver cancel job_id
. To list k
active and/or past jobs,
use hybridsolver list --n=k
.
The capabilities of the API client include, but are not limited to:
For starters, you can run the examples in examples/
through, e.g.,
QUANTAGONIA_API_KEY="<redacted>" python examples/submit_qubo.py
with a valid Quantagonia API key.
For more details, we refer to our API reference.
FAQs
This package contains APIs for accessing Quantagonia's HybridSolver for solving MIPs and QUBOs through native file formats or PuLP resp. PyQUBO, Qiskit, or Ocean
We found that quantagonia-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.