Strangeworks Optimization
The Strangeworks Optimization SDK provides an abstraction layer for solving optimization problems using classical, quantum-inspired, and quantum solvers. It enables you to seamlessly switch between different optimization backends while maintaining a consistent interface.
Features
- Unified API for multiple optimization solvers (quantum, quantum-inspired, and classical)
- Support for multiple problem formats including QUBO, MPS, LP, and more
- Solver-agnostic interface that allows easy switching between providers
- Job management with status tracking and result retrieval
Installation
pip install strangeworks-optimization
Quick Start
import strangeworks as sw
from dimod import BinaryQuadraticModel
from strangeworks_optimization import StrangeworksOptimizer
# Authenticate with your API key
sw.authenticate("your-api-key")
# Create a QUBO model
linear = {1: -2, 2: -2, 3: -3, 4: -3, 5: -2}
quadratic = {(1, 2): 2, (1, 3): 2, (2, 4): 2, (3, 4): 2, (3, 5): 2, (4, 5): 2}
model = BinaryQuadraticModel(linear, quadratic, "BINARY")
# Create and run the optimizer with Quantagonia
optimizer = StrangeworksOptimizer(model=model, solver="quantagonia.qubo")
job = optimizer.run()
# Get results
results = optimizer.results(job.slug)
print(results.solution)
Documentation
Comprehensive documentation is available at docs.strangeworks.com/optimization.
The documentation includes:
- Getting started guides
- API reference
- Supported solvers and providers
- Problem format specifications
- Examples and tutorials
Supported Solvers
The SDK supports a wide range of optimization solvers including:
- Classical solvers: Gurobi, Quantagonia
- Quantum annealers: D-Wave Leap, D-Wave Sampler
- Quantum-inspired: Hitachi, NEC, Toshiba
- Hybrid solvers: D-Wave Hybrid, Strangeworks Hybrid
For a complete list and solver-specific configuration options, see the documentation.
Requirements
- Python 3.11 or higher
- A Strangeworks account and API key (Get started)
License
This project is licensed under the Apache License 2.0.
Support
For support, questions, or feature requests, please visit:
Metadata
Release files for strangeworks-optimization 0.2.44
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_optimization-0.2.44.tar.gz | 9.2 kB | Without provenance | Details for strangeworks_optimization-0.2.44.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| strangeworks_optimization-0.2.44-py3-none-any.whl | Python 3 | none | any | Details for strangeworks_optimization-0.2.44-py3-none-any.whl |
Total release size: 18.9 kB
Release files / strangeworks_optimization-0.2.44.tar.gz
| Download URL | strangeworks_optimization-0.2.44.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
297950af22692ab86a8173bddea37a8d92cf4cab35f9f082571db1e61ecb6852
|
|
BLAKE2b-256 checksum How to use checksums |
53f2656c1109ca88adb983dcacd98fcd3a7aba1a105d746f2346a7b696f17c32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / strangeworks_optimization-0.2.44-py3-none-any.whl
| Download URL | strangeworks_optimization-0.2.44-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84683ac053f615cd3f680fa1a3820dded55a798e96e8606ab9358be596875b7f
|
|
BLAKE2b-256 checksum How to use checksums |
b6e89ec13c7e4ca415801582faa885635794ea0c7e6b6ce355fb43f4ebdcbe3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for strangeworks-optimization 0.2.44
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.