From 2730ce1a393219e10e00e9988bb0289f862d40ab 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:09:03 +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 a15f3b81..faa26c00 100644 --- a/convert.py +++ b/convert.py @@ -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}" @@ -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) )