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 Nov 14, 2024
1 parent adb56fa commit 2730ce1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ def channel(qubit: str, type_: str) -> str:
kind = (
"flux"
if type_ == "qf" or type_ == "coupler"
else "acquisition"
if type_ == "ro"
else "drive"
else "acquisition" if type_ == "ro" else "drive"
)
element = qubit if type_ != "coupler" else f"coupler_{qubit}"
return f"{element}/{kind}"
Expand Down Expand Up @@ -118,9 +116,7 @@ def pulse_like(o: dict) -> dict:
return (
acquisition(o)
if o["type"] == "ro"
else virtualz(o)
if o["type"] == "virtual_z"
else pulse(o)
else virtualz(o) if o["type"] == "virtual_z" else pulse(o)
)


Expand Down

0 comments on commit 2730ce1

Please sign in to comment.