pennylane icon indicating copy to clipboard operation
pennylane copied to clipboard

`qml.measure` queues operation with name "Identity"

Open dime10 opened this issue 2 years ago • 0 comments

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.

dime10 avatar Sep 23 '22 00:09 dime10