Skip to content

Commit

Permalink
feat: updates for Rabi routines
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Oct 11, 2024
1 parent e033aa5 commit 9cc8b00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/qibocal/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ def drive_amplitude(amp: Union[float, tuple, list], platform: Platform, qubit: Q
"""Update drive frequency value in platform for specific qubit."""
if isinstance(amp, Iterable):
amp = amp[0]
# platform.natives.single_qubit[qubit].RX.amplitude = float(amp)
channel, pulse = platform.natives.single_qubit[qubit].RX[0]
new_pulse = replace(pulse, amplitude=amp)
platform.natives.single_qubit[qubit].RX[0] = (channel, new_pulse)


def drive_duration(
Expand All @@ -67,7 +69,9 @@ def drive_duration(
"""Update drive duration value in platform for specific qubit."""
if isinstance(duration, Iterable):
duration = duration[0]
# platform.natives.single_qubit[qubit].RX.duration = int(duration)
channel, pulse = platform.natives.single_qubit[qubit].RX[0]
new_pulse = replace(pulse, duration=duration)
platform.natives.single_qubit[qubit].RX[0] = (channel, new_pulse)


def crosstalk_matrix(
Expand Down

0 comments on commit 9cc8b00

Please sign in to comment.