qml.boolean_fn.And¶
- class And(left, right)[source]¶
Bases:
pennylane.boolean_fn.BooleanFn
Developer facing class for implemeting bitwise
AND
for callables wrapped up withBooleanFn
.- Parameters
left (BooleanFn) – Left operand in the bitwise expression.
right (BooleanFn) – Right operand in the bitwise expression.
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.
code/api/pennylane.boolean_fn.And
Download Python script
Download Notebook
View on GitHub