From babb8329bb315ec5810680b51e6ae38190d9ad7c Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Thu, 15 Aug 2024 20:05:35 -0400 Subject: [PATCH] Thu Aug 15 08:05:35 PM EDT 2024 --- src/bytecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5