qml.noise.conditionals.WiresEq¶
- class WiresEq(wires)[source]¶
Bases:
pennylane.boolean_fn.BooleanFn
A conditional for evaluating if a given wire is equal to a specified set of wires.
- Parameters
wires (Union[Iterable[int, str], Wires]) – Sequence of wires for building the wire set.
See also
Users are advised to use
wires_eq()
for a functional construction.Attributes
Determine whether the wrapped callable performs a bitwise operation or not.
Determine whether the wrapped callable is for a conditional or not.
- bitwise¶
Determine whether the wrapped callable performs a bitwise operation or not. This checks for the
operands
attribute that should be defined by it.
- conditional¶
Determine whether the wrapped callable is for a conditional or not. This checks for the
condition
attribute that should be defined by it.