qpce package

Submodules

qpce.network module

Quantum network.

class qpce.network.Network[source]

Bases: object

A quantum network.

A quantum network object describes the topology and available resources in a quantum network. It consists of quantum routers and quantum links.

add_router(router)[source]

Add a quantum router to this quantum network.

Parameters

router (Router) – The quantum router to be added.

Returns

None

qpce.network_yaml module

qpce.path module

Quantum path.

class qpce.path.Path(demand, name, end_point_1, end_point_2, bandwidth, fidelity)[source]

Bases: object

A quantum path.

A quantum path is an association between two application end-points over which qubits are teleported. The path produces end-to-end Bell pairs at the rate and fidelity requested by the application.

qpce.router module

Quantum Router.

class qpce.router.Router(network, name)[source]

Bases: object

A quantum router.

A quantum router object represents a quantum router that is part of a quantum network. Quantum routers are interconnected by quantum links.

Add a link to the router. The link is attached to the next available port. The number of that port is returned.

Parameters

link (Link) – The link to be attached.

Returns

The port to which the link was attached.

Raises

AssertionError if there is already a router with the same name in the network.

Module contents