pennylane
pennylane copied to clipboard
`qml.measure` queues operation with name "Identity"
Expected behavior
The name
attribute of the measure operation found in the tape.operations
list should be set correctly (e.g. measure
).
Actual behavior
Instead the name
attribute contains Identity
.
Additional information
No response
Source code
import pennylane as qml
with qml.tape.QuantumTape() as tape:
qml.measure(wires=[0])
tape.operations[0].name
Tracebacks
No response
System information
-
Existing GitHub issues
- [X] I have searched existing GitHub issues to make sure the issue does not already exist.