Strangeworks QAOA SDK Extension
The strangeworks-qaoa package allows users to construct and solve problems with the Quantum Approximate Optimization Algorithm (QAOA) on multiple hardware providers through the Strangeworks Platform.
The package implements StrangeworksQAOA, an enhanced version of QAOA that tracks and reports the best individual bitstring solution found throughout the optimization process, rather than only using the average cost over all measurements.
Installation
pip install -U pip strangeworks-qaoa
Requirements
- Python version (see badge above)
- A Strangeworks account and API key (Get started)
- Quantum Resources enabled in your workspace
Quick Start
import strangeworks as sw
from strangeworks_qaoa.sdk import StrangeworksQAOA
import strangeworks_qaoa.utils as utils
sw.authenticate(api_key)
sw_qaoa = StrangeworksQAOA()
# Create problem
problem = utils.get_nReg_MaxCut_QUBO(3, 4, 0)
# Define parameters
problem_params = {
"nqubits": 4,
"maxiter": 50,
"shotsin": 1000,
}
# Run job
sw_job = sw_qaoa.run("SV1", problem, problem_params)
result = sw_qaoa.get_results(sw_job)
Documentation
Comprehensive documentation including problem formats, algorithm variants, parameters, and examples is available at docs.strangeworks.com/algorithms/qaoa.
Support
For support, questions, or feature requests:
Metadata
Release files for strangeworks-qaoa 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| strangeworks_qaoa-0.1.13.tar.gz | 11.8 kB | Without provenance | Details for strangeworks_qaoa-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strangeworks_qaoa-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for strangeworks_qaoa-0.1.13-py3-none-any.whl |
Total release size: 24.6 kB
Release files / strangeworks_qaoa-0.1.13.tar.gz
| Download URL | strangeworks_qaoa-0.1.13.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed3ab2d55433b67ea8739cef94f7736ddcb49160bd3b0057d473432dbb33a016
|
|
BLAKE2b-256 checksum How to use checksums |
b0777b3885910ce2d4386cc5bd86db561a45b805f92f1d42385204d6dd0e29af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.25 Linux/6.11.0-1018-azure
|
Release files / strangeworks_qaoa-0.1.13-py3-none-any.whl
| Download URL | strangeworks_qaoa-0.1.13-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e3f6ac9cb2dff57c49d1d615cb50400122283519c73aa107aef1e795bcc7bb2
|
|
BLAKE2b-256 checksum How to use checksums |
f6bf35fb79f25e4f70efb17d8faa06b6e78c1c8573a370bd5f848af24735b3ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.25 Linux/6.11.0-1018-azure
|
Security for strangeworks-qaoa 0.1.13
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.