| 2459 | |
| 2460 | |
| 2461 | void cpu_statevec_initDebugState_sub(Qureg qureg) { |
| 2462 | |
| 2463 | // overwrite all local amps |
| 2464 | qindex numIts = qureg.numAmpsPerNode; |
| 2465 | |
| 2466 | #pragma omp parallel for if(qureg.isMultithreaded) |
| 2467 | for (qindex n=0; n<numIts; n++) { |
| 2468 | |
| 2469 | // i = global index of nth local amp |
| 2470 | qindex i = concatenateBits(qureg.rank, n, qureg.logNumAmpsPerNode); |
| 2471 | qureg.cpuAmps[n] = qcomp(2*i/10., (2*i+1)/10.); |
| 2472 | } |
| 2473 | } |
| 2474 | |
| 2475 | |
| 2476 | void cpu_statevec_initUnnormalisedUniformlyRandomPureStateAmps_sub(Qureg qureg) { |
no test coverage detected