PennyLaneAI/pennylane-cirq
PennyLaneAI/pennylane-cirq has 65 GitHub stars and 21 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 09:54 UTC. Last push 2026-11-12.
What you can do
- Provides access to built-in Cirq backends including cirq.simulator and cirq.mixedsimulator
- Provides access to Pasqal's neutral-atom devices via cirq.pasqal
- Provides access to the simulators qsim and qsimh via the cirq.qsim and cirq.qsimh devices
- Support for all PennyLane core functionality
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
The PennyLane-Cirq plugin integrates Google's Cirq software library with with PennyLane's quantum machine learning capabilities.
Machine LearningREADME.md
OriginalPennyLane-Cirq Plugin ######################
.. image:: https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-cirq/tests.yml?branch=master&logo=github&style=flat-square :alt: GitHub Workflow Status (branch) :target: https://github.com/PennyLaneAI/pennylane-cirq/actions?query=workflow%3ATests
.. image:: https://img.shields.io/codecov/c/github/PennyLaneAI/pennylane-cirq/master.svg?logo=codecov&style=flat-square :alt: Codecov coverage :target: https://codecov.io/gh/PennyLaneAI/pennylane-cirq
.. image:: https://img.shields.io/codefactor/grade/github/PennyLaneAI/pennylane-cirq/master?logo=codefactor&style=flat-square :alt: CodeFactor Grade :target: https://www.codefactor.io/repository/github/pennylaneai/pennylane-cirq
.. image:: https://readthedocs.com/projects/xanaduai-pennylane-cirq/badge/?version=latest&style=flat-square :alt: Read the Docs :target: https://docs.pennylane.ai/projects/cirq
.. image:: https://img.shields.io/pypi/v/PennyLane-cirq.svg?style=flat-square :alt: PyPI :target: https://pypi.org/project/PennyLane-cirq
.. image:: https://img.shields.io/pypi/pyversions/PennyLane-cirq.svg?style=flat-square :alt: PyPI - Python Version :target: https://pypi.org/project/PennyLane-cirq
|
.. header-start-inclusion-marker-do-not-remove
The PennyLane-Cirq plugin integrates the Cirq quantum computing framework with PennyLane's quantum machine learning capabilities.
PennyLane <https://pennylane.readthedocs.io>__ is a cross-platform Python library for quantum machine
learning, automatic differentiation, and optimization of hybrid quantum-classical computations.
Cirq <https://github.com/quantumlib/Cirq>__ is a software library for quantum computing.
.. header-end-inclusion-marker-do-not-remove
The plugin documentation can be found here: <https://docs.pennylane.ai/projects/cirq>__.
Features
Provides access to built-in Cirq backends including
cirq.simulatorandcirq.mixedsimulatorProvides access to Pasqal's neutral-atom devices via
cirq.pasqalProvides access to the simulators qsim and qsimh via the
cirq.qsimandcirq.qsimhdevicesSupport for all PennyLane core functionality
.. installation-start-inclusion-marker-do-not-remove
Installation
This plugin requires Python version 3.11 or above, as well as PennyLane
and Cirq. Installation of this plugin, as well as all dependencies, can be done using pip:
.. code-block:: bash
$ pip install pennylane-cirq
Alternatively, you can install PennyLane-Cirq from the source code <https://github.com/PennyLaneAI/pennylane-cirq>__
by navigating to the top directory and running:
.. code-block:: bash
$ python setup.py install
It is recommended to install development requirements with,
.. code-block:: bash
$ python -m pip install -r requirements-dev.txt
This will install everything needed to run tests and make contributions.
Dependencies
PennyLane-Cirq requires the following libraries be installed:
* `Python <http://python.org/>`__ >= 3.10
as well as the following Python packages:
* `PennyLane <http://pennylane.readthedocs.io/>`__ >= 0.29
* `Cirq <https://cirq.readthedocs.io/>`__ >= 0.10.0
To use the qsim and qsimh devices, the qsim-Cirq interface ``qsimcirq`` is required:
* `qsimcirq <https://github.com/quantumlib/qsim/blob/master/docs/cirq_interface.md>`__
It can be installed using ``pip``:
.. code-block:: bash
$ pip install qsimcirq
If you currently do not have Python 3 installed, we recommend
`Anaconda for Python 3 <https://www.anaconda.com/download/>`__, a distributed version of Python packaged
for scientific computation.
Tests
~~~~~
To test that the PennyLane-Cirq plugin is working correctly you can run
.. code-block:: bash
$ make test
in the source folder.
Documentation
To build the HTML documentation, go to the top-level directory and run:
.. code-block:: bash
$ make docs
The documentation can then be found in the doc/_build/html/ directory.
.. installation-end-inclusion-marker-do-not-remove
Contributing
We welcome contributions - simply fork the repository of this plugin, and then make a
pull request <https://help.github.com/articles/about-pull-requests/>__ containing your contribution.
All contributers to this plugin will be listed as authors on the releases.
We also encourage bug reports, suggestions for new features and enhancements, and even links to cool projects or applications built on PennyLane.
Authors
PennyLane-Cirq is the work of many contributors <https://github.com/PennyLaneAI/pennylane-cirq/graphs/contributors>__.
If you are doing research using PennyLane and PennyLane-Cirq, please cite our paper <https://arxiv.org/abs/1811.04968>__:
Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, M. Sohaib Alam, Shahnawaz Ahmed,
Juan Miguel Arrazola, Carsten Blank, Alain Delgado, Soran Jahangiri, Keri McKiernan, Johannes Jakob Meyer,
Zeyue Niu, Antal Száva, and Nathan Killoran.
*PennyLane: Automatic differentiation of hybrid quantum-classical computations.* 2018. arXiv:1811.04968
.. support-start-inclusion-marker-do-not-remove
Support
- Source Code: https://github.com/PennyLaneAI/pennylane-cirq
- Issue Tracker: https://github.com/PennyLaneAI/pennylane-cirq/issues
- PennyLane Forum: https://discuss.pennylane.ai
If you are having issues, please let us know by posting the issue on our Github issue tracker, or by asking a question in the forum.
.. support-end-inclusion-marker-do-not-remove .. license-start-inclusion-marker-do-not-remove
License
The PennyLane-Cirq plugin is free and open source, released under
the Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>__.
.. license-end-inclusion-marker-do-not-remove