choi_is_unital

forest.benchmarking.operator_tools.validate_superoperator.choi_is_unital(choi: numpy.ndarray, rtol: float = 1e-05, atol: float = 1e-08) → bool

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

A process is unital iff it maps the identity to itself.

Parameters:
  • choi – A dim**2 by dim**2 Choi matrix
  • rtol – The relative tolerance parameter in np.allclose
  • atol – The absolute tolerance parameter in np.allclose
Returns:

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