Topology

Definition of the Topology class.

This module provides a definition of the Topology class, which can be used to manage a network’s structure. Topology instances automatically perform many useful network functions.

class src.topology.topology.Topology(conf_file_name: str)

Class for generating network from configuration file.

The topology class provides a simple interface for managing the nodes and connections in a network. A network may also be generated using an external json file.

nodes

mapping of type of node to a list of same type node.

Type:

Dict[str, List[Node]]

qchannels

list of quantum channel objects in network.

Type:

List[QuantumChannel]

cchannels

list of classical channel objects in network.

Type:

List[ClassicalChannel]

tl

the timeline used for simulation

Type:

Timeline