Skip to main content

Scaleway provider for Qiskit

Qiskit Scaleway is a Python package to run quantum circuits on Scaleway infrastructure, providing access to:

  • AQT ion-trapped quantum computers and emulators
  • IQM superconducting quantum computers and emulators
  • Quobly electron spin based quantum processors and emulators
  • Aer state vector and tensor network multi-GPU emulators
  • Qsim NISQ emulators
  • CUDA-Q emulators by NVIDIA
  • QPerfect emulators by QPerfect

To run circuits over Quandela QPUs provided by Scaleway, you must use Perceval SDK through the Scaleway provider.

To run sequence over Pasqal QPUs provided by Scaleway, you must use Pulser SDK through the Scaleway provider.

More info on the Quantum service web page.

Installation

We encourage installing Scaleway provider via the pip tool (a Python package manager):

pip install qiskit-scaleway

Getting started

To instantiate the ScalewayProvider, you need to have an access token and a project_id

from qiskit import QuantumCircuit
from qiskit_scaleway import ScalewayProvider

provider = ScalewayProvider(
    project_id="<your-scaleway-project-id>",
    secret_key="<your-scaleway-secret-key>",
)

Alternatively, the Scaleway Provider can discover your access token from environment variables:

export QISKIT_SCALEWAY_PROJECT_ID="project_id"
export QISKIT_SCALEWAY_SECRET_KEY="token"

Then you can instantiate the provider without any arguments:

from qiskit import QuantumCircuit
from qiskit_scaleway import ScalewayProvider

provider = ScalewayProvider()

Now you can have access to the supported backends:

# List all operational backends
backends = provider.backends(operational=True)
print(backends)

# List all backends with a minimum number of qbits
backends = provider.backends(min_num_qubits=35)
print(backends)

# Retrieve a backend by providing search criteria. The search must have a single match
backend = provider.get_backend("EMU-CUDAQ-4H100SXM") # Or any gate-based compatible QPU

Define a quantum circuit and run it

# Define a quantum circuit that produces a 4-qubit GHZ state.
qc = QuantumCircuit(4)
qc.h(0)
qc.cx(0, 1)
qc.cx(0, 2)
qc.cx(0, 3)
qc.measure_all()

## DO NOT USE TRANSPILATION
## Transpilation is done server side on QaaS service

# Create and send a job to a new QPU's session (or on an existing one)
# Custom noise models are also supported
result = backend.run(qc, method="statevector", shots=1000).result()

if result.success:
    print(result.get_counts())
else:
    print(result.to_dict()["error"])

Development

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.

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

Metadata

Release files for qiskit-scaleway 0.3.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qiskit-scaleway 0.3.13
File Size Uploaded
qiskit_scaleway-0.3.13.tar.gz 22.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qiskit-scaleway 0.3.13
File Interpreter ABI Platform
qiskit_scaleway-0.3.13-py3-none-any.whl Python 3 none any Details

Total release size: 62.6 kB

Release files / qiskit_scaleway-0.3.13.tar.gz

Download URL qiskit_scaleway-0.3.13.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b98e14fc370fd0b44dff900a9d9c917e619ee9adb273fe471432f390e5a99155
BLAKE2b-256 checksum
How to use checksums
622707c20178e054a7ff00ea16536dfd276abdd4af72867a0a411cf83c5288f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / qiskit_scaleway-0.3.13-py3-none-any.whl

Download URL qiskit_scaleway-0.3.13-py3-none-any.whl
Size 40.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5b4cbe43d0a4957056e25013562c0bca2e8001b7c2f9e7501db1e7b3c1c6460
BLAKE2b-256 checksum
How to use checksums
5003cae064a1f4680023a089b9592b98af2cd2706127dbbb597007fa01b3d53b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.3.13 This release

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.17

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page