Exemplo n.º 1
0
 def test_qmolecule_log_with_atoms(self):
     """Test QMolecule log function."""
     qmolecule = FCIDumpDriver(self.get_resource_path(
         'test_driver_fcidump_h2.fcidump', 'drivers/fcidumpd'),
                               atoms=['H', 'H']).run()
     with self.assertLogs('qiskit_nature', level='DEBUG') as _:
         qmolecule.log()
Exemplo n.º 2
0
 def test_qmolecule_log(self):
     """Test QMolecule log function."""
     qmolecule = FCIDumpDriver(
         self.get_resource_path("test_driver_fcidump_h2.fcidump",
                                "drivers/fcidumpd")).run()
     with self.assertLogs("qiskit_nature", level="DEBUG") as _:
         qmolecule.log()
 def test_qmolecule_log_with_atoms(self):
     """Test QMolecule log function."""
     qmolecule = FCIDumpDriver(
         self.get_resource_path("test_driver_fcidump_h2.fcidump",
                                "drivers/second_quantization/fcidumpd"),
         atoms=["H", "H"],
     ).run()
     with self.assertLogs("qiskit_nature", level="DEBUG") as _:
         qmolecule.log()