From fcafb4c68cd49810a388af57b503904babdc28c8 Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Fri, 5 Apr 2024 23:09:44 -0400 Subject: [PATCH] fix bug. --- src/bloqade/task/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bloqade/task/base.py b/src/bloqade/task/base.py index 275f74c01..420a4e90d 100644 --- a/src/bloqade/task/base.py +++ b/src/bloqade/task/base.py @@ -226,7 +226,7 @@ def generate_counts(bitstring): output = np.unique(bitstring, axis=0, return_counts=True) count_list = [ - ("".join(map(str, bitstring)), count) + ("".join(map(str, bitstring)), int(count)) for bitstring, count in zip(*output) ] count_list.sort(key=lambda x: x[1], reverse=True)