-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32148f1
commit 2a6d056
Showing
8 changed files
with
60 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters