update from v0.1 to v1.0
[weak_simulation_stab_extent.git] / randomstabilizerstate.c
index 605affd8e42496e3b9d01ff220da359966cd1c88..60f5cd801366dd2786b717b44814139ab63d3710 100644 (file)
@@ -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<n; i++) {