qiskit/quantum_info/operators/channel/quantum_channel.py
def _is_cp_helper(self, choi, atol, rtol):
        """Test if a channel is completely-positive (CP)"""
        if atol is None:
            atol = self._atol
        if rtol is None:
            rtol = self._rtol
        return is_positive_semidefinite_matrix(choi, rtol=rtol, atol=atol)
def _is_cp_helper(self, choi, atol, rtol):
        """Test if a channel is completely-positive (CP)"""
        if atol is None:
            atol = self._atol
        if rtol is None:
            rtol = self._rtol
        return is_positive_semidefinite_matrix(choi, rtol=rtol, atol=atol)
def _is_cp_helper ( self , choi , atol , rtol ) : if atol is None : atol = self . _atol if rtol is None : rtol = self . _rtol return is_positive_semidefinite_matrix ( choi , rtol = rtol , atol = atol )
Test if a channel is completely-positive (CP)
Test if a channel is completely - positive ( CP )