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 Dec 4, 2024
1 parent 6d4c6fe commit 22c1578
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 @@ -83,9 +83,7 @@ def channel(qubit: str, type_: str, gate: Optional[str] = None) -> str:
else (
"acquisition"
if type_ == "ro"
else "drive12"
if gate == "RX12"
else "drive"
else "drive12" if gate == "RX12" else "drive"
)
)
)
Expand Down Expand Up @@ -148,9 +146,7 @@ def pulse_like(o: dict, rescale: float) -> dict:
return (
acquisition(o, rescale)
if o["type"] == "ro"
else virtualz(o)
if o["type"] == "virtual_z"
else pulse(o, rescale)
else virtualz(o) if o["type"] == "virtual_z" else pulse(o, rescale)
)


Expand Down

0 comments on commit 22c1578

Please sign in to comment.