diff --git a/opensquirrel/squirrel_ir.py b/opensquirrel/squirrel_ir.py index e2031d31..1f25b7fa 100644 --- a/opensquirrel/squirrel_ir.py +++ b/opensquirrel/squirrel_ir.py @@ -151,10 +151,20 @@ def is_anonymous(self) -> bool: return self.arguments is None @abstractmethod - def get_qubit_operands(self) -> List[Qubit]: ... + def get_qubit_operands(self) -> List[Qubit]: + """Get the qubit operands of the Gate. + + Returns: + List of qubits on which the Gate operates. + """ @abstractmethod - def is_identity(self) -> bool: ... + def is_identity(self) -> bool: + """Check wether the Gate is an identity Gate. + + Returns: + Boolean value stating wether the Gate is an identity Gate. + """ @abstractmethod def relabel(self, mapping: Mapping[int, int]) -> None: