From dd403af656c602c5c610a24932ce2b45cc282b34 Mon Sep 17 00:00:00 2001 From: Stavros Efthymiou <35475381+stavros11@users.noreply.github.com> Date: Fri, 17 Jan 2025 17:08:40 +0400 Subject: [PATCH] chore: change `elif` to `if` Co-authored-by: Alessandro Candido --- src/qibolab/_core/instruments/qm/program/instructions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibolab/_core/instruments/qm/program/instructions.py b/src/qibolab/_core/instruments/qm/program/instructions.py index 068da62cd..41f332bfb 100644 --- a/src/qibolab/_core/instruments/qm/program/instructions.py +++ b/src/qibolab/_core/instruments/qm/program/instructions.py @@ -150,7 +150,7 @@ def _qua_for_loop(variables: list[Variable], values: list[npt.NDArray]): if len(array) == 0: raise ValueError("Sweeper values must have length > 0.") - elif len(array) == 1: + if len(array) == 1: return for_(var, array[0], var <= array[0], var + 1) if not isinstance(var, Variable):