def UADC(mf, frozen=None, mo_coeff=None, mo_occ=None): if not (frozen is None or frozen == 0): raise NotImplementedError from pyscf.soscf import newton_ah if isinstance(mf, newton_ah._CIAH_SOSCF) or not isinstance(mf, scf.uhf.UHF): mf = scf.addons.convert_to_uhf(mf) return uadc.UADC(mf, frozen, mo_coeff, mo_occ)
def UADC(mf, frozen=None, mo_coeff=None, mo_occ=None): __doc__ = uadc.UADC.__doc__ if not (frozen is None or frozen == 0): raise NotImplementedError from pyscf.soscf import newton_ah if isinstance(mf, newton_ah._CIAH_SOSCF) or not isinstance(mf, scf.uhf.UHF): mf = scf.addons.convert_to_uhf(mf) if getattr(mf, 'with_df', None): raise NotImplementedError('DF-UADC') else: return uadc.UADC(mf, frozen, mo_coeff, mo_occ)