Closed wait-a-sec closed 3 years ago
Thanks @wait-a-sec. The issue might be resolved by renormalizing the probability vector, which in your examples is very likely smaller than one by a small margin. I will look into it and come back to you asap.
Closing as this appears to have been fixed by https://github.com/XanaduAI/thewalrus/pull/250. Feel free to reopen if the issue is not resolved
Issue description
While simulating the Vibronic Spectra of Pyrazine, I get the error "Probabilities do not sum to 1" when simulating all 24 modes. However when I use less than 3 or modes the code is able to execute. This error pops up not only in the case of large molecules or number of modes, but is present in the case of high number of samples as well. When simulating the spectra for Water, this error is present if the number of samples are taken to be 50,000.
pyrazine_ground.log pyrazine_charged.log