Skip to content

Commit

Permalink
[refactor] Move scripts to scripts folder (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
xumingkuan authored Dec 20, 2023
1 parent 52d5b74 commit ad1b79d
Show file tree
Hide file tree
Showing 21 changed files with 17 additions and 15 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions gen_ecc_set.sh → scripts/gen_ecc_set.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cd ..
mkdir -p build
cd build
cmake ..
Expand Down
2 changes: 1 addition & 1 deletion run_ibmq.sh → scripts/run_ibmq.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_ibmq
mkdir -p ../circuit/nam-benchmarks/output_files/ibmq
if [ $# -eq 0 ]
Expand Down
2 changes: 1 addition & 1 deletion run_ibmq_disable_search.sh → scripts/run_ibmq_disable_search.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_ibmq
mkdir -p ../circuit/nam-benchmarks/output_files/ibmq
if [ $# -eq 0 ]
Expand Down
2 changes: 1 addition & 1 deletion run_ibmq_td_disabled.sh → scripts/run_ibmq_td_disabled.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_ibmq_td_disabled
mkdir -p ../circuit/nam-benchmarks/output_files/ibmq/log
./test_ibmq_td_disabled ../circuit/nam-benchmarks/qcla_mod_7.qasm --output ../circuit/nam-benchmarks/output_files/ibmq/qcla_mod_7.qasm.output.ibmq.disable_td > ../circuit/nam-benchmarks/output_files/ibmq/log/qcla_mod_7.log &
Expand Down
2 changes: 1 addition & 1 deletion run_ionq.sh → scripts/run_ionq.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

cd src/test
cd ../src/test

python test_ionq.py dj_nativegates_ionq_qiskit_opt0_10_norm ../../ionq_output & sleep 60
python test_ionq.py ghz_nativegates_ionq_qiskit_opt0_10_norm ../../ionq_output & sleep 60
Expand Down
2 changes: 1 addition & 1 deletion run_nam.sh → scripts/run_nam.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_nam
mkdir -p ../circuit/nam-benchmarks/output_files/nam
if [ $# -eq 0 ]
Expand Down
2 changes: 1 addition & 1 deletion run_nam_disable_search.sh → scripts/run_nam_disable_search.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_nam
mkdir -p ../circuit/nam-benchmarks/output_files/nam
if [ $# -eq 0 ]
Expand Down
2 changes: 1 addition & 1 deletion run_nam_rm.sh → scripts/run_nam_rm.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

cd src/test
cd ../src/test

python test_nam_rm.py adder_8 ../../nam_rm_output & sleep 60
python test_nam_rm.py barenco_tof_3 ../../nam_rm_output & sleep 60
Expand Down
2 changes: 1 addition & 1 deletion run_nam_td_disabled.sh → scripts/run_nam_td_disabled.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_nam_td_disabled
mkdir -p ../circuit/nam-benchmarks/output_files/nam/log
./test_nam_td_disabled ../circuit/nam-benchmarks/qcla_mod_7.qasm --output ../circuit/nam-benchmarks/output_files/nam/qcla_mod_7.qasm.output.nam.disable_td > ../circuit/nam-benchmarks/output_files/nam/log/qcla_mod_7.log &
Expand Down
2 changes: 1 addition & 1 deletion run_nam_worm.sh → scripts/run_nam_worm.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

cd src/test
cd ../src/test

python test_nam_worm.py adder_8 ../../nam_worm_output & sleep 60
python test_nam_worm.py barenco_tof_3 ../../nam_worm_output & sleep 60
Expand Down
2 changes: 1 addition & 1 deletion run_rigetti.sh → scripts/run_rigetti.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_rigetti
if [ $# -eq 0 ]
then
Expand Down
2 changes: 1 addition & 1 deletion run_rigetti_disable_search.sh → scripts/run_rigetti_disable_search.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_rigetti
mkdir -p ../circuit/nam-benchmarks/output_files/rigetti
if [ $# -eq 0 ]
Expand Down
2 changes: 1 addition & 1 deletion run_rigetti_new.sh → scripts/run_rigetti_new.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

cd src/test
cd ../src/test

python test_rigetti.py dj_nativegates_rigetti_qiskit_opt0_10_norm ../../rigetti_norm_output & sleep 60
python test_rigetti.py ghz_nativegates_rigetti_qiskit_opt0_10_norm ../../rigetti_norm_output & sleep 60
Expand Down
2 changes: 1 addition & 1 deletion run_rigetti_td_disabled.sh → scripts/run_rigetti_td_disabled.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/sh
cd build
cd ../build
make test_rigetti_td_disabled
mkdir -p ../circuit/nam-benchmarks/output_files/rigetti
./test_rigetti_td_disabled ../circuit/nam-benchmarks/adder_8.qasm --output ../circuit/nam-benchmarks/output_files/rigetti/adder_8.qasm.output.rigetti &
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion run_t_tdg_rm.sh → scripts/run_t_tdg_rm.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd src/test
cd ../src/test

python test_t_tdg_rm.py adder_8 ../../t_tdg_rm_output & sleep 10
python test_t_tdg_rm.py barenco_tof_3 ../../t_tdg_rm_output & sleep 10
Expand Down
2 changes: 1 addition & 1 deletion run_t_tdg_worm.sh → scripts/run_t_tdg_worm.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd src/test
cd ../src/test

python test_t_tdg_worm.py adder_8 ../../t_tdg_worm_output & sleep 1200
python test_t_tdg_worm.py barenco_tof_3 ../../t_tdg_worm_output & sleep 1200
Expand Down
1 change: 1 addition & 0 deletions run_table2.sh → scripts/run_table2.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cd ..
mkdir -p build
cd build
cmake ..
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ad1b79d

Please sign in to comment.