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

Autograd #153

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Autograd #153

wants to merge 15 commits into from

Conversation

RichRick1
Copy link
Collaborator

Added automatic differentiation for the contraction.

  1. The function to be used is eval_nuc_deriv that has the same API as _eval_deriv_contractions.
  2. eval_nuc_deriv supports arbitrary order derivative with respect to R_x, R_y, R_z (coordinates of the nuclei)
  3. Added test to calculate derivatives comparing them with derivatives obtained numerically with _eval_deriv_contractions function.

Note: It's vectorized over number of points at which derivative has to be calculated, but function is still looping over primitives and different angular momentum (not components) if more than one is provided.

@PaulWAyers
Copy link
Member

One can test against @msricher 's libcint integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants