From 5c8003eb8570e1b21b97c9f5716bf11fc4591890 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:23:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- convert.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/convert.py b/convert.py index 3bf51cae..5aaac7a5 100644 --- a/convert.py +++ b/convert.py @@ -60,13 +60,15 @@ def channel(qubit: str, type_: str, gate: Optional[str] = None) -> str: kind = ( "flux" if type_ == "qf" or type_ == "coupler" - else "probe" - if gate == "MZ" - else "acquisition" - if type_ == "ro" - else "drive12" - if gate == "RX12" - else "drive" + else ( + "probe" + if gate == "MZ" + else ( + "acquisition" + if type_ == "ro" + else "drive12" if gate == "RX12" else "drive" + ) + ) ) element = qubit if type_ != "coupler" else f"coupler_{qubit}" return f"{element}/{kind}" @@ -123,9 +125,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) )