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.
We encourage installing this package via the pip tool (a Python package manager):
pip install scaleway-qaas-client
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)
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.
We love feedback. Feel free to reach us on Scaleway Slack community, we are waiting for you on #opensource..