Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 24, 2024
1 parent 39e301b commit 86db54e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qibocal/protocols/ramsey/ramsey_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ def _fit(data: RamseySignalData) -> RamseySignalResults:
delta_fitting = popt[2] / (2 * np.pi)
if data.detuning is not None:
sign = np.sign(data.detuning)
delta_phys = int(sign * (delta_fitting * GHZ_TO_HZ - np.abs(data.detuning)))
delta_phys = int(
sign * (delta_fitting * GHZ_TO_HZ - np.abs(data.detuning))
)
else:
delta_phys = int(sign * (delta_fitting * GHZ_TO_HZ ))
delta_phys = int(sign * (delta_fitting * GHZ_TO_HZ))
corrected_qubit_frequency = int(qubit_freq - delta_phys)
t2 = 1 / popt[4]
freq_measure[qubit] = [
Expand Down

0 comments on commit 86db54e

Please sign in to comment.