Skip to content

Commit

Permalink
minor update 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilei Zeng at qlab01 committed Apr 26, 2024
1 parent f95ec24 commit 70a648f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pymatching/toric.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
filename="toric-trials{}-errors{}.json".format(NUM_TRIALS,NUM_ERRORS_MAX)
#filename='tmp.json'

Ls = range(9,21,1) #change from 8 to 9
#Ls = range(8,21,1) #change from 8 to 9
Ls = range(8,21,1)
print("Ls=",Ls)
#ps = np.linspace(0.01, 0.2, 9)
#ps = np.linspace(0.03, 0.15, 5)
Expand Down Expand Up @@ -220,7 +219,7 @@ def main():
#save simulation result into json file
#dictionary={L:{'p_qubit':ps.tolist(),'p_block':logical_errors.tolist()} for L, logical_errors in zip(Ls, log_errors_all_L)}
dictionary={L:{'p_qubit':ps,'p_block':logical_errors} for L, logical_errors in zip(Ls, log_errors_all_L)}

#should save parameters here
# Serializing json
json_object = json.dumps(dictionary, indent=4)
#print(json_object)
Expand Down

0 comments on commit 70a648f

Please sign in to comment.