Skip to content

Commit

Permalink
fix: Modify ramsey update
Browse files Browse the repository at this point in the history
The drive frequency is now updated only when a detuning
is provided, which is one of the assumption of the fit.
When detuning is 0 we update T2 since we expect it to
be more reliable.
  • Loading branch information
andrea-pasquale authored and stavros11 committed Sep 23, 2024
1 parent 323a1a4 commit 67045d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qibocal/protocols/ramsey/ramsey_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ def _plot(data: RamseySignalData, target: QubitId, fit: RamseySignalResults = No


def _update(results: RamseySignalResults, platform: Platform, target: QubitId):
update.drive_frequency(results.frequency[target][0], platform, target)
if int(results.delta_phys[target][0]) == int(results.delta_fitting[target][0]):
update.t2(results.t2[target][0], platform, target)
else:
update.drive_frequency(results.frequency[target][0], platform, target)


ramsey_signal = Routine(_acquisition, _fit, _plot, _update)
Expand Down

0 comments on commit 67045d8

Please sign in to comment.