-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace indexing with slicing in qchem integrals (#4685)
**Context:** The qchem code for computing molecular integrals needs to be modified for a better compatibility with JAX as described [here](https://app.shortcut.com/xanaduai/write/IkRvYyI6I3V1aWQgIjYyZGIxMTAxLTg2NDEtNGI0OS1hNmNkLWRiMTE5ZTJhY2FmYyI=). **Description of the Change:** The function `integrals.py` is modified to replace indexing with slicing in the computationally expensive functions `electron_repulsion` and `_hermite_coulomb`. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: Mudit Pandey <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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