Install PennyLane
PennyLane supports Python 3.8 or newer.
If you currently do not have Python 3 installed, we recommend Anaconda for Python 3, a distributed version of Python packaged for scientific computation.
# install the latest released version of PennyLane
pip install pennylane --upgrade
Install quantum devices
PennyLane comes with high performance built-in simulators, such as default.qubit
, default.mixed
, and lightning.qubit
. In addition, it supports additional quantum simulators and quantum hardware via an array of plugins. For more details, visit the plugins page.
# Select one or more devices above to install them to work with PennyLane.
Install machine learning interfaces
PennyLane seamlessly integrates with various machine learning libraries, making them "quantum aware", and allowing you to create arbitrary hybrid classical-quantum computations.
# Select one or more ML libraries above to install them to work with PennyLane.