[BUG] qml.PhaseAdder
adds "None" work_wire
when this is not specified
#6359
Labels
bug 🐛
Something isn't working
Expected behavior
This should return
[1,2]
Actual behavior
The output is
[1,2, None]
Additional information
Same issue with
qml.OutAdder
andqml.OutMultiplier
Source code
No response
Tracebacks
No response
System information
Name: PennyLane Version: 0.39.0.dev20 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/guillermoalonso/Documents/GitHub/pennylane Editable project location: /Users/guillermoalonso/Documents/GitHub/pennylane Requires: appdirs, autograd, autoray, cachetools, networkx, numpy, packaging, pennylane-lightning, requests, rustworkx, scipy, toml, typing_extensions Required-by: PennyLane-Catalyst, PennyLane_Lightning Platform info: macOS-14.6.1-arm64-arm-64bit Python version: 3.9.6 Numpy version: 1.26.4 Scipy version: 1.12.0 Installed devices: - default.clifford (PennyLane-0.39.0.dev20) - default.gaussian (PennyLane-0.39.0.dev20) - default.mixed (PennyLane-0.39.0.dev20) - default.qubit (PennyLane-0.39.0.dev20) - default.qutrit (PennyLane-0.39.0.dev20) - default.qutrit.mixed (PennyLane-0.39.0.dev20) - default.tensor (PennyLane-0.39.0.dev20) - null.qubit (PennyLane-0.39.0.dev20) - reference.qubit (PennyLane-0.39.0.dev20) - sparse.qubit (PennyLane-0.39.0.dev20) - lightning.qubit (PennyLane-Lightning-0.38.0) - nvidia.custatevec (PennyLane-Catalyst-0.8.1) - nvidia.cutensornet (PennyLane-Catalyst-0.8.1) - oqc.cloud (PennyLane-Catalyst-0.8.1) - softwareq.qpp (PennyLane-Catalyst-0.8.1)
Existing GitHub issues
The text was updated successfully, but these errors were encountered: