simulaqron.local package

Submodules

simulaqron.local.setup module

simulaqron.local.setup.assemble_qubit(realM, imagM)[source]

Reconstitute the qubit as array from its real and imaginary components given as a list. We need this since Twisted PB does not support sending complex valued object natively.

simulaqron.local.setup.fill_register(obj, myName, lNode, virtRoot, classicalNet, func, *args, **kwargs)[source]
simulaqron.local.setup.init_register(resList, myName, virtualNet, classicalNet, lNode, func, *args, **kwargs)[source]
simulaqron.local.setup.localError(reason)[source]

Error handling for the connection.

simulaqron.local.setup.setup_local(myName, virtualNet, classicalNet, lNode, func, *args, **kwargs)[source]

Sets up - local classical communication server (if desired according to the configuration file) - client connection to the local virtual node quantum backend - client connections to all other classical communication servers

Arguments myName name of this node (string) virtualNet servers of the virtual nodes (dictionary of host objects) classicalNet servers on the classical communication network (dictionary of host objects) lNode Twisted PB root to use as local server (if applicable) func function to run if all connections are set up args, kwargs additional arguments to be given to func

Module contents