]> foleosoft.com Git - QAnsel.git/commitdiff
Mon Mar 4 05:41:36 PM EST 2024
authormiha-q <>
Mon, 4 Mar 2024 22:41:36 +0000 (17:41 -0500)
committermiha-q <>
Mon, 4 Mar 2024 22:41:36 +0000 (17:41 -0500)
src/QAnsel.c

index f48de21df6c9de51826b36f9f027a1a976d906e3..16ba521055977496c422c2b1074fa754a5b5d627 100644 (file)
@@ -473,6 +473,7 @@ void qansel_run(unsigned char qubitCount, unsigned char bitCount, QInstr* instr,
                }
                else if (strcmp(instr[i].n, "born_all") == 0)
                {
+                       printf("A\n");
                        for (unsigned int j = 0; j < qubitCountPow2; j++)
                        {
                                unsigned int tmp = j;
@@ -485,6 +486,7 @@ void qansel_run(unsigned char qubitCount, unsigned char bitCount, QInstr* instr,
                                cpx_mtx_get(&stateVector, 0, j, &n);
                                printf(": %.1f%%\n", cpx_magsqr(&n) * 100);
                        }
+                       printf("B\n");
                }
                else if (strcmp(instr[i].n, "born") == 0)
                {