Skip to main content

A Qiskit package to connect to Scaleway Quantum as a Service

Project description

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
  • IQM superconducting quantum computers
  • Aer state vector and tensor network multi-GPU emulators
  • Qsim NISQ emulators
  • CUDA-Q emulators by NVIDIA
  • Quantanium emulators by QPerfect

To run circuits over Quandela backends provided by Scaleway, you must use Perceval 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-AER-H100") # 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

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

qiskit_scaleway-0.3.12.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

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

qiskit_scaleway-0.3.12-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file qiskit_scaleway-0.3.12.tar.gz.

File metadata

  • Download URL: qiskit_scaleway-0.3.12.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for qiskit_scaleway-0.3.12.tar.gz
Algorithm Hash digest
SHA256 c060b5e0257028afcebfc88dca79f4815bf52f2febf0fa1ed922a2e917b08e43
MD5 8f43cdc6b7eddbed2b1e0de161912127
BLAKE2b-256 84aa594922487a235ef2578b376fe51d6bb2201b23e69eac173b0f754ae78ed6

See more details on using hashes here.

File details

Details for the file qiskit_scaleway-0.3.12-py3-none-any.whl.

File metadata

File hashes

Hashes for qiskit_scaleway-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 843784ab0fb48ebf1d6fa7ee137094177a4f948bc55d061c1f1545e47f78cb8c
MD5 24dfba23e54f48e58093c13b3a53f440
BLAKE2b-256 59e90afa6f5934864dca02f617ac7039bdf7551d69bfa952620a1a918279aad3

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