예제 #1
0
파일: hf.py 프로젝트: pedersor/pyscf
def init_guess_by_chkfile(cell, chkfile_name, project=None, kpt=None):
    '''Read the HF results from checkpoint file, then project it to the
    basis defined by ``cell``

    Returns:
        Density matrix, (nao,nao) ndarray
    '''
    from pyscf.pbc.scf import uhf
    dm = uhf.init_guess_by_chkfile(cell, chkfile_name, project, kpt)
    return dm[0] + dm[1]
예제 #2
0
파일: hf.py 프로젝트: sunqm/pyscf
def init_guess_by_chkfile(cell, chkfile_name, project=None, kpt=None):
    '''Read the HF results from checkpoint file, then project it to the
    basis defined by ``cell``

    Returns:
        Density matrix, (nao,nao) ndarray
    '''
    from pyscf.pbc.scf import uhf
    dm = uhf.init_guess_by_chkfile(cell, chkfile_name, project, kpt)
    return dm[0] + dm[1]
예제 #3
0
파일: rohf.py 프로젝트: pyscf/pyscf
 def init_guess_by_chkfile(self, chk=None, project=True, kpt=None):
     if chk is None: chk = self.chkfile
     if kpt is None: kpt = self.kpt
     return pbcuhf.init_guess_by_chkfile(self.cell, chk, project, kpt)
예제 #4
0
파일: rohf.py 프로젝트: chrinide/pyscf
 def init_guess_by_chkfile(self, chk=None, project=True, kpt=None):
     if chk is None: chk = self.chkfile
     if kpt is None: kpt = self.kpt
     return pbcuhf.init_guess_by_chkfile(self.cell, chk, project, kpt)