kosmos.protocols.eg_protocol¶
Classes¶
- 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:
kosmos.protocols.protocol.ProtocolEntanglement 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.
- Parameters:
config (EGProtocolConfig) – Entanglement generation protocol configuration.
network (Network) – The network topology.
quantum_manager (QuantumRegisterManager) – The quantum register manager.
source_node (QuantumNode) – The source node.
target_node (QuantumNode) – The target node.
Methods
- execute() kosmos.protocols.protocol_result.EGProtocolResult¶
Execute the entanglement generation protocol.
- Returns:
Result of the entanglement generation protocol execution.
- Return type: