Skip to main content

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:

Metadata

Release files for pennylane-lightning-tensor 0.45.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pennylane-lightning-tensor 0.45.0
File Size Uploaded
pennylane_lightning_tensor-0.45.0.tar.gz 776.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pennylane-lightning-tensor 0.45.0
File
pennylane_lightning_tensor-0.45.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details
pennylane_lightning_tensor-0.45.0-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details
pennylane_lightning_tensor-0.45.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details
pennylane_lightning_tensor-0.45.0-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details
pennylane_lightning_tensor-0.45.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details
pennylane_lightning_tensor-0.45.0-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details
pennylane_lightning_tensor-0.45.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details
pennylane_lightning_tensor-0.45.0-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details

Total release size: 4.3 MB

Release files / pennylane_lightning_tensor-0.45.0.tar.gz

Download URL pennylane_lightning_tensor-0.45.0.tar.gz
Size 776.0 kB
Tags Source
SHA-256 checksum
How to use checksums
521d800f7ddb95540edbc73348ad4a13396a214eeb6c6e1a94e163a856613c31
BLAKE2b-256 checksum
How to use checksums
e7f824794b16f74cdc1ae85b0fa6a3c7721940286cbd97ab59d91527e8477907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 461.0 kB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a12110c10df678e9580153f2d34d707e6225c33355d96fcd206bd42c9501adc4
BLAKE2b-256 checksum
How to use checksums
a230d571895932a9fc36f528b22177f1ad5d42d1834e203fea5b98d808f48a74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp314-cp314-manylinux_2_28_aarch64.whl
Size 429.1 kB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
4c7dcfe0bede5b31bbd801f31bfd73cde440ba901a4de0cb4dc9a5b68f6193b2
BLAKE2b-256 checksum
How to use checksums
63a1f423d5c19d0ebf3b4149452175a645524d15c1430ce3d5833e2b2e4154f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 460.9 kB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
af7630e3b24614342504104b60e56b5e009d0bd7a79e83da0604774387c1a72f
BLAKE2b-256 checksum
How to use checksums
4878d299d0e924342e865ffbb020df4abb8b0f7917771de7292502253bc50392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp313-cp313-manylinux_2_28_aarch64.whl
Size 430.8 kB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
bf0467608e9955eef0142786996056d5aced534d3cfc772bc3145db9f6a5eabc
BLAKE2b-256 checksum
How to use checksums
370ecf764e3db1002c9362f12cc06cae769853eb8d9192bea28c79cbe6369d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 461.0 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e246d256da91077154cd67468f7299757ae7a7b3e7c9eeae0d8a6af7bb6ab7e0
BLAKE2b-256 checksum
How to use checksums
47a2de61b3411d62b8aa97c415d127be05cdf0fa274d4ebe15709d4aeaa16ee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp312-cp312-manylinux_2_28_aarch64.whl
Size 430.8 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
ab4eec77fc0c0dab6c242bccd1e9008805602e211e79a7a5b5c8f15a206fb6a0
BLAKE2b-256 checksum
How to use checksums
9d4e1ddfa363eaa8fd06720907f137f1272692eed4605d6a4e6bb8d0df964ce9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 462.2 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
efa795e525f1a54aeff8ab93a47a5dba83af149887d5dd76522bdeacc3381a0e
BLAKE2b-256 checksum
How to use checksums
20c13f1fc639de9d343dfaa60b81b331da0b80f20a0c0b8024c6a670a72c9f38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / pennylane_lightning_tensor-0.45.0-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL pennylane_lightning_tensor-0.45.0-cp311-cp311-manylinux_2_28_aarch64.whl
Size 430.4 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
a2efb53d97efe4e3b0a36fe7ad26128bc6c96bb606143e12b49a3154c6e40014
BLAKE2b-256 checksum
How to use checksums
2b71f444c003c7c1eb14fedc854feedba01bab03c9fb651727fea6482a95df63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.45.0 This release

9 release files

0.44.0

9 release files

0.43.0

7 release files

0.42.0

9 release files

0.41.0

9 release files

0.40.0

7 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page