From 68ba35d68467f095ee44a44b9439deb9bdb385de Mon Sep 17 00:00:00 2001 From: Albert Mitjans Date: Mon, 2 Oct 2023 17:56:47 +0200 Subject: [PATCH] Fix counts. (#547) --- src/qililab/result/qblox_results/qblox_bins_acquisitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qililab/result/qblox_results/qblox_bins_acquisitions.py b/src/qililab/result/qblox_results/qblox_bins_acquisitions.py index c463d3375..d3cc2334b 100644 --- a/src/qililab/result/qblox_results/qblox_bins_acquisitions.py +++ b/src/qililab/result/qblox_results/qblox_bins_acquisitions.py @@ -65,7 +65,7 @@ def counts(self) -> Counts: for bin_idx in range(num_bins): # The threshold inside of a qblox bin is the name they use for already classified data as a value between # 0 and 1, not the value used in the comparator to perform such classification. - measurement_as_list = [bins_data.threshold[bin_idx] for bins_data in self.bins] + measurement_as_list = [int(bins_data.threshold[bin_idx]) for bins_data in self.bins] measurement = "".join(str(bit) for bit in measurement_as_list) counts_object.add_measurement(state=measurement) return counts_object