From: server Date: Sun, 11 Feb 2024 22:59:54 +0000 (-0500) Subject: Sun Feb 11 05:59:54 PM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=474e37636309cbb593fa9c42ad17a487bd424409;p=QAnsel.git Sun Feb 11 05:59:54 PM EST 2024 --- diff --git a/examples/belltest.sh b/examples/belltest.sh deleted file mode 100644 index c0efe05..0000000 --- a/examples/belltest.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -trials=1000 -cwins=0 -qwins=0 -for i in $(seq 1 $trials) -do - clear - echo "$(( (100 * i) / trials ))%" - - resultsC="$(../bin/QAnsel < belltest_c.txt | xargs | sed 's/ //g')" - resultsQ="$(../bin/QAnsel < belltest_q.txt | xargs | sed 's/ //g')" - if [ "$resultsQ" == "1111" ] - then - qwins=$((qwins+1)) - fi - if [ "$resultsC" == "1111" ] - then - cwins=$((cwins+1)) - fi - -done -clear - -echo "Classical Strategy: $cwins points" -echo "Quantum Strategy: $qwins points"