def setUpClass(cls): cls._alice = None cls._bob = None Settings.default_settings() cls.network = Network(nodes=["Alice", "Bob"]) cls.network.start()
def setUpClass(cls): Settings.default_settings() cls.network = Network(nodes=["Alice", "Bob"]) cls.network.start() cls.alice = CQCConnection("Alice") cls.bob = CQCConnection("Bob")
def setUpClass(cls): cls.iterations = 100 sys.stdout.write( "Testing factory gates with {} iterations \r\n".format( cls.iterations)) Settings.default_settings() cls.network = Network() cls.network.start()
def setUpClass(cls): cls.iterations = 100 sys.stdout.write( "Testing single qubit gates gates with {} iterations \r\n".format( cls.iterations)) Settings.default_settings() cls.network = Network(nodes=["Alice"]) cls.network.start()
def tearDownClass(cls): # Set config files back to default for file in ["Nodes.cfg", "topology.json", "settings.ini"]: simulaqron_path = get_simulaqron_path.main() file_path = os.path.join(simulaqron_path, "config", file) os.remove(file_path) construct_node_configs() Settings.default_settings()
def setUpClass(cls): Settings.default_settings() cls.network = Network(nodes=["Alice"]) cls.network.start()
def tearDownClass(cls): cls.network.stop() Settings.default_settings()
def setUpClass(cls): cls.iterations = 8 Settings.default_settings() cls.network = Network(nodes=["Alice", "Bob"]) cls.network.start()
def setUpClass(cls): Settings.default_settings() cls.node_names = ["Alice", "Bob", "Charlie"] cls.network = Network(cls.node_names) cls.network.start()
def default(): """Sets all settings back to default""" Settings.default_settings()
def tearDownClass(cls): cls.alice.close() cls.bob.close() cls.network.stop() Settings.default_settings()