Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
change syntax
  • Loading branch information
ElStabilini authored Dec 6, 2024
1 parent 23ee280 commit 01a4d1a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/qibocal/protocols/rabi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,7 @@ def sequence_amplitude(
for q in targets:
natives = platform.natives.single_qubit[q]

if rx90:
qd_channel, qd_pulse = natives.RX90()[0]
else:
qd_channel, qd_pulse = natives.RX()[0]

qd_channel, qd_pulse = natives.RX90()[0] if rx90 else natives.RX()[0]
ro_channel, ro_pulse = natives.MZ()[0]

if params.pulse_length is not None:
Expand Down Expand Up @@ -283,11 +279,7 @@ def sequence_length(
for q in targets:
natives = platform.natives.single_qubit[q]

if rx90:
qd_channel, qd_pulse = natives.RX90()[0]
else:
qd_channel, qd_pulse = natives.RX()[0]

qd_channel, qd_pulse = natives.RX90()[0] if rx90 else natives.RX()[0]
ro_channel, ro_pulse = natives.MZ()[0]

if params.pulse_amplitude is not None:
Expand Down

0 comments on commit 01a4d1a

Please sign in to comment.