Skip to content

Commit

Permalink
fix FlippingResults and FlippingData class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ElStabilini committed Nov 28, 2024
1 parent 4052755 commit 12fedb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/qibocal/protocols/flipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down Expand Up @@ -303,8 +303,8 @@ def _fit(data: FlippingData) -> FlippingResults:
delta_amplitude,
delta_amplitude_detuned,
fitted_parameters,
data.rx90,
chi2,
rx90=data.rx90,
)


Expand Down

0 comments on commit 12fedb5

Please sign in to comment.