def setUp(self):
     """Setup."""
     super().setUp()
     with warnings.catch_warnings():
         warnings.filterwarnings("ignore", category=DeprecationWarning)
         qmol = QMolecule()
     qmol.num_molecular_orbitals = 4
     self.prop = Magnetization.from_legacy_driver_result(qmol)
 def setUp(self):
     """Setup."""
     super().setUp()
     with warnings.catch_warnings():
         warnings.filterwarnings("ignore", category=DeprecationWarning)
         qmol = QMolecule()
     qmol.num_molecular_orbitals = 4
     qmol.num_alpha = 2
     qmol.num_beta = 2
     self.prop = ParticleNumber.from_legacy_driver_result(qmol)