04:00
@lela2011 The convergence is a red hearing. You can see that you aren't computing the correct Fock matrix from this simple example:
if __name__ == "__main__":
# Define Atoms
C = Atom("C", (0, 0, 0))
# Define Molecule
molecule = Molecule([C])
# Generate pyscf string to build pyscf molecule
pyscf_name = molecule.pyscf_molecule_string()
# Build pyscf molecule
mol = gto.M(atom = pyscf_name, basis="STO-3G")
# Generate integrals used for caluclations
s = mol.intor("int1e_ovlp", hermi=1)
kin = mol.intor("int1e_kin", hermi=1)
nuc = mol.intor("int1e_nuc", hermi=1)
ERIs = mol.intor("int2e")
# Calculate transformation matrix based on overlap matrix
# Define Atoms
C = Atom("C", (0, 0, 0))
# Define Molecule
molecule = Molecule([C])
# Generate pyscf string to build pyscf molecule
pyscf_name = molecule.pyscf_molecule_string()
# Build pyscf molecule
mol = gto.M(atom = pyscf_name, basis="STO-3G")
# Generate integrals used for caluclations
s = mol.intor("int1e_ovlp", hermi=1)
kin = mol.intor("int1e_kin", hermi=1)
nuc = mol.intor("int1e_nuc", hermi=1)
ERIs = mol.intor("int2e")
# Calculate transformation matrix based on overlap matrix
In this case I've taken the coefficients directly from pyscf and used your routines to build the fock matrix. Yet you'll see that the result is different. I've verified that your core and overlap matrices are fine, so you know it is related to your Fock matrix building routine. I will give you a hint, print this value: rhf.get_occ().
2 hours later…
06:17
*in the last two days to generate a Fock matrix with a density matrix. If I generate the fock matrix from PySCF with the density matrix I generate myself, the fock matrix I implemented myself is the same as the one from PySCF and that for any density Matrix. That would mean, that my density matrix implementation is wrong, right? I'll update my GitHub repo in the next few hours.
5 hours later…
5 hours later…
« first day (734 days earlier) ← previous day next day → last day (905 days later) »