X-Git-Url: https://s3miclassical.com/gitweb/?p=strong_simulation_stabilizer_rank.git;a=blobdiff_plain;f=test2.bash;fp=test2.bash;h=281422b6fec9ef69fab18fc533e0f798661403c5;hp=d5ed86872e9cfaf23aa5387bb0b4535051c1e0e0;hb=2bcc6f0ade1d894dcb6fd0122911fdd41fe459a6;hpb=e282276117f62e7dd30e148e5649920783725cb8 diff --git a/test2.bash b/test2.bash index d5ed868..281422b 100644 --- a/test2.bash +++ b/test2.bash @@ -26,7 +26,7 @@ do sleep 1; a=$(stdbuf -oL ./randominputcommutingHermitianPauli2 $numqubits $numTgates $numPaulis > inputPauli.txt && ./strongsim_relerr $numsamples < inputPauli.txt | tail -1) b=$(stdbuf -oL ./multipauli < inputPauli.txt | tail -n1) are=$(echo "$a" | cut -f 1 -d " " | cut -c 1-5); -aim=$(echo "$a" | cut -f 3 -d " " | cut -c 1-5); aimsign=$(echo $a | cut -f 2 -d " "); bimsign=$(echo $a | cut -f 2 -d " "); +aim=$(echo "$a" | cut -f 3 -d " " | cut -c 1-5); aimsign=$(echo $a | cut -f 2 -d " "); bimsign=$(echo $b | cut -f 2 -d " "); bre=$(echo "$b" | cut -f 1 -d " " | cut -c 1-5); bim=$(echo "$b" | cut -f 3 -d " " | cut -c 1-5); echo "$i: $are $aimsign $aim and $bre $bimsign $bim" rediff=$( printf 'sqrt((%f - %f)^2)\n' "$are" "$bre" | bc -l )