FlowKet icon indicating copy to clipboard operation
FlowKet copied to clipboard

J1J2 exact example leads to NaN values

Open orsharir opened this issue 6 years ago • 2 comments

The simple J1-J2 example with exact optimization (j1j2_2d_exact_4.py) seems to lead to NaN / overflow values after a few iterations:

/cs/labs/shashua/ors07/Pyket/src/pyket/optimization/exact_variational.py:92: RuntimeWarning: overflow encou$ tered in multiply np.multiply(np.real(self.naive_local_energy_minus_energy), np.real(self.naive_local_energy_minus_energy), out=self.naive_local_energy_minus_energy_squared) /cs/labs/shashua/ors07/Pyket/src/pyket/optimization/exact_variational.py:93: RuntimeWarning: invalid value encountered in multiply np.multiply(self.naive_local_energy_minus_energy_squared, self.exact_variational.probs, out=self.probs_mult_local_energy_variance)

orsharir avatar Jun 09 '19 15:06 orsharir

I still play with these models when i finish i will update the learning rate to good one that will converge

noamwies avatar Jun 10 '19 13:06 noamwies

Is this example fixed? can we close this issue?

orsharir avatar Nov 07 '20 13:11 orsharir