Skip to content

Commit

Permalink
Update ia.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell committed Apr 23, 2021
1 parent e52c508 commit 288a8a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantronauts/ia.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def qram(qc):
job = execute(qc, backend_sim, shots=512, memory=True)
result_job = job.result().get_counts()
result_memory = job.result().get_memory()
print("Memory ", result_memory)
#print("Memory ", result_memory)
if len(result_job) == 1:
to_return = int(result_memory[0], 2)
print("Return : ", to_return)
#print("Return : ", to_return)
else:
to_return = 4

Expand Down

0 comments on commit 288a8a2

Please sign in to comment.