PennyLane-Lightning plugin
Project description
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.
Support
Source Code: https://github.com/PennyLaneAI/pennylane-lightning
Issue Tracker: https://github.com/PennyLaneAI/pennylane-lightning/issues
PennyLane Forum: https://discuss.pennylane.ai
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for PennyLane-Lightning-0.15.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a42fd06c771ea4bc5290b3aadb2a5c4168f6c864c1b2aa511ed9a4d6d365be6 |
|
MD5 | 5facaa17d7d6bcf16f4f169089521c56 |
|
BLAKE2b-256 | 7a8454c764744c1eeca9efcb1262844ddd2a8985107eb9296f3e04fc1012a5de |
Hashes for PennyLane_Lightning-0.15.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e859ad4bb1cf5f18df5f59e06024d36380cc1a4c0a44d395dffd33c113db51 |
|
MD5 | 54faf0569bd59686247f95466d9e663b |
|
BLAKE2b-256 | 7830cc786642ba0d49f2b788ae8457a34b2a455bb323a5d3779df9580cfaba75 |
Hashes for PennyLane_Lightning-0.15.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c5ea1253d10c411112f16a42672a83dac86e8cd0a77fc29adba95c870deaf1 |
|
MD5 | 455f93f67a244db8453bd7fe94e0607f |
|
BLAKE2b-256 | ccfe4b58ac801be8ddc8824fd7db630b7b00db103e5bb843ba98d29111975041 |
Hashes for PennyLane_Lightning-0.15.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32f76c6782dc834e80e934ec730a62e9361141d30de657592f7a31c8a783050 |
|
MD5 | ddf46ec5b172937b5ad18dfe6eccba49 |
|
BLAKE2b-256 | 7d43e38f83bbf594ccf841eb8fcae7c3606d163e86e7e12a8be31aca50306214 |
Hashes for PennyLane_Lightning-0.15.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4420c2cb422564159a8be515cc8009729c014d447c07878e3eec5f224e58de |
|
MD5 | 6a79daa51e282c69259617e4e23b53fd |
|
BLAKE2b-256 | 2ee6bc169d9fb921f5339a306745fb5fea0b496fefda235270d412eda5dc7a33 |
Hashes for PennyLane_Lightning-0.15.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fb5c217f10a0bd31aef8d3bf2a6003a8ed9fa9a1eaab03800b517d1448377e5 |
|
MD5 | 46086c13929b43986c89df26b9a0099e |
|
BLAKE2b-256 | b8017429e5eb992c551597c954952925ea80bec19190f9bbe2c8419adf5be626 |
Hashes for PennyLane_Lightning-0.15.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ab1425f26caa0b6af42675acd0272c06c5f40cd36ad78c0c29e519b05d6287 |
|
MD5 | 144b24c7f1ff5237753a5ba2e184614a |
|
BLAKE2b-256 | c112c0e9966507ddc11a82e871f5f2d1c2d4d4ea5203b6123f75e182762ff3bb |
Hashes for PennyLane_Lightning-0.15.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08620bf533c0cbd7639307a542b5f6b507d779cdb20b777f554345b7535250f |
|
MD5 | 5b8d64974fb5ddf73ac5ed9e946f77a6 |
|
BLAKE2b-256 | 189ee2c66bf3071793983368bedaa2d96138b19f3a6436f86d38794484842c0a |
Hashes for PennyLane_Lightning-0.15.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c07e08cf99e67ede1e2f9dee6dc320531da81348bf0db754aa96d79db1f1b3c4 |
|
MD5 | b5b80312b536e142efba8473cfc15242 |
|
BLAKE2b-256 | fbf5167cfc0b06c481fc3d2febc8a9b208f605f8b3736e308b9a0d56fee3b00c |
Hashes for PennyLane_Lightning-0.15.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab77e49036a72a07066135e430a329580f64544e9db7f54f4ec3f8211c9f18d |
|
MD5 | e1b5e242b96e09b9340673b2123a2be1 |
|
BLAKE2b-256 | fa071740fb9c86d04a5e33016bc9b5e55a69f656408501fefb0cadb381fbda46 |