projects
/
strong_simulation_gauss_sum_rank.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a9ef80
)
added friendly printout of number of test runs to be performed in test script
author
Lucas K
<lkocia@s3miclassical.com>
Tue, 22 Dec 2020 20:15:31 +0000
(12:15 -0800)
committer
Lucas K
<lkocia@s3miclassical.com>
Tue, 22 Dec 2020 20:15:31 +0000
(12:15 -0800)
test.bash
patch
|
blob
|
history
diff --git
a/test.bash
b/test.bash
index 3e5d698c6c609db0d32fa6be1c6b758fb288d0c6..5c6ab720b91aa4850c19623c872a4a31b361d370 100644
(file)
--- a/
test.bash
+++ b/
test.bash
@@
-12,8
+12,9
@@
numTgates=4
numPaulis=1 # we want numPaulis to be 1 for the loop below
-numruns=
100
0
+numruns=
2
0
+echo "Starting test of $numruns random Pauli expectation values..."
for i in $(seq 1 $numruns)
do
sleep 1;a=$(stdbuf -oL ./randommultipleinputPaulis $numqubits $numTgates $numPaulis > inputPaulis.txt && $gausssumcode < inputPaulis.txt | tail -1)
@@
-27,3
+28,4
@@
do
break
fi
done
+echo "Test passed!"