qml.noise.conditionals.WiresIn¶
-
class
WiresIn
(wires)[source]¶ Bases:
pennylane.boolean_fn.BooleanFn
A conditional for evaluating if the wires of an operation exist in 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_in()
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.