-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_save_bp4.sh
executable file
·51 lines (43 loc) · 1.3 KB
/
run_save_bp4.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#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
make bp_decoding4.out
stabilizer_folder=data/toric/stabilizer
error_folder=data/toric/bp_decoding4
#error_folder=data/toric/temp
#test fold
#size=13
#for size in {5,7,9,11,13}
for size in {13,11,9,7,5}
#for size in 5
do
echo start run_save_bp.sh for size ${size}
date
for i in {100..5000..100}
#for i in {2000..2000..100}
do
#add G matrix on Dec 14
./bp_decoding4.out ${stabilizer_folder}/toric_S_x_size_${size}.mm ${stabilizer_folder}/toric_S_z_size_${size}.mm ${error_folder}/toric_S_size_${size}.mm_rate $i &
echo $i
num_process=`pgrep -c decoding`
while (( num_process > 15 ))
do
sleep 1
num_process=`pgrep -c decoding`
done
done
#wait
echo start \(finish\) bp_decoding 10000 cycle for size ${size} x ${size} when p is \in 100,000 division. All error saved
date
done
wait
date
echo 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 &