Skip to main content

('Python client providing primitives to be used from other quantum SDKs',)

Project description

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

License Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scaleway_qaas_client-0.1.21.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scaleway_qaas_client-0.1.21-py3-none-any.whl (129.0 kB view details)

Uploaded Python 3

File details

Details for the file scaleway_qaas_client-0.1.21.tar.gz.

File metadata

  • Download URL: scaleway_qaas_client-0.1.21.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for scaleway_qaas_client-0.1.21.tar.gz
Algorithm Hash digest
SHA256 75710caf500d2671de3f6b2b3d0b6685516ec71a90067be766f0834fa9032d0c
MD5 3d5e8b7ddc6a3583a8b8feb7cc63eee5
BLAKE2b-256 e80437400ea53d91b649518c38845f32a3c6ba8d88c7655b10adaf57042c5850

See more details on using hashes here.

File details

Details for the file scaleway_qaas_client-0.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for scaleway_qaas_client-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 9c3c2d3b15af3d51f5b4068068379dda56594ba67bfa52bffb526d9fdf0e9d88
MD5 e7a802d1b2f998e2c9dd17ebe3b13d2f
BLAKE2b-256 2eb279ea651e5b289003e99f97443622c322b9fae50a0ce3bab895b3c455f307

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page