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

index 5663b991240649086ebb153e1ca11e3d569bd969..5abb4998fb895998d61ebd79963ef0586bc45aae 100644 (file)
@@ -347,9 +347,16 @@ void qansel_run(unsigned char qubitCount, unsigned char bitCount, QInstr* instr,
 
        for (unsigned char i = 0; i < bitCount; i++) bitVector[i] = 0;
 
+       unsigned long int ns, ps;
        for (unsigned int i = 0; i < instrLen; i++)
        {
-               printf("%i: %lu\n", i, get_time());
+               ns = get_time();
+               if (i > 0)
+               {
+                       printf("%i: lu\n", i, ns - ps);
+               }
+               ps = ns;
+
                cpx_t qqq;
                cpx_mtx_get(&stateVector, 0, 0, &qqq);
                if (strcmp(instr[i].n, "measure") == 0)