Replies: 1 comment 4 replies
-
hi I think setting the mass to infinity is really not a good idea, because it will likely cause some numerical problem and will needlessly compute a laplacian of the wave function. it's best just to ignore the kinetic energy and to not add it to the Hamiltonian |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to model the H2 molecule via netket. I define a 4 particle Hilbert space, and would like to ignore the kinetic energy of the nuclei. To do that, I try to set the mass of the nuclei to be infinity in defining the kinetic energy operator:
mass = (1.0, 1.0, jnp.inf, jnp.inf)
. This is my code for testing:However, I got the following error when running the code:
It seems to me that the error is caused by a mismatch between the shapes of
inverse_mass
anddp_dx2 + dp_dx
, where the former has shape(4,)
while the latter has shape(12,)
. When I set the mass to bemass = 1.0
, the code works fine. Would there be something wrong in defining the mass of the kinetic operator?Besides, I am not sure if it is appropriate to set the mass to be infinity to ignore the kinetic term of that particle. Is there any better ways to do this?
Thank you so much in advance!
Beta Was this translation helpful? Give feedback.
All reactions