From 171981d0a590910149dab9f471e8afe683a06327 Mon Sep 17 00:00:00 2001 From: miha-q <> Date: Thu, 15 Aug 2024 20:02:32 -0400 Subject: [PATCH] Thu Aug 15 08:02:32 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 76635db..6ab91e9 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -778,7 +778,7 @@ void qansel_born(QAnselContext* ctx, cpx_mtx_t* stateVector, int PC, int qubitCo r -= psisquared_sorted[j]; if (j == qubitCountPow2 - 1) { - while (psisquared_sorted[j] <= 0) j--; + while (psisquared_sorted[j] == 0) j--; stats[j]++; //printf("%i _/\n", j); } -- 2.39.5