qblox_scheduler.device_under_test.edge#
The module contains definitions for edges.
Classes#
Create an Edge. |
Module Contents#
- class Edge(parent_element: qblox_scheduler.device_under_test.device_element.DeviceElement | str | None = None, child_element: qblox_scheduler.device_under_test.device_element.DeviceElement | str | None = None, **data: Any)[source]#
Bases:
abc.ABC,qblox_scheduler.structure.model.SchedulerBaseModelCreate an Edge.
This class encapsulates the connection information between DeviceElements in the QuantumDevice. It provides an interface for the QuantumDevice to generate the edge information for use in the device compilation step. See
qblox_scheduler.device_under_test.composite_square_edgefor an example edge implementation.- _parent_device_element: qblox_scheduler.device_under_test.device_element.DeviceElement | None = None[source]#
- _child_device_element: qblox_scheduler.device_under_test.device_element.DeviceElement | None = None[source]#
- classmethod include_submodule_names(data: Any) Any[source]#
Fill in the
nameattribute ofEdgesubmodules when missing (used for YAML deserialization, they are omitted at serialization).
- classmethod dispatch_concrete_model(data: Any, handler: pydantic.ModelWrapValidatorHandler[typing_extensions.Self]) typing_extensions.Self[source]#
When deserializing a dict representation of a concrete
Edge, infer the matching class by looking its edge_type into the model registry and return a validated instance of the concrete edge.
- property parent_element: qblox_scheduler.device_under_test.device_element.DeviceElement | None[source]#
Getter for the internal parent device element.
- property child_element: qblox_scheduler.device_under_test.device_element.DeviceElement | None[source]#
Getter for the internal child device element.