Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCF failed to converge #323

Open
RohanJoydhar opened this issue Jan 31, 2025 · 1 comment
Open

SCF failed to converge #323

RohanJoydhar opened this issue Jan 31, 2025 · 1 comment

Comments

@RohanJoydhar
Copy link

I was trying to calculate HF energy for large molecule but SCF is not converging:

code:

mol = pyscf.M(
atom=atom_string,
basis='STO3G',
output='./pyscf.log',
verbose=6
)

hf = gpu4pyscf.scf.RHF(mol).to_gpu()
hf_energy = hf.kernel()

output:
Hartree-Fock Energy: -20051.981618687753 Hartree
WARN: SCF failed to converge

@wxj6000
Copy link
Collaborator

wxj6000 commented Jan 31, 2025

The SCF convergence issue can be challenging for a complex system. Here is a user guide for overcoming the issue. You probably want to checkout the sections of initial guess, converging SCF iterations, and linear dependence.

https://pyscf.org/user/scf.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants