Commit fa4aaa8d authored by Martin Reinecke's avatar Martin Reinecke

try to fix

parent 6079d9bf
Pipeline #26558 failed with stages
in 4 minutes and 39 seconds
......@@ -26,7 +26,7 @@ class NoiseEnergy(Energy):
def __init__(self, position, alpha, q, res_sample_list):
super(NoiseEnergy, self).__init__(position)
self.N = DiagonalOperator(exp(self.position))
self.N = DiagonalOperator(exp(position))
self.alpha = alpha
self.q = q
self.res_sample_list = res_sample_list
......@@ -38,7 +38,7 @@ class NoiseEnergy(Energy):
grad = -.5 * self.N.inverse_times(s.conjugate()*s)
if self._gradient is None:
self._value = lh
self._gradient = grad
self._gradient = grad.copy()
else:
self._value += lh
self._gradient += grad
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment