PennyLane supports Python 3.5 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 the latest development version of PennyLane pip install git+https://github.com/XanaduAI/pennylane.git#egg=pennylane
# download and install the latest source code from GitHub git clone https://github.com/XanaduAI/pennylane.git cd pennylane pip install -e .
Note: if installing from source for development, changes to the plugins module will require
pip install -e . to be re-run to take effect.
PennyLane supports various quantum frameworks and quantum hardware via an array of plugins. For more details, visit the plugins page.
# Select one or more frameworks above to show how to install the PennyLane plugins.
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.