From 22c157875b413b59d52ca7294f620f0181b53adc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:05:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- convert.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/convert.py b/convert.py index f677b248..53bc9d41 100644 --- a/convert.py +++ b/convert.py @@ -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" ) ) ) @@ -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) )