Skip to content

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