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 as qml.Toffoli(wires=[1, 0, 2]), but neither are the same as qml.Toffoli(wires=[0, 2, 1]).

Type

Attribute