}
cpx_t n;
cpx_mtx_get(&stateVector, 0, j, &n);
- printf(": %.2f%%\n", cpx_magsqr(&n) * 100);
+ printf(": %.1f%%\n", cpx_magsqr(&n) * 100);
}
}
else if (strcmp(instr[i].n, "born") == 0)
prob += cpx_magsqr(&n);
}
}
- printf("0: %.2f%%\n", (1 - prob) * 100.0);
- printf("1: %.2f%%\n", prob * 100.0);
+ printf("0: %.1f%%\n", (1 - prob) * 100.0);
+ printf("1: %.1f%%\n", prob * 100.0);
}
else if (strcmp(instr[i].n, "hvar") == 0)
{
}
if (fullSample == 255)
{
- printf(": %.2f%%\n", ((double)stats[i] / (double)shots) * (double)100);
+ printf(": %.1f%%\n", ((double)stats[i] / (double)shots) * (double)100);
}
}
if (fullSample != 255)
{
double prob = ((double)count / (double)shots) * (double)100;
- printf("0: %.2f%%\n", ((double)100)-prob);
- printf("1: %.2f%%\n", prob);
+ printf("0: %.1f%%\n", ((double)100)-prob);
+ printf("1: %.1f%%\n", prob);
}
}
else