You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage: put the "ris.bas" or "ris+p.bas" file in the working directory, and use this script to run TDDFT-ris calculation.
The SCF part is same any usual SCF calculations. In the TD part, the script uses the user-define minimal JK fitting basis , "ris.bas", and turned off the XC kernel. I would not expect TDDFT-ris has too much speedup compared with RIJCOSX in ORCA, becasue COSX is N^3 and ris (RIJK) is N^4. I only observed a factor of 4 speedup in a 38 atoms system with def2-TZVP basis.
However, TDDFT-ris (and its variant, rid) was originally developed as the initial guess and preconditioner to help Davidson algorithm in TDDFT converge faster. There are many tricks to further speedup the TDDFT-ris itself, such as truncating the high energy obital pairs in the exchange term (not the Coulomb term), so that the initial guess and preconditioner is cheap enough to really help reduce the overall TDDFT cost.
Reference,
Zhou, Zehao, and Shane M. Parker. "Converging Time-Dependent Density Functional Theory Calculations in Five Iterations with Minimal Auxiliary Preconditioning." Journal of Chemical Theory and Computation (2024).
Zhou, Zehao, Fabio Della Sala, and Shane M. Parker. "Minimal auxiliary basis set approach for the electronic excitation spectra of organic molecules." The Journal of Physical Chemistry Letters 14, no. 7 (2023): 1968-1976.
Zhou, Zehao, and Shane M. Parker. "Accelerating molecular property calculations with semiempirical preconditioning." The Journal of Chemical Physics 155, no. 20 (2021).
your script is really nice! I think it would be great for the script library! I just have a few comments that I think should happen before we add it.
This is just a personal opinion so it is up to you, I think that it would be great to have some comments inside the compound.inp file so that it would be easier for the user to use it.
in file get_ris_bas.py you have some comments that are in Chinese, this would be better to be in English
in file compound.inp in line 20 you have a minor typo (geometry instead of geometry)
I think that in file compound inp it would be better to include some variables for some basis ingredients like mutliplicy, maybe functional, ... etc. so that it would be easier for the user to make adjustments.
Hi Dimitris, thanks for detailed checking!
I put more comments and instructions now. Except 4, I didn't include variables because I don't yet know how to use the best of Compound script :-) I though users just revise funcitonal/mutliplicy inside the compound script, that what I did when I use [iterativeOptimization.cmp] LOL.
BTW, in ORCA, I think it's hard to make TDDFT-ris significantly faster than RIJCOSX , because the MO orbital truncation in the exchange ERI are necessary to relax the RIJK N^4 scaling pain.
That's what I did in my stand alone code, https://github.com/John-zzh/pyscf_TDDFT_ris/blob/main/pyscf_TDDFT_ris/TDDFT_ris_Ktrunc.py,
K terms includes much less MOs than J terms at the every begining.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Usage: put the "ris.bas" or "ris+p.bas" file in the working directory, and use this script to run TDDFT-ris calculation.
The SCF part is same any usual SCF calculations. In the TD part, the script uses the user-define minimal JK fitting basis , "ris.bas", and turned off the XC kernel. I would not expect TDDFT-ris has too much speedup compared with RIJCOSX in ORCA, becasue COSX is N^3 and ris (RIJK) is N^4. I only observed a factor of 4 speedup in a 38 atoms system with def2-TZVP basis.
However, TDDFT-ris (and its variant, rid) was originally developed as the initial guess and preconditioner to help Davidson algorithm in TDDFT converge faster. There are many tricks to further speedup the TDDFT-ris itself, such as truncating the high energy obital pairs in the exchange term (not the Coulomb term), so that the initial guess and preconditioner is cheap enough to really help reduce the overall TDDFT cost.
Reference,