Skip to content

Commit

Permalink
fix: Drop ports from platform
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed May 3, 2024
1 parent 31edd4e commit 7660a67
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/qibolab/instruments/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

from qibolab.unrolling import Bounds

from .port import Port

InstrumentId = str


Expand Down Expand Up @@ -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 = {}
Expand All @@ -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.
Expand Down

0 comments on commit 7660a67

Please sign in to comment.