diff --git a/convert.py b/convert.py index 19354966..a7a7986d 100644 --- a/convert.py +++ b/convert.py @@ -123,9 +123,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" ) ) ) @@ -184,9 +182,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) ) @@ -283,9 +279,11 @@ def two_qubits_cal(o: dict) -> dict: def upgrade_cal(o: dict) -> dict: return { "single_qubits": single_qubits_cal(o["characterization"]["single_qubit"]), - "two_qubits": two_qubits_cal(o["characterization"]["two_qubit"]) - if "two_qubit" in o["characterization"] - else {}, + "two_qubits": ( + two_qubits_cal(o["characterization"]["two_qubit"]) + if "two_qubit" in o["characterization"] + else {} + ), }