[BUG] Differentiating Trotter
with parameter-shift returns all 0s
#6333
Labels
bug 🐛
Something isn't working
Trotter
with parameter-shift returns all 0s
#6333
Expected behavior
Trotter
can be differentiated properly:Actual behavior
When using parameter shift, the above fails:
Additional information
The issue was discovered as part of #6282, and the relevant test in
test_trotter.py
is xfailed, when fixed, remove the xfail from the relevant test.Source code
No response
Tracebacks
No response
System information
Name: PennyLane Version: 0.39.0.dev10 Summary: PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network. Home-page: https://github.com/PennyLaneAI/pennylane Author: Author-email: License: Apache License 2.0 Location: /Users/astral.cai/Workspace/pennylane/venv/lib/python3.10/site-packages Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, packaging, pennylane-lightning, requests, rustworkx, scipy, toml, typing-extensions Required-by: PennyLane-Catalyst, PennyLane_Lightning, PennyLane_Lightning_Kokkos Platform info: macOS-15.0-arm64-arm-64bit Python version: 3.10.14 Numpy version: 1.26.4 Scipy version: 1.12.0 Installed devices: - default.clifford (PennyLane-0.39.0.dev19) - default.gaussian (PennyLane-0.39.0.dev19) - default.mixed (PennyLane-0.39.0.dev19) - default.qubit (PennyLane-0.39.0.dev19) - default.qutrit (PennyLane-0.39.0.dev19) - default.qutrit.mixed (PennyLane-0.39.0.dev19) - default.tensor (PennyLane-0.39.0.dev19) - null.qubit (PennyLane-0.39.0.dev19) - reference.qubit (PennyLane-0.39.0.dev19) - lightning.qubit (PennyLane_Lightning-0.39.0.dev27) - lightning.kokkos (PennyLane_Lightning_Kokkos-0.38.0) - nvidia.custatevec (PennyLane-Catalyst-0.9.0.dev15) - nvidia.cutensornet (PennyLane-Catalyst-0.9.0.dev15) - oqc.cloud (PennyLane-Catalyst-0.9.0.dev15) - softwareq.qpp (PennyLane-Catalyst-0.9.0.dev15)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: