Release 0.42.0
New features since last release
-
Added distributed simulation using MPI to the
lightning.kokkos
device,
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.kokkos
andlightning.gpu
devices,
providing both significant memory savings and sampling efficiency! (#1166)
Improvements 🛠
-
Lightning devices can now accept a
seed
argument to enable deterministic shots measurements. (#1171) -
PennyLane-Lightning is compatible with JAX version 0.5.3+. (#1152) (#1161)
-
Refactored
MPIManager
class fromlightning.gpu
to base class. (#1162)
Breaking changes 💔
-
The
LightningBaseStateVector
,LightningBaseAdjointJacobian
,LightningBaseMeasurements
,
LightningInterpreter
andQuantumScriptSerializer
base classes now can be found atpennylane_lightning.lightning_base
.
The newlightning_base
module further enables the relocation of core files
frompennylane_lightning/core/src/*
topennylane_lightning/core/*
.
The license classifier andproject.license
as a TOML table are deprecated in favor of a SPDX license
expression and removed inpyproject.toml
.
To speedup the recompilation of C++ source code,ccache
is also added toMakefile
. (#1098) -
Updated
pyproject
to adhere to PyPA binary distribution format for built wheels. (#1193)
Deprecations 👋
- Added and subsequently removed native support for
MultiControlledX
gates inlightning.tensor
. (#1169) (#1183)
Documentation 📝
-
Converted the
README
to markdown (as in thepennylane
andcatalyst
repositories), and added a header image. (#1139) (#1141) (#1142) -
Edited and prepared
CHANGELOG.md
for the releasev0.42.0
. (#1199) (#1204) -
Fixed typo in
lightning.gpu
documentation 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.kokkos
with ROCM library for AMD GPUs. Updated ROCM from 5.7 to 6.2.4. (#1158) -
Fixed use of Torch with
AmplitudeEmbedding
by applyingqml.broadcast_expand
before decomposition in the preprocessing stage. (#1175)
Internal changes ⚙️
-
Updated tests with
device(..., shots=...)
to useqml.set_shots
to ensure compatibility with the latest version of PennyLane. (#1173) -
Fixed
applyMultiRZ
forlightning.kokkos
device to use Kokkos function instead of lambda. (#1194) -
Enabled
AmplitudeEmbedding
Python tests forlightning.kokkos
andlightning.gpu
devices. (#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
readthedocs
Github action runner to use Ubuntu-24.04. (#1151) -
Updated the
clang-format
andclang-tidy
versions to v20 for compatibility with Catalyst. (#1153) -
Removed
max_workers
argument fordefault.qubit
device in Python tests to reduce CI testing time. (##1174) -
Bumped Github action runner to use
Ubuntu-24.04
orUbuntu-latest
.
Fixed allubuntu-latest
action runners toubuntu-24.04
. (#1167) -
Merged the
v0.41.0-rc
branch to themaster
and 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