From 68f676f96732c0303636465380bbdc0deeff76b7 Mon Sep 17 00:00:00 2001 From: Edoardo-Pedicillo Date: Mon, 21 Aug 2023 17:46:30 +0400 Subject: [PATCH 1/3] change value considering errors --- src/qibolab/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibolab/platform.py b/src/qibolab/platform.py index bccb50b13..f80aee67f 100644 --- a/src/qibolab/platform.py +++ b/src/qibolab/platform.py @@ -139,7 +139,7 @@ def update(self, updates: dict): # qubit_spectroscopy / qubit_spectroscopy_flux / ramsey elif par == "drive_frequency": - freq = int(value * 1e9) + freq = int(value[0] * 1e9) self.qubits[qubit].native_gates.RX.frequency = freq self.qubits[qubit].drive_frequency = freq From 86b58691a96d046ddf475301cd714c9c8c64941d Mon Sep 17 00:00:00 2001 From: Edoardo-Pedicillo Date: Mon, 11 Sep 2023 14:11:35 +0400 Subject: [PATCH 2/3] fix bug --- src/qibolab/platform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qibolab/platform.py b/src/qibolab/platform.py index f80aee67f..c569b0a7b 100644 --- a/src/qibolab/platform.py +++ b/src/qibolab/platform.py @@ -139,7 +139,10 @@ def update(self, updates: dict): # qubit_spectroscopy / qubit_spectroscopy_flux / ramsey elif par == "drive_frequency": - freq = int(value[0] * 1e9) + if isinstance(value, tuple): #TODO: remove this branching after error bars propagation + freq = int(value[0] * 1e9) + else: + freq = int(value*1e9) self.qubits[qubit].native_gates.RX.frequency = freq self.qubits[qubit].drive_frequency = freq From 32754e538e33ff74889210ded90e7b93d4c579e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:13:34 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/qibolab/platform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qibolab/platform.py b/src/qibolab/platform.py index c569b0a7b..3b6ae44c5 100644 --- a/src/qibolab/platform.py +++ b/src/qibolab/platform.py @@ -139,10 +139,10 @@ def update(self, updates: dict): # qubit_spectroscopy / qubit_spectroscopy_flux / ramsey elif par == "drive_frequency": - if isinstance(value, tuple): #TODO: remove this branching after error bars propagation + if isinstance(value, tuple): # TODO: remove this branching after error bars propagation freq = int(value[0] * 1e9) else: - freq = int(value*1e9) + freq = int(value * 1e9) self.qubits[qubit].native_gates.RX.frequency = freq self.qubits[qubit].drive_frequency = freq