3131
3232from simulaqron .local .setup import setup_local
3333from simulaqron .general .host_config import SocketsConfig
34- from simulaqron .settings import simulaqron_settings , network_config
34+ from simulaqron .settings import network_config
3535from twisted .internet .defer import inlineCallbacks
3636from twisted .internet import reactor
3737from twisted .spread import pb
@@ -115,7 +115,7 @@ def remote_test(self):
115115#
116116def main ():
117117
118- myName = "Alice" # we are Alice
118+ myName = "Alice" # we are Alice
119119
120120 # This file defines the network of virtual quantum nodes and the network used for classical communication
121121 network_config .read_from_file ("classicalNet.json" )
@@ -124,17 +124,18 @@ def main():
124124 virtualNet = SocketsConfig (network_config , network_name = "default" , config_type = "vnode" )
125125 classicalNet = SocketsConfig (network_config , network_name = "default" , config_type = "app" )
126126
127- # Check if we should run a server (if this node is listed in classicalNet)
127+ # Check if we should run a server (if this node is listed in classicalNet)
128128 if myName in classicalNet .hostDict :
129129 # Create the local classical server
130130 logging .debug ("LOCAL %s: Creating classical server." , myName )
131131 myNode = localNode (virtualNet .hostDict [myName ], classicalNet )
132132 else :
133133 myNode = None
134134
135- # Connect and run
135+ # Connect and run
136136 setup_local (myName , virtualNet , classicalNet , myNode , runClientNode )
137137
138+
138139##################################################################################################
139140logging .basicConfig (format = "%(asctime)s:%(levelname)s:%(message)s" , level = logging .DEBUG )
140141main ()
0 commit comments