From: miha-q <> Date: Fri, 16 Aug 2024 00:05:35 +0000 (-0400) Subject: Thu Aug 15 08:05:35 PM EDT 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=babb8329bb315ec5810680b51e6ae38190d9ad7c;p=QAnsel.git Thu Aug 15 08:05:35 PM EDT 2024 --- diff --git a/src/bytecode.c b/src/bytecode.c index e9b9552..44186a1 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -769,7 +769,7 @@ void qansel_born(QAnselContext* ctx, cpx_mtx_t* stateVector, int PC, int qubitCo for (unsigned int j = 0; j < qubitCountPow2; j++) { //printf("%f >= %f\n", psisquared_sorted[j], r); - if (psisquared_sorted[j] >= r) + if (psisquared_sorted[j] >= (r - 0.00001)) { stats[j]++; //printf("%i _/\n", j);