Cirq is a Python library for writing, manipulating, and optimizing quantum circuits and running them against quantum computers and simulators.
This module is cirq-scaleway, which provides everything you’ll need to run Cirq quantum algorithms on Scaleway Quantum as a Service (QaaS).
Documentation
To get started with Scaleway Quantum as a Service (QaaS), checkout the following guide and tutorial:
You must be have an account and be logged into the Scaleway console
You have create an API key with enough permission to use QaaS
Installation
To install the stable version of only cirq-scaleway:
>>> pip install cirq-scaleway
Note, that this will install both cirq-scaleway and cirq-core.
To get all the optional modules installed, you’ll have to use pip install cirq or pip install cirq~=1.0.dev for the pre-release version.
Getting started
In the most simple way, here the code to use cirq-scaleway:
>>> import cirq >>> from cirq_scaleway import ScalewayQuantumService
>>> service = ScalewayQuantumService(
project_id="<your-scaleway-project-id>", secret_key="<your-scaleway-secret-key>"
)
>>> # Get and display all provided (real or simulated) devices compatible with Cirq >>> devices = service.devices(min_num_qubits=34) >>> print(devices)
>>> # Get a specific device by its name >>> qsim_simulator = service.device(name="EMU-QSIM-H100")
>>> # Create a device session and run a circuit against it >>> with qsim_simulator.create_session() as session: >>> qubit = cirq.GridQubit(0, 0) >>> circuit = cirq.Circuit(cirq.X(qubit) ** 0.5, cirq.measure(qubit, key='m'))
>>> # Run the circuit on the device >>> result = session.run(circuit) >>> print(result)
Reach us
We love feedback. Feel free to reach us on Scaleway Slack community, we are waiting for you on #opensource.
Metadata
Release files for cirq-scaleway 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cirq_scaleway-0.1.16.tar.gz | 12.6 kB | Without provenance | Details for cirq_scaleway-0.1.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cirq_scaleway-0.1.16-py3-none-any.whl | Python 3 | none | any | Details for cirq_scaleway-0.1.16-py3-none-any.whl |
Total release size: 26.7 kB
Release files / cirq_scaleway-0.1.16.tar.gz
| Download URL | cirq_scaleway-0.1.16.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef7773b1eea13fecc75932436e981107938e7b72b0fc5a29423dc2f6bf1fa06b
|
|
BLAKE2b-256 checksum How to use checksums |
1457e6f2aff8246de87c746d4ec39b5faedb3d1245d57e8c98e48b00b8a58ed0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / cirq_scaleway-0.1.16-py3-none-any.whl
| Download URL | cirq_scaleway-0.1.16-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a47768272326d0cd2bd1c8737b4fdea49c9c9cff65724cc479ae2adc9964ee2d
|
|
BLAKE2b-256 checksum How to use checksums |
766a6136cf6670df6794c7c90c40656190f16fbd674c68a65c8aed429d01eba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for cirq-scaleway 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.