choi_is_completely_positive¶
-
forest.benchmarking.operator_tools.validate_superoperator.
choi_is_completely_positive
(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 (CP).
See equation 3.35 of [GRAPTN]
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 completely positive with the given tolerance; False otherwise.