Skip to content

Commit

Permalink
changed to replicate behaviour caused by issue dakk#9
Browse files Browse the repository at this point in the history
if that issue is fixed, chain() can be removed
  • Loading branch information
dtwilliamson committed Jul 8, 2023
1 parent 9123beb commit de5e3f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de5e3f8

Please sign in to comment.