:py:mod:`kosmos.protocols.config.protocol` ========================================== .. py:module:: kosmos.protocols.config.protocol Classes ------- .. py:class:: ProtocolConfig Base class for all protocol configurations. ---- .. py:class:: EGProtocolConfig Bases: :py:class:`ProtocolConfig` Entanglement generation protocol configuration. .. attribute:: fidelity_threshold Threshold for entanglement fidelity. :type: float .. attribute:: max_retries Maximum number of retries. :type: int ---- .. py:class:: RoutingProtocolConfig Bases: :py:class:`ProtocolConfig` Routing protocol configuration. .. attribute:: allowed_link_types Allowed link types for routing. :type: Collection[LinkType] .. attribute:: cost_function Cost function to use for routing. Defaults to 'cost'. :type: Literal["cost", "distance"]