From 12fedb5c01bc218e6ab3026220c43f7257a91873 Mon Sep 17 00:00:00 2001 From: ElStabilini Date: Thu, 28 Nov 2024 11:14:51 +0400 Subject: [PATCH] fix FlippingResults and FlippingData class definition --- src/qibocal/protocols/flipping.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qibocal/protocols/flipping.py b/src/qibocal/protocols/flipping.py index 0a8c24a6a..668f0789a 100644 --- a/src/qibocal/protocols/flipping.py +++ b/src/qibocal/protocols/flipping.py @@ -95,10 +95,10 @@ class FlippingResults(Results): """Difference in amplitude between detuned value and fit.""" fitted_parameters: dict[QubitId, dict[str, float]] """Raw fitting output.""" - chi2: dict[QubitId, list[float]] = field(default_factory=dict) - """Chi squared estimate mean value and error. """ rx90: bool """Pi or Pi_half calibration""" + chi2: dict[QubitId, list[float]] = field(default_factory=dict) + """Chi squared estimate mean value and error. """ FlippingType = np.dtype( @@ -116,10 +116,10 @@ class FlippingData(Data): """Amplitude detuning.""" pulse_amplitudes: dict[QubitId, float] """Pulse amplitudes for each qubit.""" - data: dict[QubitId, npt.NDArray[FlippingType]] = field(default_factory=dict) - """Raw data acquired.""" rx90: bool """Pi or Pi_half calibration""" + data: dict[QubitId, npt.NDArray[FlippingType]] = field(default_factory=dict) + """Raw data acquired.""" def _acquisition( @@ -303,8 +303,8 @@ def _fit(data: FlippingData) -> FlippingResults: delta_amplitude, delta_amplitude_detuned, fitted_parameters, + data.rx90, chi2, - rx90=data.rx90, )