mirror of
https://github.com/vale981/two_qubit_model
synced 2025-03-05 17:51:40 -05:00
fix total energy
This commit is contained in:
parent
bc49789a11
commit
90afb3b525
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ class Model(ABC):
|
||||||
|
|
||||||
system = self.system_energy(data, **kwargs)
|
system = self.system_energy(data, **kwargs)
|
||||||
bath = self.bath_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)
|
return total - (system + bath)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue