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

Bad wavefunction with spin polarized SPO using LCAO #1145

Open
shivupa opened this issue Nov 4, 2018 · 10 comments
Open

Bad wavefunction with spin polarized SPO using LCAO #1145

shivupa opened this issue Nov 4, 2018 · 10 comments
Assignees
Labels

Comments

@shivupa
Copy link
Contributor

shivupa commented Nov 4, 2018

After a discussion with Paul via email, I'm opening an issue on the following problem we've been having.

Relevant files are in the following gist.

The systems for which we have encountered problems are dipole-bound anions. These are systems in which an electron binds in the dipole field of the molecule. They have very extended charge distributions. We have been able to calculate electron binding energies for several of these systems using Casino, but attempts to do so with QMCPACK have failed. The most recent such system that we have attempted is CH3CN.

The neutral molecule presents no problems: the problems are with the anion.
The calculations are all-electron with 1-body and 2-body Jastrow factors. Our most recent calculations used the 3.5.0 release of QMCPACK. These were all-electron calculations with cusp corrected orbitals using the standard cusp correction algorithm. The VMC without a Jastrow (but with cusp corrected orbitals) does agree with HF (-131.97 ± 0.19 for VMC and -131.939 for HF).

We first optimized the Jastrow parameters for the neutral using cutoffs optimized in Casino and then used these as starting parameters for the anion. However, the VMC optimization on the anion failed with variances ~ 10^14. The Jastrow factors used splines and were optimized using the OneShiftOnly optimizer.

Pure variance (both unreweighted and reweighted) minimization behaved similarly. In both optimization approaches the high variances begin from the first iteration.

I attached plots of the starting Jastrow factors. They were generated using a short optimization on the neutral. It seems like a reasonable starting guess.

We've tried another dipole-bound anion system, C3H2 and were similarly unsuccessful. In that system there is the possibility of collapsing to a valence bound anion which could cause complications so we switched to CH3CN. Similarly, a long time ago we tried a model water system which was also unstable.

The binding of the systems we are trying to treat is very diffuse compared to common anionic systems, but I am unsure if this would cause any complications for QMC.

Let me know if I can provide any other relevant information.

Thanks,
Shiv

@ye-luo
Copy link
Contributor

ye-luo commented Nov 5, 2018

I ran your input with current develop. It seems that once the extra electron is added, the inital VMC already goes wrong. I tried without Jastrow with AoS and SoA code. The AoS code already gives 10^14 variance while the SoA code shows very absurd energy trajectory, having some jump like a step function, although the energy values are around -130.
v3.1.1, v3.4.0 and v3.5.0 AoS builds both show insane huge variance. I think something is wrong with the orbital or cusp correction.

@prckent
Copy link
Contributor

prckent commented Nov 5, 2018

@shivupa Thanks for reporting the problem.

@prckent prckent added the bug label Nov 5, 2018
@anbenali
Copy link
Contributor

anbenali commented Nov 5, 2018 via email

@shivupa
Copy link
Contributor Author

shivupa commented Nov 5, 2018

Thanks I added the gamess input file to the gist above if needed.

@anbenali
Copy link
Contributor

anbenali commented Nov 5, 2018 via email

@prckent prckent added this to the V3.6.0 Release milestone Nov 7, 2018
@shivupa
Copy link
Contributor Author

shivupa commented Nov 9, 2018

I managed to modify the converter on this branch. The converter now takes the labels from the gamess output and this fixes any issues with needing to modify the files manually. However, I still experienced the extremely high variances. Hopefully this helps narrow it down.

@prckent
Copy link
Contributor

prckent commented Nov 11, 2018

Thanks. It indeed seems that there is at least a problem with the converter although we can't also yet rule out the cusp correction. Results have not changed in years, so I think it is most probable that this is a legacy problem with the converter and limited non-error trapped capabilities. When the new cusp SoA implementation (#1150) is done we will be able to cross-check with PySCF, which uses a different HDF5 based route.

I would not use a wavefunction with high variance.

@ye-luo ye-luo changed the title Dipole bound anion Jastrow optimization problem Bad wavefunction with spin polarized SPO using LCAO Nov 26, 2018
@anbenali
Copy link
Contributor

anbenali commented Nov 29, 2018 via email

@anbenali
Copy link
Contributor

anbenali commented Nov 29, 2018 via email

@shivupa
Copy link
Contributor Author

shivupa commented Nov 29, 2018

Anouar,

I appreciate the help and the updates!

Thank you,
Shiv

@prckent prckent modified the milestones: V3.7.0 Release, V3.8.0 Release Mar 15, 2019
@prckent prckent removed this from the On Deck milestone Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants