Skip to main content
cirq-scaleway

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).

Official QaaS web page

Documentation

To get started with Scaleway Quantum as a Service (QaaS), checkout the following guide and tutorial:

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)

Source distribution for cirq-scaleway 0.1.16
File Size Uploaded
cirq_scaleway-0.1.16.tar.gz 12.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cirq-scaleway 0.1.16
File Interpreter ABI Platform
cirq_scaleway-0.1.16-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.16 This release

2 release files

0.1.15

2 release files

0.1.14

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.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