No project description provided
Project description
Scaleway provider for Qiskit
Qiskit Scaleway is a Python package to run quantum circuits on Scaleway infrastructure, providing access to Aer and Qsim simulators on powerful hardware (CPU and GPU).
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
Usage
from qiskit import QuantumCircuit
from qiskit_scaleway import ScalewayProvider
provider = ScalewayProvider(
project_id="<your-scaleway-project-id>",
secret_key="<your-scaleway-secret-key>",
)
# Retrieve a backend by providing search criteria. The search must have a single match
backend = provider.get_backend("aer_simulation_h100")
# 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()
# Create and send a job to a new QPU's session (or on an existing one)
result = backend.run(qc, shots=1000).result()
if result.success:
print(result.get_counts())
else:
print(result.to_dict()["error"])
Contribute
TODO
Licence
Project details
Release history Release notifications | RSS feed
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.1.4.tar.gz
(14.0 kB
view hashes)
Built Distribution
Close
Hashes for qiskit_scaleway-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45db8f97e012bb57ad690ccb44757a73ee2a9904b638771f9a6918c9b3ab51ac |
|
MD5 | 8ee3eedac38aefa951e44e39429eac80 |
|
BLAKE2b-256 | a3658bdac8c083f8f4a530333c830fd2a0b67d067c0e0440546a5923ff603e28 |