qml.noise.conditionals.OpEq¶
- class OpEq(ops)[source]¶
Bases:
pennylane.boolean_fn.BooleanFn
A conditional for evaluating if a given operation is equal to the specified operation.
- Parameters
ops (Union[str, class, Operation]) – An operation instance, string representation or class to build the operation set.
See also
Users are advised to use
op_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.