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)
}
else if (strcmp(instr[i].n, "born_all") == 0)
{
- printf("A\n");
for (unsigned int j = 0; j < qubitCountPow2; j++)
{
unsigned int tmp = j;
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)
{