def _has_kraus_(self): return not self._is_parameterized_() and protocols.has_kraus(self.sub_gate)
def _has_kraus_(self) -> bool: return protocols.has_kraus(self.sub_operation)
def _has_kraus_(self) -> bool: """Returns True if self has a Kraus representation and self uses <= 10 qubits.""" return all(protocols.has_kraus(op) for op in self.operations) and len(self.qubits) <= 10