pygsti.algorithms.xor

pygsti.algorithms.xor(*args)

Implements logical xor function for arbitrary number of inputs.

Parameters:
  • args (bool-likes) – All the boolean (or boolean-like) objects to be checked for xor satisfaction.
  • Returns
  • ---------
  • output (bool) – True if and only if one and only one element of args is True and the rest are False. False otherwise.