You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def small_circ():
op = qml.T(0)
op = qml.adjoint(op)
op = qml.ctrl(op, control=1, control_values=[1])
return qml.state()
using null.qubit as the device executes a matrix operation instead of the named gate. Removing either the adjoint or the controlled makes the gate named again (and applies a T gate with either inverse=True or control_wires having data), but the presence of both makes it a matrix op and not a named op.
The text was updated successfully, but these errors were encountered:
dime10
changed the title
[BUG] Using both qml.ctrl and qml.adjoint causes named operations to execute as matrix operations
Using both qml.ctrl and qml.adjoint causes named operations to execute as matrix operations
Apr 21, 2025
Running the following circuit:
using
null.qubit
as the device executes a matrix operation instead of the named gate. Removing either the adjoint or the controlled makes the gate named again (and applies a T gate with either inverse=True or control_wires having data), but the presence of both makes it a matrix op and not a named op.The text was updated successfully, but these errors were encountered: