Ejemplo n.º 1
0
 def setUp(self):
     super().setUp()
     self.seed = 8123179
     algorithm_globals.random_seed = self.seed
     self.num_nodes = 5
     self.w = random_graph(self.num_nodes, edge_prob=0.5)
     self.qubit_op, self.offset = stable_set.get_operator(self.w)
 def setUp(self):
     super().setUp()
     self.seed = 100
     aqua_globals.random_seed = self.seed
     self.num_nodes = 3
     self.w = random_graph(self.num_nodes, edge_prob=0.8, weight_range=10)
     self.qubit_op, self.offset = vertex_cover.get_operator(self.w)
Ejemplo n.º 3
0
 def setUp(self):
     super().setUp()
     self.k = 5  # K means the size of the clique
     self.seed = 100
     algorithm_globals.random_seed = self.seed
     self.num_nodes = 5
     self.w = random_graph(self.num_nodes, edge_prob=0.8, weight_range=10)
     self.qubit_op, self.offset = clique.get_operator(self.w, self.k)
Ejemplo n.º 4
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)