fix strobe times for otto

This commit is contained in:
Valentin Boettcher 2023-07-24 15:02:57 -04:00
parent fc67e60972
commit a047878abe
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -232,7 +232,9 @@ class OttoEngine(QubitModelMutliBath):
their corresponding indices.
"""
return strobe_times(self.t, self.Ω, tolerance=1e-3)
times = np.arange(self.num_cycles + 1) * self.Θ
indices = np.searchsorted(self.t, (np.arange(self.num_cycles + 1) * 2 * np.pi / self.Ω))
return times, indices
@t.setter
def t(self, _):