.. image:: https://www-uploads.scaleway.com/About_Generic_Hero_c4dc10a073.webp
:target: https://github.com/quantumlib/cirq/
:alt: cirq-scaleway
:width: 500px
`Cirq <https://quantumai.google/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 <https://labs.scaleway.com/en/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 <https://console.scaleway.com/organization>`__
- You have create an `API key with enough permission <https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/>`__ 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="qsim_simulation_c64m512")
>>> # 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 <https://slack.scaleway.com/>`__, we are waiting for you on #opensource.
Raw data
{
"_id": null,
"home_page": null,
"name": "cirq-scaleway",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12.0",
"maintainer_email": null,
"keywords": null,
"author": "The Scaleway Developers",
"author_email": "vmacheret@scaleway.com",
"download_url": "https://files.pythonhosted.org/packages/18/30/6fe1543c98002db9e8eacc6c8de7c45ed3bc77abcfa1e2712b75d645865a/cirq_scaleway-0.1.6.tar.gz",
"platform": null,
"description": ".. image:: https://www-uploads.scaleway.com/About_Generic_Hero_c4dc10a073.webp\n :target: https://github.com/quantumlib/cirq/\n :alt: cirq-scaleway\n :width: 500px\n\n`Cirq <https://quantumai.google/cirq>`__ is a Python library for writing, manipulating, and optimizing quantum\ncircuits and running them against quantum computers and simulators.\n\nThis module is **cirq-scaleway**, which provides everything you'll need to run Cirq quantum algorithms on Scaleway Quantum as a Service (QaaS).\n\n`Official QaaS web page <https://labs.scaleway.com/en/qaas/>`__\n\nDocumentation\n-------------\n\nTo get started with Scaleway Quantum as a Service (QaaS), checkout the following guide and tutorial:\n\n- You must be have an account and be logged into the `Scaleway console <https://console.scaleway.com/organization>`__\n- You have create an `API key with enough permission <https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/>`__ to use QaaS\n\nInstallation\n------------\n\nTo install the stable version of only **cirq-scaleway**:\n\n>>> pip install cirq-scaleway\n\nNote, that this will install both **cirq-scaleway** and **cirq-core**.\n\nTo 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.\n\nGetting started\n---------------\n\nIn the most simple way, here the code to use **cirq-scaleway**:\n\n>>> import cirq\n>>> from cirq_scaleway import ScalewayQuantumService\n\n>>> service = ScalewayQuantumService(\n project_id=\"<your-scaleway-project-id>\", secret_key=\"<your-scaleway-secret-key>\"\n)\n\n>>> # Get and display all provided (real or simulated) devices compatible with Cirq\n>>> devices = service.devices(min_num_qubits=34)\n>>> print(devices)\n\n>>> # Get a specific device by its name\n>>> qsim_simulator = service.device(name=\"qsim_simulation_c64m512\")\n\n>>> # Create a device session and run a circuit against it\n>>> with qsim_simulator.create_session() as session:\n>>> qubit = cirq.GridQubit(0, 0)\n>>> circuit = cirq.Circuit(cirq.X(qubit) ** 0.5, cirq.measure(qubit, key='m'))\n\n>>> # Run the circuit on the device\n>>> result = session.run(circuit)\n>>> print(result)\n\nReach us\n--------\n\nWe love feedback. Feel free to reach us on `Scaleway Slack community <https://slack.scaleway.com/>`__, we are waiting for you on #opensource.\n",
"bugtrack_url": null,
"license": "Apache 2",
"summary": "A Cirq package to connect to Scaleway Quantum as a Service",
"version": "0.1.6",
"project_urls": {
"Documentation": "https://www.scaleway.com/en/quantum-as-a-service/",
"Source": "https://github.com/scaleway/cirq-scaleway",
"Tracker": "https://github.com/scaleway/cirq-scaleway/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "dcc9604ebc010456631eb03680705142cb0d53ce5c4529bfe9da0d806965a159",
"md5": "434907aae8ac6b5612944d660d373bf7",
"sha256": "d7a2b47c3952cf1f16c560f61e18148fbf32d6a063ccba9d50bfcabc0f1f901c"
},
"downloads": -1,
"filename": "cirq_scaleway-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "434907aae8ac6b5612944d660d373bf7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12.0",
"size": 13830,
"upload_time": "2025-07-30T09:30:26",
"upload_time_iso_8601": "2025-07-30T09:30:26.274010Z",
"url": "https://files.pythonhosted.org/packages/dc/c9/604ebc010456631eb03680705142cb0d53ce5c4529bfe9da0d806965a159/cirq_scaleway-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "18306fe1543c98002db9e8eacc6c8de7c45ed3bc77abcfa1e2712b75d645865a",
"md5": "7da223bfb76daf815ce7df78e5137266",
"sha256": "3006b2406f6f93e45856883c36e061b2f6e3002c01439555365d2a0a9374cbaa"
},
"downloads": -1,
"filename": "cirq_scaleway-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "7da223bfb76daf815ce7df78e5137266",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12.0",
"size": 11979,
"upload_time": "2025-07-30T09:30:27",
"upload_time_iso_8601": "2025-07-30T09:30:27.668313Z",
"url": "https://files.pythonhosted.org/packages/18/30/6fe1543c98002db9e8eacc6c8de7c45ed3bc77abcfa1e2712b75d645865a/cirq_scaleway-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 09:30:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "scaleway",
"github_project": "cirq-scaleway",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "pandas",
"specs": [
[
"==",
"2.3.1"
]
]
},
{
"name": "cirq-core",
"specs": [
[
">=",
"1.3.0"
]
]
},
{
"name": "scaleway-qaas-client",
"specs": [
[
">=",
"0.1.12"
]
]
}
],
"lcname": "cirq-scaleway"
}