qiskit/quantum_info/operators/channel/stinespring.py
def is_cptp(self, atol=None, rtol=None):
        """Return True if completely-positive trace-preserving."""
        if atol is None:
            atol = self._atol
        if rtol is None:
            rtol = self._rtol
        if self._data[1] is not None:
            return False
        check = np.dot(np.transpose(np.conj(self._data[0])), self._data[0])
        return is_identity_matrix(check, rtol=self._rtol, atol=self._atol)
def is_cptp(self, atol=None, rtol=None):
        """Return True if completely-positive trace-preserving."""
        if atol is None:
            atol = self._atol
        if rtol is None:
            rtol = self._rtol
        if self._data[1] is not None:
            return False
        check = np.dot(np.transpose(np.conj(self._data[0])), self._data[0])
        return is_identity_matrix(check, rtol=self._rtol, atol=self._atol)
def is_cptp ( self , atol = None , rtol = None ) : if atol is None : atol = self . _atol if rtol is None : rtol = self . _rtol if self . _data [ 1 ] is not None : return False check = np . dot ( np . transpose ( np . conj ( self . _data [ 0 ] ) ) , self . _data [ 0 ] ) return is_identity_matrix ( check , rtol = self . _rtol , atol = self . _atol )
Return True if completely-positive trace-preserving.
Return True if completely - positive trace - preserving .