Skip to main content

PennyLane-Lightning plugin

Project description

Linux x86_64 L-Qubit Python tests (branch) Linux x86_64 L-GPU Python tests (branch) Linux x86_64 L-Kokkos Python tests (branch) Linux x86_64 L-Tensor Python tests (branch) Codecov coverage CodeFactor Grade Read the Docs PennyLane Forum PyPI - Version PyPI - Python Version License

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.10 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.gpu: a state-vector simulator based on the NVIDIA cuQuantum SDK. It notably implements a distributed state-vector simulator based on MPI.

  • 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.

  • 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 what 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 x86

MacOS ARM

Windows

Lightning-Qubit

pip

pip

pip

pip

pip

Lightning-GPU

pip

pip

Lightning-GPU (MPI)

source

Lightning-Kokkos (OMP)

pip

pip

pip

pip

Lightning-Kokkos (CUDA)

source

source

Lightning-Kokkos (HIP)

source

source

Lightning-Tensor

pip

pip

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 (black==25.1.0). 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 Distribution

pennylane_lightning_kokkos-0.41.1.tar.gz (700.9 kB view details)

Uploaded Source

Built Distributions

pennylane_lightning_kokkos-0.41.1-cp313-cp313-manylinux_2_28_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pennylane_lightning_kokkos-0.41.1-cp313-cp313-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

pennylane_lightning_kokkos-0.41.1-cp313-cp313-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

pennylane_lightning_kokkos-0.41.1-cp313-cp313-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

pennylane_lightning_kokkos-0.41.1-cp312-cp312-manylinux_2_28_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pennylane_lightning_kokkos-0.41.1-cp312-cp312-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

pennylane_lightning_kokkos-0.41.1-cp312-cp312-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

pennylane_lightning_kokkos-0.41.1-cp312-cp312-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

pennylane_lightning_kokkos-0.41.1-cp311-cp311-manylinux_2_28_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pennylane_lightning_kokkos-0.41.1-cp311-cp311-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

pennylane_lightning_kokkos-0.41.1-cp311-cp311-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

pennylane_lightning_kokkos-0.41.1-cp311-cp311-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

pennylane_lightning_kokkos-0.41.1-cp310-cp310-manylinux_2_28_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pennylane_lightning_kokkos-0.41.1-cp310-cp310-manylinux_2_28_aarch64.whl (4.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

pennylane_lightning_kokkos-0.41.1-cp310-cp310-macosx_13_0_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

pennylane_lightning_kokkos-0.41.1-cp310-cp310-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file pennylane_lightning_kokkos-0.41.1.tar.gz.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1.tar.gz
Algorithm Hash digest
SHA256 4babe61350c108a0085a2af13281f503aaefd9dddce96ee51d1cb48221859be6
MD5 7f9e4ae76a1b75cde6d1123cd5653618
BLAKE2b-256 1726b941bd16404812d071d1c0699634033ee69c6fa0cd01245b92cf75c96c0a

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dc8b3fbcb607c065a9ddc2dff251f6c20b9179e75fd922d4a893d8871d5b33f2
MD5 1d98323defb4c4f2a1108e2e9c6a2dc7
BLAKE2b-256 749682467ae8bbc0d95fd8be1a65c61f4c6d732763190b378961f9ecd0f4090b

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 43d27170b13a29065144b3dd9f0f133c7506ba920932a05264149a6a6931c683
MD5 5f0f9bdd781da8d7825fc407421487d1
BLAKE2b-256 11110d01a7eaf8f4ddeb71203e777f2e9abf99d179d1794b2c33ffaecf4d216c

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 20a5cfa705ae3c5791be9f3f355d32f8dcd3e9011020a9e838c21f72f56e15c0
MD5 c9e6c85aaa2edfeffda2bcc18669a904
BLAKE2b-256 b44cf9384dfcc309157206b5e456774d5ebbfb40dd13e113bef2a438fda1bbc2

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 45e5f398e564415f4ee924e58cb479088ea3a75bcff463c04464043dcb5d1ded
MD5 fc50043c19ecb7c56ab4cd1d1f2020ba
BLAKE2b-256 2677cb4543e0e091a749ee6de7f1c4fd453b75556abf4196c043ea136f9c5519

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 294294dd10b60f412afaaf103264f3a865cd3d1b6e994a61136853c63ea199b1
MD5 005b1036e5cd8d24784e84a82a0d938d
BLAKE2b-256 493e027e610688cedbdc958a9164d052b1f4a5d529c1156edcc50aa6ab4f94e5

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ab50b49431bcd064f44f76bf807909b2bf04165da2db5063782e282d6083f52d
MD5 5ac31ef1db3f1bb02bbc3b74382aad52
BLAKE2b-256 6a338d5c2fdf054e3b718dee47ce27da2405a9f54c86bebbce20bb17547ee6f9

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1ec9d1e99fff22bdff6c4c57888c694729e389a0fbe4be58fd751ee07a482990
MD5 897c27cc98d6b1740837fb4f049f3095
BLAKE2b-256 3721cb3642eb65ce773e1141a2304dbf92dd481ceb2453dd571f671f71ff3790

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f5501776367b097ac352d899fcfe27e7e5bb63bac40c9976da6f39f9353cb851
MD5 99519fdb28620ed0d953f074a0a4dc0b
BLAKE2b-256 936bdc9840e5b8a0edfb5a6f9d93d68bfe4f16b19fed6a77af1cc5c3184c477f

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 114ed397fe629bab4d630ccb9c2ee5848252295e9433ac257cebb1b75798a2c0
MD5 b0ff45ee2e59bceec346d45bbe2da347
BLAKE2b-256 11a16c83e82a6119763b581d60dfeb2933f0a54be679f190fcd0549431c0bfe5

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 547db351304d59d93ed5dade3b32af705b85dc963746cc2f8ccd2602f4afc3c7
MD5 c4d2a7dda9ff07390480693b6477475b
BLAKE2b-256 49b3c4bf6bf235e9aa7c9da1c92f01fbd1629576ec13e206206b84e7fb229865

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 56cb4081f80de32057106a5fcc67c771ba5113605334512aed515dd0592a9741
MD5 dfb0f8414c24e98a97767bdb094034d6
BLAKE2b-256 976741ca8baed875f615ca9ebf8dfbeeb1c083f2bf8fa1af790b0797c7c20d1d

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a2866b969e83c9a055735a507041e02c71ca93bf7a8e25dcac242c63c24fb7be
MD5 8ba7826fcffa26992ac70c2c6ebfcd0a
BLAKE2b-256 45880fd86778586c685e015312e77bfd8a76b10c8b5fccb5298f76e693a99d3b

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1ddcb2ce4663d30235dadd34f30a89798633a31ee63af9557e4211c9861ca2f6
MD5 dd22b64a95539eacf75fe779f7935463
BLAKE2b-256 04614b330d2e417f03362637224c8f952c25a1d78887c7c055bba1f243b7e37d

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 50b80e31c7b466d53dfb0483cfae68a6b9bbb0a6b20dfa0df2ea4cf97da0b904
MD5 8dd20c87aa4993b0dc6df0e3f75ab6bc
BLAKE2b-256 24f70d6cb91bcefccd98e7423c2561b393179205a38c80ed3fab96e4c0c6a732

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a5be6f90b07ea61117adf96375ad467613d6cc1dc685672bec9c1834dffa53bc
MD5 a8d3c6c827cace7ff7dbfd5b9eea44a5
BLAKE2b-256 a8c5240c7c4af741504b9aeb86fceeed598201996910e21ee928b3e412203559

See more details on using hashes here.

File details

Details for the file pennylane_lightning_kokkos-0.41.1-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_lightning_kokkos-0.41.1-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3b665c09210e645338658c46ac379905ac58c0dc241534b5ddf05606e2179ffd
MD5 b86512b616cc0ecd84893ac61d21bb5d
BLAKE2b-256 1eb023ae4321f02239aeb09a141d6e6d7376c45b3ed28ec5b40e6b4e256c4049

See more details on using hashes here.

Supported by

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