Exemplo n.º 1
0
 def setUp(self):
     super().setUp()
     input_file = self._get_resource_path('sample.exactcover')
     with open(input_file) as file:
         self.list_of_subsets = json.load(file)
         qubit_op, _ = exact_cover.get_operator(self.list_of_subsets)
         self.algo_input = EnergyInput(qubit_op)
Exemplo n.º 2
0
 def setUp(self):
     super().setUp()
     warnings.filterwarnings("ignore", message=aqua_globals.CONFIG_DEPRECATION_MSG,
                             category=DeprecationWarning)
     input_file = self._get_resource_path('sample.exactcover')
     with open(input_file) as file:
         self.list_of_subsets = json.load(file)
         self.qubit_op, _ = exact_cover.get_operator(self.list_of_subsets)