Skip to content

Commit

Permalink
use jnp in primitive product method to support jit
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhelal committed Oct 15, 2023
1 parent 04a9de3 commit ce026e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf_ipu/experimental/primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def product(a: Primitive, b: Primitive) -> Primitive:
lmn = a.lmn + b.lmn
c = a.norm * b.norm
Rab = a.center - b.center
c *= np.exp(-a.alpha * b.alpha / alpha * np.inner(Rab, Rab))
c *= jnp.exp(-a.alpha * b.alpha / alpha * jnp.inner(Rab, Rab))
return Primitive(center=center, alpha=alpha, lmn=lmn, norm=c)


Expand Down

0 comments on commit ce026e9

Please sign in to comment.