Skip to content

Commit

Permalink
chore: Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Nov 18, 2024
1 parent 4d6bb08 commit 434755a
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/qibocal/protocols/two_qubit_interaction/cryoscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from ..ramsey.utils import fitting

FULL_WAVEFORM = np.concatenate([np.zeros(20), np.ones(160), np.zeros(20)])
FULL_WAVEFORM = np.concatenate([np.zeros(10), np.ones(50), np.zeros(10)])
"""Full waveform to be played."""


Expand Down Expand Up @@ -289,17 +289,12 @@ def _fit(data: CryoscopeData) -> CryoscopeResults:
).tolist()

# params from flux_amplitude_frequency_protocol

# params = [
# 1.8820154223083199,
# 0.004516592884924419,
# 0.0002868968122209718,
# ] D1
params = [ # D2
2.0578,
-0.065,
0.00147,
]
params = [1.9412681243469971, -0.012534948170662627, 0.0005454772278201887]
# params = [ # D2
# 2.0578,
# -0.065,
# 0.00147,
# ]

# invert frequency amplitude formula
p = np.poly1d(params)
Expand All @@ -323,12 +318,21 @@ def _plot(data: CryoscopeData, fit: CryoscopeResults, target: QubitId):

fig = go.Figure()
duration = data[(target, "MX")].duration

fig.add_trace(
go.Scatter(
x=duration,
y=FULL_WAVEFORM,
name="exepcted waveform",
),
)

if fit is not None:
fig.add_trace(
go.Scatter(
x=duration,
y=fit.step_response[target],
name="step response",
name="derived waveform",
),
)

Expand Down

0 comments on commit 434755a

Please sign in to comment.