X-Git-Url: https://s3miclassical.com/gitweb/?p=weak_simulation_stab_extent.git;a=blobdiff_plain;f=randomstabilizerstate.c;h=60f5cd801366dd2786b717b44814139ab63d3710;hp=605affd8e42496e3b9d01ff220da359966cd1c88;hb=7bc25656311c391af6a4d5814cc82080981c63c4;hpb=d914e7c183347b1340988e0869a6e053dd573991 diff --git a/randomstabilizerstate.c b/randomstabilizerstate.c index 605affd..60f5cd8 100644 --- a/randomstabilizerstate.c +++ b/randomstabilizerstate.c @@ -41,8 +41,12 @@ void randomstabilizerstate(int n, int* k, int** h, int*** G, int*** GBar, int* Q //d = rand()%(n+1); //printf("d=%d total=%f randPd=%f\n", d, total, randPd); //printf("!!!d=%d\n", d); + //d = 0; - *k = n; // we will get it to be k=n-d by caling shrinkstar d times below + printf("!!\n"); + fflush(stdout); + + *k = n; // we will get it to be k=n-d by calling shrinkstar d times below randomX = calloc(n*d,sizeof(float)); randomXcopy = calloc(n*d,sizeof(float)); @@ -77,7 +81,6 @@ void randomstabilizerstate(int n, int* k, int** h, int*** G, int*** GBar, int* Q } *G = calloc(n, sizeof(int*)); *GBar = calloc(n, sizeof(int*)); - *h = calloc(n, sizeof(int)); for(i=0; i