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

index 16ba521055977496c422c2b1074fa754a5b5d627..5663b991240649086ebb153e1ca11e3d569bd969 100644 (file)
@@ -349,6 +349,7 @@ void qansel_run(unsigned char qubitCount, unsigned char bitCount, QInstr* instr,
 
        for (unsigned int i = 0; i < instrLen; i++)
        {
+               printf("%i: %lu\n", i, get_time());
                cpx_t qqq;
                cpx_mtx_get(&stateVector, 0, 0, &qqq);
                if (strcmp(instr[i].n, "measure") == 0)
@@ -473,7 +474,6 @@ 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;
@@ -486,7 +486,6 @@ 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)
                {