choi_is_unitary

forest.benchmarking.operator_tools.validate_superoperator.choi_is_unitary(choi: numpy.ndarray, limit: float = 1e-09) → bool

Checks if a quantum process, specified by a Choi matrix, is unitary.

Parameters:
  • choi – A dim**2 by dim**2 Choi matrix
  • limit – A tolerance parameter to discard Kraus operators with small norm.
Returns:

Returns True if the quantum channel is unitary with the given tolerance; False otherwise.