PennyLane 0.31.1


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

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

Stars: 1847, Watchers: 1847, Forks: 479, Open Issues: 311

The PennyLaneAI/pennylane repo was created 5 years ago and the last code push was 8 minutes ago.
The project is very popular with an impressive 1847 github stars!

How to Install pennylane

You can install pennylane using pip

pip install pennylane

or add it to a project with poetry

poetry add pennylane

Package Details

Apache License 2.0
GitHub Repo:


  • Scientific/Engineering/Physics
No  pennylane  pypi packages just yet.


A list of common pennylane errors.

Code Examples

Here are some pennylane code examples and snippets.

GitHub Issues

The pennylane package has 311 open issues on GitHub

  • Differentiable mid-circuit Measurements with precompute
  • Updated non_parametric ops adjoint method and added test
  • [BUG] Update validation check in qml.Hermitian to support multiple interfaces
  • [OpRefactor] Final clean-up of operator subclasses
  • [BUG] Multiple qml.probs with varying num of wires errors when using a shot vector
  • [BUG] Creating a ragged array output in QubitDevice errors with default.qubit.jax
  • New draw transform
  • Create interface related custom exceptions (e.g., GradientUnsupportedError)
  • WireCut nodes can be replaced with MeasureNode and PrepareNode
  • Autograd: Support for higher-order differentiation with respect to multiple arguments is broken
  • [BUG] long wire labels and mpl circuit drawer
  • Use a single wires keyword in MultiControlledX #1679
  • [BUG] No module named pennylane.qnodes import error
  • Pr swap based transpiler
  • Add a swap-based router transform

See more issues on GitHub

Related Packages & Articles

onnx 1.14.0

Open Neural Network Exchange (ONNX) is an open ecosystem that empowers AI developers to choose the right tools as their project evolves. ONNX provides an open source format for AI models, both deep learning and traditional ML. It defines an extensible computation graph model, as well as definitions of built-in operators and standard data types. Currently we focus on the capabilities needed for inferencing (scoring).

thinc 8.1.10

A refreshing functional take on deep learning, compatible with your favorite libraries

petastorm 0.12.1

Petastorm is a library enabling the use of Parquet storage from Tensorflow, Pytorch, and other Python-based ML training frameworks.

kornia 0.6.12

Open Source Differentiable Computer Vision Library for PyTorch

horovod 0.28.1

Distributed training framework for TensorFlow, Keras, PyTorch, and Apache MXNet.

datasets 2.14.2

HuggingFace community-driven open-source library of datasets