simulaqron.local package¶
Submodules¶
simulaqron.local.setup module¶
- simulaqron.local.setup.setup_local(myName: str, virtualNet: SocketsConfig, classicalNet: SocketsConfig, lNode: Root, func: Callable, *args, **kwargs)[source]¶
Sets up a local classical application level communication server (if desired according to the configuration file), a client connection to the local virtual node quantum backend and a client connections to all other classical communication servers.
- Parameters:
myName (str) – Name of this node.
virtualNet (SocketsConfig) – Servers of the virtual nodes (dictionary of host objects).
classicalNet (SocketsConfig) – Servers on the classical communication network (dictionary of host objects).
lNode (pb.Root) – Twisted PB root to use as local server (if applicable).
func (Callable) – Function to run if all connections are set up.
args (Any) – Additional arguments to be given to
func.kwargs (Any) – Additional keyword-based arguments to be passed to
func.