Commit fa1e7078 authored by Reimar Heinrich Leike's avatar Reimar Heinrich Leike

corrected some conceptual mistakes in StandardHamiltionian that had no effects...

corrected some conceptual mistakes in StandardHamiltionian that had no effects because the prior metric is 1
parent eaa57e72
......@@ -328,8 +328,8 @@ class StandardHamiltonian(EnergyOperator):
return self._lh(x) + self._prior(x)
else:
lhx, prx = self._lh(x), self._prior(x)
mtr = SamplingEnabler(lhx.metric, prx.metric.inverse,
self._ic_samp, prx.metric.inverse)
mtr = SamplingEnabler(lhx.metric, prx.metric,
self._ic_samp)
return (lhx + prx).add_metric(mtr)
def __repr__(self):
......
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