Metadata-Version: 2.1
Name: PennyLane-Rigetti
Version: 0.33.0
Summary: Rigetti backend for the PennyLane library
Home-page: https://github.com/PennyLaneAI/pennylane-rigetti
Maintainer: Xanadu Inc.
Maintainer-email: software@xanadu.ai
License: BSD 3-Clause
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Scientific/Engineering :: Physics
Provides: pennylane_rigetti
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: numpy >=1.21
Requires-Dist: networkx <3.0,>=2.5
Requires-Dist: pennylane >=0.32
Requires-Dist: pyquil <4.0.0,>=3.0.0
Requires-Dist: qcs-api-client <0.22.0,>=0.20.13
Provides-Extra: test
Requires-Dist: flaky >=3.7.0 ; extra == 'test'
Requires-Dist: pytest >=7.2.1 ; extra == 'test'
Requires-Dist: pytest-cov >=4.0.0 ; extra == 'test'
Requires-Dist: pytest-mock >=3.10.0 ; extra == 'test'
Requires-Dist: wheel >=0.38.4 ; extra == 'test'

PennyLane Rigetti Plugin
########################

.. image:: https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-rigetti/tests.yml?branch=master&logo=github&style=flat-square
    :alt: GitHub Workflow Status (branch)
    :target: https://github.com/PennyLaneAI/pennylane-rigetti/actions?query=workflow%3ATests

.. image:: https://img.shields.io/codecov/c/github/PennyLaneAI/pennylane-rigetti/master.svg?logo=codecov&style=flat-square
    :alt: Codecov coverage
    :target: https://codecov.io/gh/PennyLaneAI/pennylane-rigetti

.. image:: https://img.shields.io/codefactor/grade/github/PennyLaneAI/pennylane-rigetti/master?logo=codefactor&style=flat-square
    :alt: CodeFactor Grade
    :target: https://www.codefactor.io/repository/github/pennylaneai/pennylane-rigetti

.. image:: https://readthedocs.com/projects/xanaduai-pennylane-rigetti/badge/?version=latest&style=flat-square
    :alt: Read the Docs
    :target: https://docs.pennylane.ai/projects/rigetti

.. image:: https://img.shields.io/pypi/v/pennylane-rigetti.svg?style=flat-square
    :alt: PyPI
    :target: https://pypi.org/project/pennylane-rigetti

.. image:: https://img.shields.io/pypi/pyversions/pennylane-rigetti.svg?style=flat-square
    :alt: PyPI - Python Version
    :target: https://pypi.org/project/pennylane-rigetti

.. header-start-inclusion-marker-do-not-remove

The PennyLane Rigetti plugin allows different Rigetti devices to work with
PennyLane --- the wavefunction simulator, the Quantum Virtual Machine (QVM), and Quantum Processing Units (QPUs).

`pyQuil <https://pyquil.readthedocs.io>`__ is a Python library for quantum programming using the
quantum instruction language (Quil) --- resulting quantum programs can be executed using the
`Rigetti Forest SDK <https://pyquil-docs.rigetti.com/en/stable/>`__ and `Rigetti Quantum Cloud Services (QCS)
<https://qcs.rigetti.com/>`__.

`PennyLane <https://pennylane.readthedocs.io>`__ is a cross-platform Python library for quantum machine
learning, automatic differentiation, and optimization of hybrid quantum-classical computations.


.. header-end-inclusion-marker-do-not-remove

The plugin documentation can be found here: `<https://docs.pennylane.ai/projects/rigetti>`__.

Features
========

* Provides four devices to be used with PennyLane: ``rigetti.numpy_wavefunction``,
  ``rigetti.wavefunction``, ``rigetti.qvm``, and ``rigetti.qpu``. These provide access to the pyQVM
  Numpy wavefunction simulator, pyQuil wavefunction simulator, quantum
  virtual machine (QVM), and quantum processing units (QPUs) respectively.


* All provided devices support all core qubit PennyLane operations and observables.

.. installation-start-inclusion-marker-do-not-remove

Installation
============

PennyLane-Rigetti, as well as all required Python packages mentioned above, can be installed via ``pip``:
::

   	$ python -m pip install pennylane-rigetti


Make sure you are using the Python 3 version of pip.

Alternatively, you can install PennyLane-Rigetti from the source code by navigating to the top-level directory and running
::

	$ python setup.py install

Dependencies
~~~~~~~~~~~~

PennyLane-Rigetti requires the following libraries be installed:

* `Python <http://python.org/>`__ >=3.9

as well as the following Python packages:

* `PennyLane <http://pennylane.readthedocs.io/>`__ >=0.18.0
* `pyQuil <https://pyquil-docs.rigetti.com/en/stable/>`__ >=3.0.0, <4.0.0

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.

Additionally, if you would like to compile the quantum instruction language (Quil) and run it
locally using a quantum virtual machine (QVM) server, you will need to download and install the
Forest software development kit (SDK):

* `Forest SDK <https://pyquil-docs.rigetti.com/en/stable/>`__

Alternatively, you may sign up for Rigetti's Quantum Cloud Services (QCS)  which will allow you to compile your 
quantum code and run on real QPUs. Note that this requires a valid QCS account and the QCS CLI:

* `QCS <https://docs.rigetti.com/en/>`__
* `QCS CLI <https://docs.rigetti.com/qcs/guides/using-the-qcs-cli>`__

Tests
~~~~~

To test that the PennyLane-Rigetti 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-Rigetti is the work of `many contributors <https://github.com/PennyLaneAI/pennylane-forest/graphs/contributors>`__.

If you are doing research using PennyLane and PennyLane-Rigetti, 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-rigetti
- **Issue Tracker:** https://github.com/PennyLaneAI/pennylane-rigetti/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
=======

PennyLane-Rigetti is **free** and **open source**, released under the BSD 3-Clause `license
<https://github.com/PennyLaneAI/pennylane-rigetti/blob/master/LICENSE>`__.

.. license-end-inclusion-marker-do-not-remove


