10,565 research outputs found
PennyLane: Automatic differentiation of hybrid quantum-classical computations
PennyLane is a Python 3 software framework for optimization and machine
learning of quantum and hybrid quantum-classical computations. The library
provides a unified architecture for near-term quantum computing devices,
supporting both qubit and continuous-variable paradigms. PennyLane's core
feature is the ability to compute gradients of variational quantum circuits in
a way that is compatible with classical techniques such as backpropagation.
PennyLane thus extends the automatic differentiation algorithms common in
optimization and machine learning to include quantum and hybrid computations. A
plugin system makes the framework compatible with any gate-based quantum
simulator or hardware. We provide plugins for Strawberry Fields, Rigetti
Forest, Qiskit, Cirq, and ProjectQ, allowing PennyLane optimizations to be run
on publicly accessible quantum devices provided by Rigetti and IBM Q. On the
classical front, PennyLane interfaces with accelerated machine learning
libraries such as TensorFlow, PyTorch, and autograd. PennyLane can be used for
the optimization of variational quantum eigensolvers, quantum approximate
optimization, quantum machine learning models, and many other applications.Comment: Code available at https://github.com/XanaduAI/pennylane/ .
Significant contributions to the code (new features, new plugins, etc.) will
be recognized by the opportunity to be a co-author on this pape
- …