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 with BooleanFn.

Parameters
  • left (BooleanFn) – Left operand in the bitwise expression.

  • right (BooleanFn) – Right operand in the bitwise expression.

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.