You're reading the documentation of the v0.9. For the latest released version, please have a look at v0.11.

Providers

Scaleway

Scaleway is a French cloud provider that provides, among a range of offers, binary power to emulate quantum computing compatible with Perceval.

This Scaleway Quantum as a Service (QaaS) leverages from GPUs like Nvidia P100 and H100 to increase mode limit and accelerate simulations.

You can find prices and additional information on the Scaleway Labs QaaS page.

Scaleway authentication

To use Scaleway QaaS as a provider you need a Scaleway account, a Scaleway Project ID and an API key.

  1. Create a Scaleway account

  2. Create a Scaleway Project

  3. Create a Scaleway API key

Using a Scaleway session

Let’s see step by step how to instantiate and use a Scaleway Session.

Import the library and Scaleway from the providers library:

>>> import perceval as pcvl
>>> import perceval.providers.scaleway as scw

Provide your Scaleway Project ID and API key:

>>> PROJECT_ID = "your-scaleway-project-id"
>>> TOKEN = "your-scaleway-api-key"

Choose one of the Perceval compatible platforms provided by Scaleway:

>>> PLATFORM_NAME = "sim:sampling:h100"

You can now create a Scaleway session:

>>> session = scw.Session(platform=PLATFORM_NAME, project_id=PROJECT_ID, token=TOKEN)
>>> session.start()
>>> /*
...  * Session scope
...  */
>>> session.stop()

You can also create a Scaleway session using a with block:

>>> with scw.Session(platform=PLATFORM_NAME, project_id=PROJECT_ID, token=TOKEN) as session:
...     /*
...      * Session scope
...      */

Note: using a with block you do not need to start and stop your session: it starts automatically at the beginning of the block and stops automatically at its end.

Note: while using a Jupyter Notebook for convenience python objects are kept alive and we recommand using directly start and stop methods.

From a session, you can instantiate a RemoteProcessor linked to the session:

>>> processor = session.build_remote_processor()

Congratulation you can now design and send jobs to Scaleway QaaS through your processor. You can continue with the documentation through Work with algorithms.