Skip to main content

PennyLane-Lightning plugin

Project description

The Lightning plugin ecosystem provides fast state-vector and tensor-network simulators written in C++.

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

Backends

PennyLane-Lightning high performance simulators include the following backends:

  • lightning.qubit: a fast state-vector simulator written in C++ with optional OpenMP additions and parallelized gate-level SIMD kernels.
  • lightning.kokkos: a state-vector simulator written with Kokkos. It can exploit the inherent parallelism of modern processing units supporting the OpenMP, CUDA or HIP programming models. It also offers distributed state-vector simulation via MPI.
  • lightning.amdgpu: a state-vector simulator specifically for AMD GPUs. This device is an alias of our lightning.kokkos simulator.
  • lightning.gpu: a state-vector simulator based on the NVIDIA cuQuantum SDK. It notably implements a distributed state-vector simulator based on MPI.
  • lightning.tensor: a tensor-network simulator based on the NVIDIA cuQuantum SDK. The supported methods are Matrix Product State (MPS) and Exact Tensor Network (TN).

If you're not sure which simulator to use, check out our PennyLane Performance page.

Installation

The following table summarizes the supported platforms and the primary installation mode:

Linux x86 Linux ARM MacOS ARM Windows
Lightning-Qubit pip pip pip pip
Lightning-Kokkos (OMP) pip pip pip
Lightning-Kokkos (CUDA) source source
Lightning-Kokkos (HIP) source source
Lightning-Kokkos (MPI) source
Lightning-AMDGPU pip source
Lightning-GPU pip pip
Lightning-GPU (MPI) source
Lightning-Tensor pip pip

For Lightning-AMDGPU, pre-built wheels are available for MI300 series GPU for ROCm 7.0 and greater. For older architecture and ROCm versions, please install from source.

To install the latest stable version of these plugins, check out the PennyLane installation guide.

If you wish to install the latest development version, instructions for building from source are also available for each backend.

Docker support

Docker images for the various backends are found on the PennyLane Docker Hub page, where a detailed description about PennyLane Docker support can be found. Briefly, one can build the Docker Lightning images using:

git clone https://github.com/PennyLaneAI/pennylane-lightning.git
cd pennylane-lightning
docker build -f docker/Dockerfile --target ${TARGET} .

where ${TARGET} is one of the following:

  • wheel-lightning-qubit
  • wheel-lightning-gpu
  • wheel-lightning-kokkos-openmp
  • wheel-lightning-kokkos-cuda
  • wheel-lightning-kokkos-rocm

Contributing

We welcome contributions - simply fork the repository of this plugin, and then make a pull request containing your contribution. All contributors 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.

Black & Pylint

If you contribute to the Python code, please mind the following. The Python code is formatted with the PEP 8 compliant opinionated formatter Black. We set a line width of a 100 characters. The Python code is statically analyzed with Pylint. We set up a pre-commit hook (see Git hooks) to run both of these on git commit. Please make your best effort to comply with black and pylint before using disabling pragmas (e.g. # pylint: disable=missing-function-docstring).

Authors

Lightning is the work of many contributors.

If you are using Lightning for research, please cite:

@misc{
    asadi2024,
    title={{Hybrid quantum programming with PennyLane Lightning on HPC platforms}},
    author={Ali Asadi and Amintor Dusko and Chae-Yeun Park and Vincent Michaud-Rioux and Isidor Schoch and Shuli Shu and Trevor Vincent and Lee James O'Riordan},
    year={2024},
    eprint={2403.02512},
    archivePrefix={arXiv},
    primaryClass={quant-ph},
    url={https://arxiv.org/abs/2403.02512},
}

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 Lightning plugins are free and open source, released under the Apache License, Version 2.0.
The Lightning-GPU and Lightning-Tensor plugins make use of the NVIDIA cuQuantum SDK headers to enable the device bindings to PennyLane, which are held to their own respective license.

Acknowledgements

PennyLane Lightning makes use of the following libraries and tools, which are under their own respective licenses:

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pennylane_lightning-0.46.0.dev15-cp314-cp314-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.14Windows x86-64

pennylane_lightning-0.46.0.dev15-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pennylane_lightning-0.46.0.dev15-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pennylane_lightning-0.46.0.dev15-cp314-cp314-macosx_15_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

pennylane_lightning-0.46.0.dev15-cp313-cp313-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.13Windows x86-64

pennylane_lightning-0.46.0.dev15-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pennylane_lightning-0.46.0.dev15-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pennylane_lightning-0.46.0.dev15-cp313-cp313-macosx_15_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pennylane_lightning-0.46.0.dev15-cp312-cp312-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.12Windows x86-64

pennylane_lightning-0.46.0.dev15-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pennylane_lightning-0.46.0.dev15-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pennylane_lightning-0.46.0.dev15-cp312-cp312-macosx_15_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pennylane_lightning-0.46.0.dev15-cp311-cp311-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.11Windows x86-64

pennylane_lightning-0.46.0.dev15-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

pennylane_lightning-0.46.0.dev15-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

pennylane_lightning-0.46.0.dev15-cp311-cp311-macosx_15_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 153d6d1e23124c51f18904681198fb791b4d0be61447f0484f168a6c02b41b2e
MD5 e7c23b83ab429af9b1605ac1359b414b
BLAKE2b-256 824ac28419d8aea30cb654e2ec20fa6d3cd864e6e8d75a53da0bf877af163888

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c4b9af10f7e598af2765426d2f0af8070e11cc9beb1006208a0823ec03498b5
MD5 85da46962f683e977c96beb89caeb03d
BLAKE2b-256 13417429430c8830f2ae593344113f88b4b88d85f8ca4bcd25eb98392781b301

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 efafd892ec0acdc739d82512286283315b3740451597aaf66ec744c69c81ef05
MD5 db0cc78264117a368957c6c619ddf705
BLAKE2b-256 9a04e7ac17da374341f951a165f3924f3ee639faf87ebe8b6dfc3325ee246f88

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ff941ccf25b78fd0fe54b5295e97b4b5f3ad08a0d4389f3ecb4d7bee11160aec
MD5 df1fa233073e70aabeff671df14ed84b
BLAKE2b-256 1c4a54b5071c9d9a0fa680d88faaa2e6def476643d3eb75604668779ef0026d9

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8f25d2c07b1a155e9ccff490f053111011e6ee5362b06f25bdf42306d690a4f9
MD5 3e4e9093792a9321e71b14702ec08e01
BLAKE2b-256 da1802f557ae5c9689c0d9ca3ae1a2dc84c604bb0c73427dccf2c49cc760c24b

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b11a20adf51e3e72bcb3f0f5e237cc10fcd001803ca32cebf0832ef3132e3c8
MD5 c70b7f1e49448e355c3a9c93e01a20bc
BLAKE2b-256 567b0cf9c9939867e6d35b1df4c71e16a0e8f782d2daf5e59d6cdfbaec1ce624

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7bef1a2a7c10e29fa24d6439b33f74836d6d76331b285f19737fbdca395584e1
MD5 9d9a71c3431501420a1037ba42b32a63
BLAKE2b-256 e88cf5c41833752d838820eb2765aa03b51fb520276c5884085cfc651796dc12

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0e884f740d2569f54815ac4414fa8b732e809985ee40387c584b2a075df06e3e
MD5 aee4c5ad67e9a0f062364542cf57f3d5
BLAKE2b-256 fc9719d16b29b56a611e46f77557cd0e0e90a3ea0d30efe82bafabba955f362f

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 34ab64fe2ef13d3a78df28afacd48776ffd9d1136f256c29b571098fe0fd9d44
MD5 abae4238a52d2a11716d003d57ae4243
BLAKE2b-256 783df1438e03a23a093951109755e561b1c8865c05b41fea0fc0ed06bcbc5223

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3d9b8e6403bd7557e973912b1c429928c1e5c2a65b547e5036d4715aeba3f114
MD5 636700d68c6298d85ebab2c8b94bc782
BLAKE2b-256 82eeeac5a46265fa5c1900318df387c756a01d7dc9a3c9a3f77224304746c772

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7d043175ab44d5be286ee1dad43b37920f47c2b2912a84a21cd964f0c56e329c
MD5 ca61c6788764a22afd30275e5a5963df
BLAKE2b-256 d456dad103d8420ec16725cb6b00c6a77eb1b0eb584aebbd8e6657f5a84d6253

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 310ea39f6b0f0c44e52a6074730f5dd3bb94ca933bc3f072308cdde39809e905
MD5 dfbc1da7b3a31cdf8e21cfaaf32f51c4
BLAKE2b-256 5322b2424a02f7d67a59e6bc52a834152a85e680736b02688585f50750086734

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b1ad76760a8e88276fc1e64b480ce00eb0a8fdddf6fe809f2d5085c49200ac6d
MD5 9789e628a45fb86b93bec9ad43ab668f
BLAKE2b-256 1d98f44319cb8c3cca38f3f6e4f248612532862afb040a2e2e7412f97a81a976

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa1b7396b8f8f0f383eeb262c445e89ebadc253b170fbe80c7889a530fcde31b
MD5 f0c744b4ebe70817eda08a90f0091ec8
BLAKE2b-256 0391c6f8553b070e14b5dd5a13324e005833a872b70a36e86b1f8841c1fbb8d3

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a789b92af48b5876e04bef28e2f50910db1101251c98eba239bbb5b0a62ba5fa
MD5 94078b9a844fbeddf470b9c61c11084f
BLAKE2b-256 54cd1f884f52283c61f5c8d7c7a953ba542bd8e2d3d07e1bf050f20e697ff12c

See more details on using hashes here.

File details

Details for the file pennylane_lightning-0.46.0.dev15-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning-0.46.0.dev15-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0241a4a6eec943d80f1b22f4daf7bc9f3775c780882e4d8ef0c233af673b11c6
MD5 827bdabcefff124c4d7cdcad4552b9c7
BLAKE2b-256 4fc0151bb479158f9c19f9d9a9846a54542c4f10c36b0deb67f656dcc40d4fe1

See more details on using hashes here.

Supported by

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