Source code for quantify_scheduler.device_under_test.device_element

# Repository: https://gitlab.com/quantify-os/quantify-scheduler
# Licensed according to the LICENCE file on the main branch

from qcodes.instrument.base import Instrument
from quantify_scheduler.backends.graph_compilation import DeviceCompilationConfig


[docs]class DeviceElement(Instrument): """ A device element is responsible for managing parameters of the device configuration responsible for compiling operations applied to that specific device element from the quantum-circuit to the quantum-device layer. """ def __init__(self, name: str, **kwargs) -> None: if "-" in name or "_" in name: raise ValueError( f"Invalid DeviceElement name '{name}'. Hyphens and " f"underscores are not allowed due to naming conventions" ) super().__init__(name, **kwargs)
[docs] def generate_device_config(self) -> DeviceCompilationConfig: """ Generates the device configuration """ raise NotImplementedError