scaleway/qiskit-scaleway
Python
Captured source
source ↗scaleway/qiskit-scaleway
Description: Scaleway provider implementation for Qiskit SDK
Language: Python
License: Apache-2.0
Stars: 9
Forks: 3
Open issues: 0
Created: 2024-02-29T13:48:14Z
Pushed: 2026-06-10T13:44:31Z
Default branch: main
Fork: no
Archived: no
README:
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 emulator
- CUDA-Q GPU-optimized 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="", 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 QPUDefine 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) # Support additional argument such as 'method' for Aer backends # 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](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](LICENSE)