Skip to content

Commit 5cf6fe4

Browse files
authored
Merge branch 'master' into migrate-unified-compiler
2 parents 5351325 + ebe34d6 commit 5cf6fe4

File tree

70 files changed

+53504
-51680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+53504
-51680
lines changed

.github/durations/core_tests_durations.json

Lines changed: 36276 additions & 36200 deletions
Large diffs are not rendered by default.

.github/durations/jax_tests_durations.json

Lines changed: 15263 additions & 15257 deletions
Large diffs are not rendered by default.

.github/workflows/documentation-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
pip install --upgrade --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pennylane-catalyst pennylane-lightning
5757
pip install -e .
58+
# TODO: use 0.7.0 after updating all the documentation
5859
pip install sybil pytest "jax~=0.6.0" "jaxlib~=0.6.0" torch matplotlib pyzx
5960
6061
- name: Print Dependencies

.github/workflows/interface-dependency-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ on:
1616
description: The version of JAX to use for testing
1717
required: false
1818
type: string
19-
default: '0.6.2'
19+
default: '0.7.0'
2020
catalyst_jax_version:
2121
description: The version of JAX to use for testing along with Catalyst
2222
required: false
2323
type: string
24-
default: '0.6.2'
24+
default: '0.7.0'
2525
torch_version:
2626
description: The version of PyTorch to use for testing
2727
required: false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ timer.dat
2424
tmp/*
2525
benchmark/revisions/
2626
venv
27+
*venv*/
2728
config.toml
2829
.envrc
2930
qml_debug.log
32.6 KB
Loading

doc/development/deprecations.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ deprecations are listed below.
99
Pending deprecations
1010
--------------------
1111

12+
* Maintenance support of NumPy<2.0 is deprecated and will be dropped in v0.45.
13+
PennyLane v0.45 and beyond are not guaranteed to work with NumPy<2.0.
14+
We recommend upgrading your version of NumPy to benefit from enhanced support and features.
15+
16+
- Deprecated in v0.44
17+
- Will be removed in v0.45
18+
1219
* The ``custom_decomps`` keyword argument to ``qml.device`` has been deprecated and will be removed
1320
in 0.45. Instead, with ``qml.decomposition.enable_graph()``, new decomposition rules can be defined as
1421
quantum functions with registered resources. See :mod:`pennylane.decomposition` for more details.

doc/introduction/interfaces/jax.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ JAX interface
1010

1111
.. code-block:: bash
1212
13-
pip install jax~=0.6.0 jaxlib~=0.6.0
13+
pip install jax==0.7.0 jaxlib==0.7.0
1414
1515
You can then import PennyLane and JAX as follows:
1616

doc/introduction/templates.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ Other useful templates which do not belong to the previous categories can be fou
364364
:description: :doc:`QROM <../code/api/pennylane.QROM>`
365365
:figure: _static/templates/qrom/qrom_thumbnail.png
366366

367+
.. gallery-item::
368+
:description: :doc:`QRAM <../code/api/pennylane.BBQRAM>`
369+
:figure: _static/templates/qram/bbqram_thumbnail.png
370+
367371
.. gallery-item::
368372
:description: :doc:`PrepSelPrep <../code/api/pennylane.PrepSelPrep>`
369373
:figure: _static/templates/prepselprep/prepselprep.png

doc/releases/changelog-dev.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
<h3>New features since last release</h3>
44

5+
* Quantum Automatic Differentiation implemented to allow automatic selection of optimal
6+
Hadamard gradient differentiation methods per [the paper](https://arxiv.org/pdf/2408.05406).
7+
[(#8640)](https://github.com/PennyLaneAI/pennylane/pull/8640)
8+
59
* A new decomposition has been added for the Controlled :class:`~.SemiAdder`,
610
which is efficient and skips controlling all gates in its decomposition.
711
[(#8423)](https://github.com/PennyLaneAI/pennylane/pull/8423)
@@ -153,6 +157,24 @@
153157
* The graph-based decomposition system now supports decomposition rules that contains mid-circuit measurements.
154158
[(#8079)](https://github.com/PennyLaneAI/pennylane/pull/8079)
155159

160+
* The `~pennylane.estimator.compact_hamiltonian.CDFHamiltonian`, `~pennylane.estimator.compact_hamiltonian.THCHamiltonian`,
161+
`~pennylane.estimator.compact_hamiltonian.VibrationalHamiltonian`, and `~pennylane.estimator.compact_hamiltonian.VibronicHamiltonian`
162+
classes were modified to take the 1-norm of the Hamiltonian as an optional argument.
163+
[(#8697)](https://github.com/PennyLaneAI/pennylane/pull/8697)
164+
165+
* New decomposition rules that decompose to :class:`~.PauliRot` are added for the following operators.
166+
[(#8700)](https://github.com/PennyLaneAI/pennylane/pull/8700)
167+
[(#8704)](https://github.com/PennyLaneAI/pennylane/pull/8704)
168+
169+
- :class:`~.CRX`, :class:`~.CRY`, :class:`~.CRZ`
170+
- :class:`~.ControlledPhaseShift`
171+
- :class:`~.IsingXX`, :class:`~.IsingYY`, :class:`~.IsingZZ`
172+
- :class:`~.PSWAP`
173+
- :class:`~.RX`, :class:`~.RY`, :class:`~.RZ`
174+
- :class:`~.SingleExcitation`, :class:`~.DoubleExcitation`
175+
- :class:`~.SWAP`, :class:`~.ISWAP`, :class:`~.SISWAP`
176+
- :class:`~.CY`, :class:`~.CZ`, :class:`~.CSWAP`, :class:`~.CNOT`, :class:`~.Toffoli`
177+
156178
<h3>Breaking changes 💔</h3>
157179

158180
* The unified compiler, implemented in the `qml.compiler.python_compiler` submodule, has been removed from PennyLane.
@@ -249,6 +271,12 @@
249271

250272
<h3>Deprecations 👋</h3>
251273

274+
* Maintenance support of NumPy<2.0 is deprecated as of v0.44 and will be completely dropped in v0.45.
275+
Future versions of PennyLane will only work with NumPy>=2.0.
276+
We recommend upgrading your version of NumPy to benefit from enhanced support and features.
277+
[(#8578)](https://github.com/PennyLaneAI/pennylane/pull/8578)
278+
[(#8497)](https://github.com/PennyLaneAI/pennylane/pull/8497)
279+
252280
* The ``custom_decomps`` keyword argument to ``qml.device`` has been deprecated and will be removed
253281
in 0.45. Instead, with ``qml.decomposition.enable_graph()``, new decomposition rules can be defined as
254282
quantum functions with registered resources. See :mod:`pennylane.decomposition` for more details.
@@ -346,9 +374,6 @@
346374
primitive for use in program capture.
347375
[(#8357)](https://github.com/PennyLaneAI/pennylane/pull/8357)
348376

349-
* Fix all NumPy 1.X `DeprecationWarnings` in our source code.
350-
[(#8497)](https://github.com/PennyLaneAI/pennylane/pull/8497)
351-
352377
* Update versions for `pylint`, `isort` and `black` in `format.yml`
353378
[(#8506)](https://github.com/PennyLaneAI/pennylane/pull/8506)
354379

@@ -489,4 +514,5 @@ Shuli Shu,
489514
Jay Soni,
490515
nate stemen,
491516
David Wierichs,
492-
Hongsheng Zheng
517+
Hongsheng Zheng,
518+
Zinan Zhou

0 commit comments

Comments
 (0)