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)
def setUp(self): super().setUp() warnings.filterwarnings("ignore", message=aqua_globals.CONFIG_DEPRECATION_MSG, category=DeprecationWarning) 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)