kosmos.topology.predefined_quantum.builders¶
Module Attributes¶
Classes¶
- class PredefinedQuantumTopology¶
Bases:
abc.ABCAbstract base class for predefined quantum topologies.
Methods
- build() kosmos.topology.net.Network¶
Construct the topology and return a Network instance.
- Returns:
Constructed network instance.
- Return type:
- class LineTopology(num_nodes: int, num_qubits: int)¶
Bases:
PredefinedQuantumTopologyLine quantum topology.
Initialize the line quantum topology.
- Parameters:
Methods
- build() kosmos.topology.net.Network¶
Build the line quantum topology.
- Returns:
Network with nodes connected in a linear chain.
- Return type:
- class RingTopology(num_nodes: int, num_qubits: int)¶
Bases:
PredefinedQuantumTopologyRing quantum topology.
Initialize the ring quantum topology.
- Parameters:
Methods
- build() kosmos.topology.net.Network¶
Build the ring quantum topology.
- Returns:
Network forming a closed cycle.
- Return type:
- class StarTopology(num_nodes: int, num_qubits: int)¶
Bases:
PredefinedQuantumTopologyStar quantum topology.
Initialize the star quantum topology.
- Parameters:
Methods
- build() kosmos.topology.net.Network¶
Build the star quantum topology.
- Returns:
Network with one central node and all other nodes connected to the center.
- Return type: