Python client for Scaleway's Quantum as a Service
This Python package is basically a HTTPX client based on Pydantic over the Quantum as a Service API.
This package is intented to be used from quantum circuit SDK such as Qiskit, Cirq, Perceval and so-on.
Installation
We encourage installing this package via the pip tool (a Python package manager):
pip install scaleway-qaas-client
Getting started
To use the client, you need to have an access secret_key and a Scaleway's project_id
from scaleway_qaas_client import QaaSClient
client = QaaSClient(
project_id=os.environ["SCALEWAY_PROJECT_ID"], # Your project ID in UUID format
secret_key=os.environ["SCALEWAY_SECRET_KEY"], # Your personal secret key in UUID format
)
platforms = client.list_platforms(name="aer_simulation_pop_c16m128")
target_platform = platforms[0]
session = client.create_session(platform_id=target_platform.id, max_duration="2min", max_idle_duration="2min")
while session.status == "starting":
session = client.get_session(session.id)
time.sleep(3)
client.delete_session(session.id)
Development and contribution
This repository is at its early stage and is still in active development. If you are looking for a way to contribute please read CONTRIBUTING.md.
Install dev package
To install necessary packages for contribution development, please install via:
make install
Code generation
We use open API format (in openapi/ folder) and generate client version manually.
Here how to generate the v1alpha1 version:
make v1alpha1
Reach us
We love feedback. Feel free to reach us on Scaleway Slack community, we are waiting for you on #opensource..
License
Metadata
Release files for scaleway-qaas-client 0.1.24
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 |
|---|---|---|---|---|
| scaleway_qaas_client-0.1.24.tar.gz | 49.7 kB | Without provenance | Details for scaleway_qaas_client-0.1.24.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scaleway_qaas_client-0.1.24-py3-none-any.whl | Python 3 | none | any | Details for scaleway_qaas_client-0.1.24-py3-none-any.whl |
Total release size: 179.0 kB
Release files / scaleway_qaas_client-0.1.24.tar.gz
| Download URL | scaleway_qaas_client-0.1.24.tar.gz |
|---|---|
| Size | 49.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4685a5979ec04d10adba0868db76b25dcdff67abefb30103419ac412b69490cc
|
|
BLAKE2b-256 checksum How to use checksums |
1126fd679948ace34ccf90de43eeeb7c15f7097476f6248ff516d3626d19d494
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Release files / scaleway_qaas_client-0.1.24-py3-none-any.whl
| Download URL | scaleway_qaas_client-0.1.24-py3-none-any.whl |
|---|---|
| Size | 129.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae72216f7a532f21eb91935c8c7d2243ddfffa2848201e44796fdfa95a797c8f
|
|
BLAKE2b-256 checksum How to use checksums |
732c663e010feebfcb3e66e43e858ac25f1d062dd4a41c1ca4f1f7a3a354af6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Security for scaleway-qaas-client 0.1.24
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.