Skip to content

Commit

Permalink
Fix counts. (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertMitjans authored Oct 2, 2023
1 parent a4e7d55 commit 68ba35d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68ba35d

Please sign in to comment.