fix total energy

This commit is contained in:
Valentin Boettcher 2022-04-13 13:48:20 +02:00
parent bc49789a11
commit 90afb3b525

View file

@ -348,7 +348,7 @@ class Model(ABC):
system = self.system_energy(data, **kwargs)
bath = self.bath_energy(data, **kwargs)
total = float(qt.expect(self.system, self.ψ_0))
total = float(qt.expect(qt.Qobj(self.system(0)), self.ψ_0))
return total - (system + bath)