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