Release 0.42.0
New features since last release
-
Added distributed simulation using MPI to the
lightning.kokkosdevice,
enabling larger quantum circuits by distributing workloads across multiple CPUs or GPUs. (#1114) -
Mid-circuit measurements using the tree-traversal algorithm are now supported
in thelightning.qubit,lightning.kokkosandlightning.gpudevices,
providing both significant memory savings and sampling efficiency! (#1166)
Improvements 🛠
-
Lightning devices can now accept a
seedargument to enable deterministic shots measurements. (#1171) -
PennyLane-Lightning is compatible with JAX version 0.5.3+. (#1152) (#1161)
-
Refactored
MPIManagerclass fromlightning.gputo base class. (#1162)
Breaking changes 💔
-
The
LightningBaseStateVector,LightningBaseAdjointJacobian,LightningBaseMeasurements,
LightningInterpreterandQuantumScriptSerializerbase classes now can be found atpennylane_lightning.lightning_base.
The newlightning_basemodule further enables the relocation of core files
frompennylane_lightning/core/src/*topennylane_lightning/core/*.
The license classifier andproject.licenseas a TOML table are deprecated in favor of a SPDX license
expression and removed inpyproject.toml.
To speedup the recompilation of C++ source code,ccacheis also added toMakefile. (#1098) -
Updated
pyprojectto adhere to PyPA binary distribution format for built wheels. (#1193)
Deprecations 👋
- Added and subsequently removed native support for
MultiControlledXgates inlightning.tensor. (#1169) (#1183)
Documentation 📝
-
Converted the
READMEto markdown (as in thepennylaneandcatalystrepositories), and added a header image. (#1139) (#1141) (#1142) -
Edited and prepared
CHANGELOG.mdfor the releasev0.42.0. (#1199) (#1204) -
Fixed typo in
lightning.gpudocumentation adjoint-jacobian section. (#1179)
Bug fixes 🐛
-
Fixed the implementation of multi-controlled gates with a single target wire for arbitrary control values in
lightning.tensor. (#1169) -
Updated requirements to only download JAX version 0.5.3 for non-X86 MacOS. (#1163)
-
Fixed Docker build for
lighting.kokkoswith ROCM library for AMD GPUs. Updated ROCM from 5.7 to 6.2.4. (#1158) -
Fixed use of Torch with
AmplitudeEmbeddingby applyingqml.broadcast_expandbefore decomposition in the preprocessing stage. (#1175)
Internal changes ⚙️
-
Updated tests with
device(..., shots=...)to useqml.set_shotsto ensure compatibility with the latest version of PennyLane. (#1173) -
Fixed
applyMultiRZforlightning.kokkosdevice to use Kokkos function instead of lambda. (#1194) -
Enabled
AmplitudeEmbeddingPython tests forlightning.kokkosandlightning.gpudevices. (#1192) -
Updated docker build CI for stable version to use v0.41.1. (#1188)
-
Removed flaky tests and added random seeding to measurement tests. (#1172) (#1196)
-
Improved CI to use local catalyst repository instead of fetching on Github CI. (#1164)
-
Updated the Lightning build dependencies. (#1168)
-
Updated dev requirements to use JAX version 0.6.0 for CI tests. (#1161)
-
Updated stable requirements to use JAX version 0.4.28 for CI tests. (#1160)
-
Bumped
readthedocsGithub action runner to use Ubuntu-24.04. (#1151) -
Updated the
clang-formatandclang-tidyversions to v20 for compatibility with Catalyst. (#1153) -
Removed
max_workersargument fordefault.qubitdevice in Python tests to reduce CI testing time. (##1174) -
Bumped Github action runner to use
Ubuntu-24.04orUbuntu-latest.
Fixed allubuntu-latestaction runners toubuntu-24.04. (#1167) -
Merged the
v0.41.0-rcbranch to themasterand bumped the version. (#1132)
Contributors ✍️
This release contains contributions from (in alphabetical order):
Runor Agbaire,
Ali Asadi,
Amintor Dusko,
Yushao Chen,
Christina Lee,
Joseph Lee,
Mehrdad Malekmohammadi,
Anton Naim Ibrahim,
Luis Alfredo Nuñez Meneses,
Mudit Pandey,
Shuli Shu,
Marc Vandelle,
Jake Zaia