:py:mod:`kosmos.protocols.eg_protocol` ====================================== .. py:module:: kosmos.protocols.eg_protocol Classes ------- .. py:class:: EGProtocol(config: kosmos.protocols.config.protocol.EGProtocolConfig, network: kosmos.topology.net.Network, quantum_manager: kosmos.quantum_logic.quantum_register_manager.QuantumRegisterManager, source_node: kosmos.topology.node.QuantumNode, target_node: kosmos.topology.node.QuantumNode) Bases: :py:class:`kosmos.protocols.protocol.Protocol` Entanglement generation protocol. This protocol allocates communication qubits at the source and target nodes, then creates entanglement between them based on the quantum link properties. Initialize the entanglement generation protocol. :param config: Entanglement generation protocol configuration. :type config: EGProtocolConfig :param network: The network topology. :type network: Network :param quantum_manager: The quantum register manager. :type quantum_manager: QuantumRegisterManager :param source_node: The source node. :type source_node: QuantumNode :param target_node: The target node. :type target_node: QuantumNode | .. rubric:: Methods .. py:method:: execute() -> kosmos.protocols.protocol_result.EGProtocolResult Execute the entanglement generation protocol. :returns: Result of the entanglement generation protocol execution. :rtype: EGProtocolResult