- /*printf("*******\n");
- printf("*******\n");
- printf("omega=%d\n", omega);
- printf("X:\n");
- printVector(gamma, N);
- printf("Z:\n");
- printVector(beta, N);
- printf("*******\n");
- printf("*******\n");*/
-
- //for(j=0; j<numStabStates; j++) { // the kets
-
- /*printf("========\n");
- printf("before:\n");
- printf("K=%d\n", K[j]);
- printf("h:\n");
- printVector(h[j], N);
- printf("Gamma[%d]=%lf+%lf\n", j, creal(Gamma[j]), cimag(Gamma[j]));
- printf("G:\n");
- printMatrix(G[j], N, N);
- printf("GBar:\n");
- printMatrix(GBar[j], N, N);
- printf("Q=%d\n", Q[j]);
- printf("D:\n");
- printVector(D[j], K[j]);
- printf("J:\n");
- printMatrix(J[j], K[j], K[j]);*/
- //Gamma[j] *= measurepauli(N, &K[j], h[j], G[j], GBar[j], &Q[j], &D[j], &J[j], omega, gamma, beta);
- /*printf("\nafter:\n");
- printf("K=%d\n", K[j]);
- printf("h:\n");
- printVector(h[j], N);
- printf("Gamma[%d]=%lf+%lf\n", j, creal(Gamma[j]), cimag(Gamma[j]));
- printf("G:\n");
- printMatrix(G[j], N, N);
- printf("GBar:\n");
- printMatrix(GBar[j], N, N);
- printf("Q=%d\n", Q[j]);
- printf("D:\n");
- printVector(D[j], K[j]);
- printf("J:\n");
- printMatrix(J[j], K[j], K[j]);*/