-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_save_bp.sh
More file actions
35 lines (27 loc) · 997 Bytes
/
run_save_bp.sh
File metadata and controls
35 lines (27 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#runs bp_decoding3.out and save all the input and output errors
#try bp decoding for toric code with different size, 5,9,25,35
#added size 7,11,13
#p=0.1% to 5%
#100,000 division, 2000 means 2%
#time estimation
#size 9: 65 sec
#size 11: 100 sec
#size 13: 160 sec
stabilizer_folder=data/toric/stabilizer
error_folder=data/toric/bp_decoding
#size=13
for size in {5,7,9,11,13}
do
echo start run_save_bp.sh for size ${size}
date
for i in {100..5000..100}
#for i in {2000..2000..100}
do
./bp_decoding3.out ${stabilizer_folder}/toric_S_z_size_${size}.mm ${error_folder}/toric_S_size_${size}.mm_rate $i &
done
wait
echo finish bp_decoding 10000 cycle for size ${size} x ${size} when p is \in 100,000 division. All error saved
date
done
#echo finish bp_decoding 10000 cycle for size ${size} x ${size} when p is \in 100,000 division. All error saved>> data/toric/bp_converge3/bp_decoding.log &
#date >> data/toric/bp_converge3/bp_decoding.log &