Skip to content

Commit

Permalink
Merge branch 'fix_ramsey_update' into qua
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Sep 4, 2024
2 parents 8eec1ea + 3dad308 commit 941fd03
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 941fd03

Please sign in to comment.