Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PennyLaneAI/pennylane-cirq
The PennyLane-Cirq plugin integrates Google's Cirq software library with with PennyLane's quantum machine learning capabilities.
https://github.com/PennyLaneAI/pennylane-cirq
cirq differentiable-computing jax machine-learning python pytorch qml quantum quantum-algorithms quantum-chemistry quantum-computing quantum-machine-learning tensorflow
Last synced: 2 months ago
JSON representation
The PennyLane-Cirq plugin integrates Google's Cirq software library with with PennyLane's quantum machine learning capabilities.
- Host: GitHub
- URL: https://github.com/PennyLaneAI/pennylane-cirq
- Owner: PennyLaneAI
- License: apache-2.0
- Created: 2019-07-23T16:19:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-01T22:06:26.000Z (2 months ago)
- Last Synced: 2024-11-01T23:17:39.424Z (2 months ago)
- Topics: cirq, differentiable-computing, jax, machine-learning, python, pytorch, qml, quantum, quantum-algorithms, quantum-chemistry, quantum-computing, quantum-machine-learning, tensorflow
- Language: Python
- Homepage: https://docs.pennylane.ai/projects/cirq
- Size: 2.02 MB
- Stars: 50
- Watchers: 15
- Forks: 18
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-starred - PennyLaneAI/pennylane-cirq - The PennyLane-Cirq plugin integrates Google's Cirq software library with with PennyLane's quantum machine learning capabilities. (Python)
README
PennyLane-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 `__ is a cross-platform Python library for quantum machine
learning, automatic differentiation, and optimization of hybrid quantum-classical computations.`Cirq `__ is a software library for quantum computing.
.. header-end-inclusion-marker-do-not-remove
The plugin documentation can be found here: ``__.
Features
========* 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
.. installation-start-inclusion-marker-do-not-remove
Installation
============This plugin requires Python version 3.10 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 `__
by navigating to the top directory and running:.. code-block:: bash
$ python setup.py install
Dependencies
~~~~~~~~~~~~PennyLane-Cirq requires the following libraries be installed:
* `Python `__ >= 3.10
as well as the following Python packages:
* `PennyLane `__ >= 0.29
* `Cirq `__ >= 0.10.0To use the qsim and qsimh devices, the qsim-Cirq interface ``qsimcirq`` is required:
* `qsimcirq `__
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 `__, 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 `__ 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 `__.
If you are doing research using PennyLane and PennyLane-Cirq, please cite `our paper `__:
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.aiIf 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-removeLicense
=======The PennyLane-Cirq plugin is **free** and **open source**, released under
the `Apache License, Version 2.0 `__... license-end-inclusion-marker-do-not-remove