qml.boolean_fn.Xor¶
- class Xor(left, right)[source]¶
Bases:
pennylane.boolean_fn.BooleanFn
Developer facing class for implemeting bitwise
XOR
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.Xor
Download Python script
Download Notebook
View on GitHub