Skip to main content

PennyLane is a Python quantum machine learning library by Xanadu Inc.

Project description

.. image:: doc/_static/pennylane_big.png
:alt: PennyLane


.. image::
:alt: Travis

.. image::
:alt: Codecov coverage

.. image::
:alt: Codacy grade

.. image::
:alt: Read the Docs

.. image::
:alt: PyPI

.. image::
:alt: PyPI - Python Version

`PennyLane <>`_ is a cross-platform Python library for quantum machine learning,
automatic differentiation, and optimization of hybrid quantum-classical computations.


.. raw:: html

<img src="" width="300px" align="right">

- **Follow the gradient**. Built-in **automatic differentiation** of quantum circuits

- **Best of both worlds**. Support for **hybrid quantum & classical** models

- **Batteries included**. Provides **optimization and machine learning** tools

- **Device independent**. The same quantum circuit model can be **run on different backends**

- **Large plugin ecosystem**. Install plugins to run your computational circuits on more devices, including Strawberry Fields and ProjectQ

Available plugins

* `PennyLane-SF <>`_: Supports integration with `Strawberry Fields <>`__, a full-stack Python library for simulating continuous variable (CV) quantum optical circuits.

* `PennyLane-PQ <>`_: Supports integration with `ProjectQ <>`__, an open-source quantum computation framework that supports the IBM quantum experience.


PennyLane requires Python version 3.5 and above. Installation of PennyLane, as well as all dependencies, can be done using pip:

.. code-block:: bash

$ python -m pip install pennylane

Getting started

For getting started with PennyLane, check out our `qubit rotation <>`_, `Gaussian transformation <>`_, `hybrid computation <>`_, and other machine learning tutorials.

Our `documentation <>`_ is also a great starting point to familiarize yourself with the hybrid classical-quantum machine learning approach, and explore the available optimization tools provided by PennyLane. Play around with the numerous devices and plugins available for running your hybrid optimizations — these include the IBM QX4 quantum chip, provided by the `PennyLane-PQ <>`_ plugin.

Finally, detailed documentation on the PennyLane API is provided, for full details on available quantum operations and expectations, and detailed guides on `how to write your own <>`_ PennyLane-compatible quantum device.

Contributing to PennyLane

We welcome contributions — simply fork the PennyLane repository, and then make a
`pull request <>`_ containing your contribution. All contributers to PennyLane will be listed as authors on the releases. All users who contribute significantly to the code (new plugins, new functionality, etc.) will be listed on the PennyLane arXiv paper.

We also encourage bug reports, suggestions for new features and enhancements, and even links to cool projects or applications built on PennyLane.

See our `contributions page <>`_
for more details.


Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, and Nathan Killoran.

If you are doing research using PennyLane, please cite `our paper <>`_:

[Placeholder for paper link]


- **Source Code:**
- **Issue Tracker:**

If you are having issues, please let us know by posting the issue on our Github issue tracker.


PennyLane is **free** and **open source**, released under the Apache License, Version 2.0.

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
PennyLane-0.1.0-py3-none-any.whl (72.3 kB) Copy SHA256 hash SHA256 Wheel py3
PennyLane-0.1.0.tar.gz (435.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page