Exemplo n.º 1
0
    def setUpClass(cls):
        cls._alice = None
        cls._bob = None

        Settings.default_settings()
        cls.network = Network(nodes=["Alice", "Bob"])
        cls.network.start()
Exemplo n.º 2
0
    def setUpClass(cls):
        Settings.default_settings()
        cls.network = Network(nodes=["Alice", "Bob"])
        cls.network.start()

        cls.alice = CQCConnection("Alice")
        cls.bob = CQCConnection("Bob")
Exemplo n.º 3
0
    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()
Exemplo n.º 4
0
    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()
Exemplo n.º 5
0
    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()
Exemplo n.º 6
0
 def setUpClass(cls):
     Settings.default_settings()
     cls.network = Network(nodes=["Alice"])
     cls.network.start()
Exemplo n.º 7
0
 def tearDownClass(cls):
     cls.network.stop()
     Settings.default_settings()
Exemplo n.º 8
0
    def setUpClass(cls):
        cls.iterations = 8

        Settings.default_settings()
        cls.network = Network(nodes=["Alice", "Bob"])
        cls.network.start()
Exemplo n.º 9
0
 def setUpClass(cls):
     Settings.default_settings()
     cls.node_names = ["Alice", "Bob", "Charlie"]
     cls.network = Network(cls.node_names)
     cls.network.start()
Exemplo n.º 10
0
def default():
    """Sets all settings back to default"""
    Settings.default_settings()
Exemplo n.º 11
0
    def tearDownClass(cls):
        cls.alice.close()
        cls.bob.close()

        cls.network.stop()
        Settings.default_settings()