[BUG] qml.exp
with jax.jit
causes TracerBoolConversionError
#6932
Labels
bug 🐛
Something isn't working
qml.exp
with jax.jit
causes TracerBoolConversionError
#6932
Expected behavior
The function should execute without errors, returning an expectation value.
Actual behavior
The error
TracerBoolConversionError: Attempted boolean conversion of traced array
occurs during execution.Additional information
qml.exp
's decomposition process.self.base.is_hermitian
.Source code
Tracebacks
System information
Name: PennyLane Version: 0.40.0 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: /usr/local/lib/python3.11/dist-packages Requires: appdirs, autograd, autoray, cachetools, diastatic-malt, networkx, numpy, packaging, pennylane-lightning, requests, rustworkx, scipy, tomlkit, typing-extensions Required-by: PennyLane-Catalyst, PennyLane_Lightning Platform info: Linux-6.1.85+-x86_64-with-glibc2.35 Python version: 3.11.11 Numpy version: 1.26.4 Scipy version: 1.13.1 Installed devices: - lightning.qubit (PennyLane_Lightning-0.40.0) - nvidia.custatevec (PennyLane-Catalyst-0.10.0) - nvidia.cutensornet (PennyLane-Catalyst-0.10.0) - oqc.cloud (PennyLane-Catalyst-0.10.0) - softwareq.qpp (PennyLane-Catalyst-0.10.0) - default.clifford (PennyLane-0.40.0) - default.gaussian (PennyLane-0.40.0) - default.mixed (PennyLane-0.40.0) - default.qubit (PennyLane-0.40.0) - default.qutrit (PennyLane-0.40.0) - default.qutrit.mixed (PennyLane-0.40.0) - default.tensor (PennyLane-0.40.0) - null.qubit (PennyLane-0.40.0) - reference.qubit (PennyLane-0.40.0)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: