choi_is_cptp

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

Checks if a quantum process, specified by a Choi matrix, is completely positive and trace-preserving (CPTP).

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 CPTP with the given tolerance; False otherwise.