choi_is_trace_preserving¶
-
forest.benchmarking.operator_tools.validate_superoperator.
choi_is_trace_preserving
(choi: numpy.ndarray, rtol: float = 1e-05, atol: float = 1e-08) → bool¶ Checks if a quantum process, specified by a Choi matrix, is trace-preserving (TP).
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 trace-preserving with the given tolerance; False otherwise.