qml.ops.qubit.attributes.symmetric_over_control_wires¶
- symmetric_over_control_wires = {'CCZ', 'Toffoli'}¶
Controlled operations that are the same if you exchange the order of all but the last (target) wire.
For example,
qml.Toffoli(wires=[0, 1, 2])
has the same effect asqml.Toffoli(wires=[1, 0, 2])
, but neither are the same asqml.Toffoli(wires=[0, 2, 1])
.- Type
code/api/pennylane.ops.qubit.attributes.symmetric_over_control_wires
Download Python script
Download Notebook
View on GitHub