From 2812daf8872142bd726fba448bff4587cb05efe6 Mon Sep 17 00:00:00 2001 From: Will Zeng Date: Wed, 1 Jan 2025 14:29:19 -0500 Subject: [PATCH 1/4] fix small_test.sh CLI command to deal with spaces in paths --- benchmarks/scripts/small_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/scripts/small_test.sh b/benchmarks/scripts/small_test.sh index 0ca79e95..6a7d88ba 100755 --- a/benchmarks/scripts/small_test.sh +++ b/benchmarks/scripts/small_test.sh @@ -7,6 +7,6 @@ mkdir -p "$RESULTS_FOLDER" QASM_FOLDER="$SCRIPT_DIR/../qasm_circuits/" full_qasm_file="$QASM_FOLDER/$QASM_FILE" -command="python3 $SCRIPT_DIR/benchmark_script.py \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" +command="python3 \"$SCRIPT_DIR/benchmark_script.py\" \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" eval $command \ No newline at end of file From c190e399a46bd2d2aa6e1e905314f73ce35cc4e3 Mon Sep 17 00:00:00 2001 From: Will Zeng Date: Wed, 1 Jan 2025 14:32:40 -0500 Subject: [PATCH 2/4] fix the target python version --- benchmarks/scripts/small_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/scripts/small_test.sh b/benchmarks/scripts/small_test.sh index 6a7d88ba..fb874caf 100755 --- a/benchmarks/scripts/small_test.sh +++ b/benchmarks/scripts/small_test.sh @@ -7,6 +7,6 @@ mkdir -p "$RESULTS_FOLDER" QASM_FOLDER="$SCRIPT_DIR/../qasm_circuits/" full_qasm_file="$QASM_FOLDER/$QASM_FILE" -command="python3 \"$SCRIPT_DIR/benchmark_script.py\" \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" +command="python3.12 -m pdb \"$SCRIPT_DIR/benchmark_script.py\" \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" eval $command \ No newline at end of file From 19a6495c7d62366b8c7640d0c694ec2ae55b7126 Mon Sep 17 00:00:00 2001 From: Will Zeng Date: Wed, 1 Jan 2025 14:35:45 -0500 Subject: [PATCH 3/4] remove pdb --- benchmarks/scripts/small_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/scripts/small_test.sh b/benchmarks/scripts/small_test.sh index fb874caf..2d26dca0 100755 --- a/benchmarks/scripts/small_test.sh +++ b/benchmarks/scripts/small_test.sh @@ -7,6 +7,6 @@ mkdir -p "$RESULTS_FOLDER" QASM_FOLDER="$SCRIPT_DIR/../qasm_circuits/" full_qasm_file="$QASM_FOLDER/$QASM_FILE" -command="python3.12 -m pdb \"$SCRIPT_DIR/benchmark_script.py\" \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" +command="python3.12 \"$SCRIPT_DIR/benchmark_script.py\" \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" eval $command \ No newline at end of file From 2c76206dc0b1a67c1069ab557a1bfa92eaae3183 Mon Sep 17 00:00:00 2001 From: Will Zeng Date: Thu, 2 Jan 2025 14:37:17 -0500 Subject: [PATCH 4/4] Update benchmarks/scripts/small_test.sh --- benchmarks/scripts/small_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/scripts/small_test.sh b/benchmarks/scripts/small_test.sh index 2d26dca0..6a7d88ba 100755 --- a/benchmarks/scripts/small_test.sh +++ b/benchmarks/scripts/small_test.sh @@ -7,6 +7,6 @@ mkdir -p "$RESULTS_FOLDER" QASM_FOLDER="$SCRIPT_DIR/../qasm_circuits/" full_qasm_file="$QASM_FOLDER/$QASM_FILE" -command="python3.12 \"$SCRIPT_DIR/benchmark_script.py\" \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" +command="python3 \"$SCRIPT_DIR/benchmark_script.py\" \"$full_qasm_file\" \"$COMPILER\" \"$RESULTS_FOLDER\"" eval $command \ No newline at end of file