Skip to content

Commit

Permalink
fix: update Rabi length signal for new sequence layout
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Aug 18, 2024
1 parent 2981bf3 commit 0dcdf87
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/qibocal/protocols/rabi/length_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from qibolab import AcquisitionType, AveragingMode, ExecutionParameters
from qibolab.platform import Platform
from qibolab.qubits import QubitId
from qibolab.result import magnitude, phase
from qibolab.sweeper import Parameter, Sweeper, SweeperType

from qibocal import update
Expand Down Expand Up @@ -89,26 +90,26 @@ def _acquisition(
data = RabiLengthSignalData(amplitudes=amplitudes)

# execute the sweep
results = platform.sweep(
sequence,
results = platform.execute(
[sequence],
ExecutionParameters(
nshots=params.nshots,
relaxation_time=params.relaxation_time,
acquisition_type=AcquisitionType.INTEGRATION,
averaging_mode=AveragingMode.CYCLIC,
),
sweeper,
[[sweeper]],
)

for q in targets:
result = results[ro_pulses[q].id]
result = results[ro_pulses[q].id][0]
data.register_qubit(
RabiLenSignalType,
(q),
dict(
length=qd_pulse_duration_range,
signal=result.magnitude,
phase=result.phase,
signal=magnitude(result),
phase=phase(result),
),
)
return data
Expand Down

0 comments on commit 0dcdf87

Please sign in to comment.