diff --git a/src/qibolab/instruments/abstract.py b/src/qibolab/instruments/abstract.py index d6df4d7ed..33dce1799 100644 --- a/src/qibolab/instruments/abstract.py +++ b/src/qibolab/instruments/abstract.py @@ -4,8 +4,6 @@ from qibolab.unrolling import Bounds -from .port import Port - InstrumentId = str @@ -55,9 +53,6 @@ def setup(self, *args, **kwargs): class Controller(Instrument): """Instrument that can play pulses (using waveform generator).""" - PortType = Port - """Class used by the instrument to instantiate ports.""" - def __init__(self, name, address): super().__init__(name, address) self._ports = {} @@ -78,21 +73,6 @@ def sampling_rate(self): """Sampling rate of control electronics in giga samples per second (GSps).""" - def ports(self, port_name, *args, **kwargs): - """Get ports associated to this controller. - - Args: - port_name: Identifier for the port. The type of the identifier - depends on the specialized port defined for each instrument. - - Returns: - :class:`qibolab.instruments.port.Port` object providing the interface - for setting instrument parameters. - """ - if port_name not in self._ports: - self._ports[port_name] = self.PortType(port_name) - return self._ports[port_name] - @abstractmethod def play(self, *args, **kwargs): """Play a pulse sequence and retrieve feedback.