From de5e3f8c4835db3704403c5b8f9f98cb3b03635c Mon Sep 17 00:00:00 2001 From: Dennis Williamson <6640557+dtwilliamson@users.noreply.github.com> Date: Fri, 7 Jul 2023 22:03:15 -0500 Subject: [PATCH] changed to replicate behaviour caused by issue #9 if that issue is fixed, chain() can be removed --- qc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qc.py b/qc.py index 57b8fd2..88009d0 100644 --- a/qc.py +++ b/qc.py @@ -109,11 +109,9 @@ def statevcector_normalization(): def results(): print("results:") graphchar = '\N{Black Circle}' - b = 0 # evens then odds for n in chain(range(0, qc.COUNT, 2), range(1, qc.COUNT, 2)): - print(f'{b:02b}: [{qc.z[n]}] {qc.z[n] * graphchar}') - b += 1 + print(f'{n:02b}: [{qc.z[n]}] {qc.z[n] * graphchar}') def main(): shots = 28