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)[source]

Bases: 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.

quantum_manager

The quantum register manager.

Type:

QuantumRegisterManager

source_node

The source node.

Type:

QuantumNode

target_node

The target node.

Type:

QuantumNode

Initialize the entanglement generation protocol.

Parameters:

Methods

execute() kosmos.protocols.protocol_result.CommunicationProtocolResult[source]

Execute the entanglement generation protocol.

Returns:

Result of the entanglement generation protocol execution.

Return type:

CommunicationProtocolResult