Closed MoleOrbitalHybridAnalyst closed 1 month ago
Thanks for raising this issue. I confirmed that there is indeed something weird going on. I will take a look.
I fixed it and created a bugfix release v0.1.1
. You can download it from pip now. It will also be available via conda in a few days.
My molecules all have charge=1 and I found I have to set charges to 1 / batch_size to get the correct results in batch mode. A simple example is as follows:
This gives the correct energy:
If I have
charge = torch.tensor([1, 1], **dd)
instead, I get the wrong energies:which are the energies of the molecules as if their charges = 2.
So it seems that the charge tensor is multiplied by batch_size somewhere internally. I think this behavior is quite counter-intuitive and probably not the actually wanted behavior.