mirror of
https://github.com/vale981/two_qubit_model
synced 2025-03-04 17:21:43 -05:00
fix strobe times for otto
This commit is contained in:
parent
fc67e60972
commit
a047878abe
1 changed files with 3 additions and 1 deletions
|
@ -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, _):
|
||||
|
|
Loading…
Add table
Reference in a new issue