Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 31, 2025
1 parent f631fcf commit 22fe9e3
Showing 1 changed file with 24 additions and 28 deletions.
52 changes: 24 additions & 28 deletions src/qibolab/instruments/emulator/pulse_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,13 +506,12 @@ def channel_translator(platform_channel_name, frequency):
pulse, sampling_rate, sim_sampling_boost
)
times_list.append(t)
"""
if pulse.type.value == "qd":
platform_channel_name = f"drive-{qubit}"
elif pulse.type.value == "ro":
platform_channel_name = f"readout-{qubit}"
elif pulse.type.value == "qf":
platform_channel_name = f"flux-{qubit}"
"""If pulse.type.value == "qd":
platform_channel_name = f"drive-{qubit}" elif
pulse.type.value == "ro": platform_channel_name
= f"readout-{qubit}" elif pulse.type.value == "qf":
platform_channel_name = f"flux-{qubit}"
"""

signals_list.append(pulse_signal)
Expand All @@ -534,13 +533,12 @@ def channel_translator(platform_channel_name, frequency):
)
times_list.append(t)
signals_list.append(pulse_signal)
"""
if pulse.type.value == "cf":
platform_channel_name = f"flux-c{coupler}"
elif (
pulse.type.value == "cd"
): # when drive pulse for couplers are available
platform_channel_name = f"drive-{coupler}"
"""If pulse.type.value == "cf": platform_channel_name =
f"flux-c{coupler}" elif (
pulse.type.value == "cd" ): # when drive pulse
for couplers are available platform_channel_name
= f"drive-{coupler}"
"""

emulator_channel_name_list.append(
Expand Down Expand Up @@ -570,13 +568,12 @@ def channel_translator(platform_channel_name, frequency):
)
times_list.append(t)
signals_list.append(pulse_signal)
"""
if pulse.type.value == "qd":
platform_channel_name = f"drive-{qubit}"
elif pulse.type.value == "ro":
platform_channel_name = f"readout-{qubit}"
elif pulse.type.value == "qf":
platform_channel_name = f"flux-{qubit}"
"""If pulse.type.value == "qd":
platform_channel_name = f"drive-{qubit}" elif
pulse.type.value == "ro": platform_channel_name
= f"readout-{qubit}" elif pulse.type.value == "qf":
platform_channel_name = f"flux-{qubit}"
"""

emulator_channel_name_list.append(
Expand All @@ -596,13 +593,12 @@ def channel_translator(platform_channel_name, frequency):
)
times_list.append(t)
signals_list.append(pulse_signal)
"""
if pulse.type.value == "cf":
platform_channel_name = f"flux-c{coupler}"
elif (
pulse.type.value == "cd"
): # when drive pulse for couplers are available
platform_channel_name = f"drive-c{coupler}"
"""If pulse.type.value == "cf": platform_channel_name =
f"flux-c{coupler}" elif (
pulse.type.value == "cd" ): # when drive pulse
for couplers are available platform_channel_name
= f"drive-c{coupler}"
"""

emulator_channel_name_list.append(
Expand Down

0 comments on commit 22fe9e3

Please sign in to comment.