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

Bug in the calculation of the correlation energy #46

Closed
PabloAMC opened this issue Sep 11, 2023 · 1 comment · Fixed by #47
Closed

Bug in the calculation of the correlation energy #46

PabloAMC opened this issue Sep 11, 2023 · 1 comment · Fixed by #47
Assignees
Labels
bug Something isn't working

Comments

@PabloAMC
Copy link
Collaborator

There seems to be a small error affecting the correlation energy of polarized systems. This affects VWN, PW92 and LYP functionals. In the first 2, the function https://github.com/XanaduAI/DiffDFT/blob/7cb9ac966371970ae3a1c42dc66f4a030fbbf15b/grad_dft/functional.py#L934
is used, which could be the root of one problem, while we might have to check LYP independently.

@PabloAMC PabloAMC added the bug Something isn't working label Sep 11, 2023
@PabloAMC
Copy link
Collaborator Author

In particular, eq 2.76 is not implemented for $\tilde{e}_{c}$ (in the code e_tilde_PF), and is instead computed as

https://github.com/XanaduAI/DiffDFT/blob/7cb9ac966371970ae3a1c42dc66f4a030fbbf15b/grad_dft/functional.py#L959

which is wrong.

@PabloAMC PabloAMC linked a pull request Sep 11, 2023 that will close this issue
@PabloAMC PabloAMC self-assigned this Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant