Пример #1
0
 def setUp(self):
     super().setUp()
     aqua_globals.random_seed = 100
     self.num_nodes = 4
     self.w = random_graph(self.num_nodes, edge_prob=0.8, weight_range=10)
     self.qubit_op, self.offset = graph_partition.get_operator(self.w)
     self.algo_input = EnergyInput(self.qubit_op)
Пример #2
0
 def setUp(self):
     super().setUp()
     warnings.filterwarnings("ignore",
                             message=aqua_globals.CONFIG_DEPRECATION_MSG,
                             category=DeprecationWarning)
     aqua_globals.random_seed = 100
     self.num_nodes = 4
     self.w = random_graph(self.num_nodes, edge_prob=0.8, weight_range=10)
     self.qubit_op, self.offset = graph_partition.get_operator(self.w)