RepoScalewayScalewaypublished Jun 25, 2024seen 5d

scaleway/cirq-scaleway

Python

Open original ↗

Captured source

source ↗
published Jun 25, 2024seen 5dcaptured 9hhttp 200method plain

scaleway/cirq-scaleway

Description: Scaleway provider implementation for Cirq quantum SDK

Language: Python

License: Apache-2.0

Stars: 1

Forks: 1

Open issues: 0

Created: 2024-06-25T13:30:31Z

Pushed: 2026-06-10T14:40:14Z

Default branch: main

Fork: no

Archived: no

README: .. image:: https://www-uploads.scaleway.com/About_Generic_Hero_c4dc10a073.webp :target: https://github.com/quantumlib/cirq/ :alt: cirq-scaleway :width: 500px

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:

  • 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="", 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.