kraus_operators_are_valid

forest.benchmarking.operator_tools.validate_superoperator.kraus_operators_are_valid(kraus_ops: Sequence[numpy.ndarray], rtol: float = 1e-05, atol: float = 1e-08) → bool

Checks if a set of Kraus operators are valid.

Parameters:
  • kraus_ops – A list of Kraus operators
  • rtol – The relative tolerance parameter in np.allclose
  • atol – The absolute tolerance parameter in np.allclose
Returns:

True if the Kraus operators are valid with the given tolerance; False otherwise.