Repository navigation
Add SF-TDDFT nonadiabatic couplings and batch caching - #210
Merged
Merged
Conversation
Add spin-flip nonadiabatic coupling support, gradient/NAC cache helpers, batch APIs, and regression tests. Resolve Ruff and Flake8 findings.
Collaborator
|
The |
Move the batch and cache utilities under pyscf.nac, replace the module-level cache singleton with an explicitly scoped context manager, and add focused unit tests for cache reuse, geometry keys, isolation, and cleanup.
MatthewRHermes
approved these changes
Sep 7, 2026
JangidBhavnesh
pushed a commit
to JangidBhavnesh/pyscf-forge
that referenced
this pull request
Sep 18, 2026
* feat: add spin-flip TDDFT NAC and batch caching Add spin-flip nonadiabatic coupling support, gradient/NAC cache helpers, batch APIs, and regression tests. Resolve Ruff and Flake8 findings. * fix: rely on the PySCF tools namespace package * refactor: scope gradient/NAC caching to NAC package Move the batch and cache utilities under pyscf.nac, replace the module-level cache singleton with an explicitly scoped context manager, and add focused unit tests for cache reuse, geometry keys, isolation, and cleanup. * fix: preserve NAC API and validate cache correctness
MatthewRHermes
pushed a commit
that referenced
this pull request
Oct 7, 2026
* Removing the un-necessary mutation of mc object for L-PDFT * Add SF-TDDFT nonadiabatic couplings and batch caching (#210) * feat: add spin-flip TDDFT NAC and batch caching Add spin-flip nonadiabatic coupling support, gradient/NAC cache helpers, batch APIs, and regression tests. Resolve Ruff and Flake8 findings. * fix: rely on the PySCF tools namespace package * refactor: scope gradient/NAC caching to NAC package Move the batch and cache utilities under pyscf.nac, replace the module-level cache singleton with an explicitly scoped context manager, and add focused unit tests for cache reuse, geometry keys, isolation, and cleanup. * fix: preserve NAC API and validate cache correctness --------- Co-authored-by: 井与 <2100011839@stu.pku.edu.cn>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 adds analytic nonadiabatic couplings (NACs) for spin-flip TDA/TDDFT and introduces reusable caching and batch utilities for gradient/NAC calculations.
Main changes
pyscf.nac.tduks_sf.