[BUG] ControlledQubitUnitary
as incorrect wires when using with qml.capture.enable()
#6675
Open
1 task done
Labels
bug 🐛
Something isn't working
Expected behavior
I expect the same class signature usage to work for
ControlledQubitUnitary
with program capture enabled and disabled.Actual behavior
Using the calling signature
ControlledQubitUnitary(U_mat, control_wires, target_wires)
works only with program capture disabled (this is the documented signature). ForControlledQubitUnitary
to be usable with program capture, the signature that needs to be used isControlledQubitUnitary(U_mat, all_wires)
.Additional information
No response
Source code
Tracebacks
System information
Name: PennyLane Version: 0.40.0.dev26 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/mudit.pandey/repos/pennylane Requires: appdirs, autograd, autoray, cachetools, diastatic-malt, networkx, numpy, packaging, pennylane-lightning, requests, rustworkx, scipy, toml, typing_extensions Required-by: PennyLane_Lightning Platform info: macOS-14.7.1-arm64-arm-64bit Python version: 3.11.10 Numpy version: 2.0.0 Scipy version: 1.14.1 Installed devices: - default.clifford (PennyLane-0.40.0.dev26) - default.gaussian (PennyLane-0.40.0.dev26) - default.mixed (PennyLane-0.40.0.dev26) - default.qubit (PennyLane-0.40.0.dev26) - default.qutrit (PennyLane-0.40.0.dev26) - default.qutrit.mixed (PennyLane-0.40.0.dev26) - default.tensor (PennyLane-0.40.0.dev26) - null.qubit (PennyLane-0.40.0.dev26) - reference.qubit (PennyLane-0.40.0.dev26) - lightning.qubit (PennyLane_Lightning-0.39.0)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: