qml.noise.conditionals.OpIn

class OpIn(ops)[source]

Bases: pennylane.boolean_fn.BooleanFn

A conditional for evaluating if a given operation exist in a specified set of operations.

Parameters

ops (Union[str, class, Operation, list[str, class, Operation]]) – Sequence of operation instances, string representations or classes to build the operation set.

See also

Users are advised to use op_in() for a functional construction.

bitwise

Determine whether the wrapped callable performs a bitwise operation or not.

conditional

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.