RI-HFX for K-points (with gradients and ADMM) #2998
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a new method for RI-HFX with K-point sampling. The exact exchange matrix is calculated in real-space for all interacting periodic images, before it is Fourier transformed to reciprocal space. Then, the complex Hermitian KS matrix is built, and the eigenvalue problem solved for each K-point. Details of the method will be published in a paper in the near future.
The method relies on the DBT library for sparse-tensor algebra, and on the libint library for analytical 3- and 2-center ERI evaluation. Forces and stress tensor calculations are also implemented. The method can be sped-up with the ADMM approximation (ADMM2, ADMMP, ADMMQ and ADMMS).
Careful testing was conducted. Equivalence to Gamma-point supercell calculations was verified, as well as convergence with the number of k-points. DEBUG runs were systematically ran for forces and stress tensors. Four new regtest directories were added, covering KP-RI-HFX energy and forces, with and without ADMM.
@dev-zero was instrumental in helping develop the ADMM approximation with k-point sampling.