Skip to main content

PennyLane-Lightning plugin

Project description

GitHub Workflow Status (branch) Codecov coverage CodeFactor Grade Read the Docs PyPI PyPI - Python Version

The PennyLane-Lightning plugin provides a fast state-vector simulator written in C++.

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

Features

  • Combine PennyLane-Lightning’s high performance simulator with PennyLane’s automatic differentiation and optimization.

Installation

PennyLane-Lightning requires Python version 3.6 and above. It can be installed using pip:

$ pip install pennylane-lightning

Alternatively, to build PennyLane-Lightning from source you can run

$ git clone https://github.com/XanaduAI/pennylane-lightning.git
$ cd pennylane-lightning
$ pip install -e .

Note that subsequent calls to pip install -e . will use cached binaries stored in the build folder. Run make clean if you would like to recompile.

The following dependencies are required to install PennyLane-Lightning:

  • A C++ compiler, such as g++, clang, or MSVC.

  • pybind11 a library for binding C++ functionality to Python.

On Debian-based systems, these can be installed via apt and pip:

$ sudo apt install g++
$ pip install pybind11

Testing

To test that the plugin is working correctly you can test the Python code within the cloned repository:

$ make test

while the C++ code can be tested with

$ make test-cpp

Testing the C++ code requires the GoogleTest framework.

Please refer to the plugin documentation as well as to the PennyLane documentation for further reference.

Contributing

We welcome contributions - simply fork the repository of this plugin, and then make a pull request containing your contribution. All contributers to this plugin will be listed as authors on the releases.

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

Authors

PennyLane-Lightning is the work of many contributors.

If you are doing research using PennyLane and PennyLane-Lightning, please cite our paper:

Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, M. Sohaib Alam, Shahnawaz Ahmed, Juan Miguel Arrazola, Carsten Blank, Alain Delgado, Soran Jahangiri, Keri McKiernan, Johannes Jakob Meyer, Zeyue Niu, Antal Száva, and Nathan Killoran. PennyLane: Automatic differentiation of hybrid quantum-classical computations. 2018. arXiv:1811.04968

Support

If you are having issues, please let us know by posting the issue on our Github issue tracker, or by asking a question in the forum.

License

The PennyLane lightning plugin is free and open source, released under the Apache License, Version 2.0.

Project details


Download files

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

Source Distribution

PennyLane-Lightning-0.15.1.tar.gz (14.8 kB view hashes)

Uploaded Source

Built Distributions

PennyLane_Lightning-0.15.1-cp38-cp38-win_amd64.whl (98.9 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

PennyLane_Lightning-0.15.1-cp38-cp38-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

PennyLane_Lightning-0.15.1-cp38-cp38-macosx_10_9_x86_64.whl (348.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

PennyLane_Lightning-0.15.1-cp37-cp37m-win_amd64.whl (99.1 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

PennyLane_Lightning-0.15.1-cp37-cp37m-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

PennyLane_Lightning-0.15.1-cp37-cp37m-macosx_10_9_x86_64.whl (347.8 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

PennyLane_Lightning-0.15.1-cp36-cp36m-win_amd64.whl (99.1 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

PennyLane_Lightning-0.15.1-cp36-cp36m-manylinux2010_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

PennyLane_Lightning-0.15.1-cp36-cp36m-macosx_10_9_x86_64.whl (347.8 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page