From 70a648f259669f1d280d768b9ccfe45d12f32d24 Mon Sep 17 00:00:00 2001 From: Weilei Zeng at qlab01 Date: Fri, 26 Apr 2024 17:43:01 +0800 Subject: [PATCH] minor update 2 --- pymatching/toric.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pymatching/toric.py b/pymatching/toric.py index 0a41671..7075b46 100644 --- a/pymatching/toric.py +++ b/pymatching/toric.py @@ -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) @@ -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)