kosmos.topology.predefined_quantum.factory

Functions

create_topology(topology_type: Literal['line', 'ring', 'star'], num_nodes: int, num_qubits: int = 127) kosmos.topology.net.Network

Create a network from a predefined quantum topology.

Parameters:
  • topology_type (Literal["line", "ring", "star"]) – Kind of topology.

  • num_nodes (int) – Number of nodes in the topology.

  • num_qubits (int) – Number of qubits per node. Defaults to 127.

Returns:

Constructed network instance.

Return type:

Network