Skip to content
Snippets Groups Projects
Commit fa4aaa8d authored by Martin Reinecke's avatar Martin Reinecke
Browse files

try to fix

parent 6079d9bf
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment