qml.noise.conditionals.WiresIn¶
- class WiresIn(wires)[source]¶
Bases:
BooleanFnA 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
operandsattribute that should be defined by it.
- conditional¶
Determine whether the wrapped callable is for a conditional or not. This checks for the
conditionattribute that should be defined by it.
code/api/pennylane.noise.conditionals.WiresIn
Download Python script
Download Notebook
View on GitHub