for (int i = 0; i < (ctx->bsampling_shots); i++)
{
float r = (ctx->hidden_variable) ? qansel_rand_h() : qansel_rand_t(ctx);
+ printf(">%f<\n", r);
float j = 0;
//printf("--------------------------------\n");
for (unsigned int j = 0; j < qubitCountPow2; j++)
FILE* f = fopen("/dev/qrandom0", "r");
unsigned char c = fgetc(f);
while (c == 0x00) c = fgetc(f);
- (*chunk)[0] = c - 1;
+ (*chunk)[0] = c;
for (int i = 0; i < QANSEL_QUANTIS_CHUNK_SIZE - 1; i++)
{
- (*chunk)[i + 1] = fgetc(f) - 1;
+ (*chunk)[i + 1] = fgetc(f);
}
fclose(f);
}
\ No newline at end of file