Skip to content

Commit

Permalink
Update update.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ElStabilini authored Nov 25, 2024
1 parent 4dbcc34 commit 3427756
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qibocal/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@ def drive_frequency(


def drive_amplitude(
amp: Union[float, tuple, list], pi_half: bool, platform: Platform, qubit: QubitId
amp: Union[float, tuple, list], rx90: bool, platform: Platform, qubit: QubitId
):
"""Update drive frequency value in platform for specific qubit."""
if isinstance(amp, Iterable):
amp = amp[0]
if pi_half:
if rx90:
platform.update({f"native_gates.single_qubit.{qubit}.RX90.0.1.amplitude": amp})
else:
platform.update({f"native_gates.single_qubit.{qubit}.RX.0.1.amplitude": amp})


def drive_duration(
duration: Union[int, tuple, list], pi_half: bool, platform: Platform, qubit: QubitId
duration: Union[int, tuple, list], rx90: bool, platform: Platform, qubit: QubitId
):
"""Update drive duration value in platform for specific qubit."""
if isinstance(duration, Iterable):
duration = duration[0]
if pi_half:
if rx90:
platform.update(
{f"native_gates.single_qubit.{qubit}.RX90.0.1.duration": int(duration)}
)
Expand Down

0 comments on commit 3427756

Please sign in to comment.