| 188 | |
| 189 | |
| 190 | void accel_statevec_getAmps_sub(qcomp* outAmps, Qureg qureg, qindex localStartInd, qindex numLocalAmps) { |
| 191 | |
| 192 | // copy directly from GPU/CPU to outAmps |
| 193 | (qureg.isGpuAccelerated)? |
| 194 | gpu_copyGpuToCpu(&qureg.gpuAmps[localStartInd], outAmps, numLocalAmps): // (src, dest) = (gpu, cpu) |
| 195 | cpu_copyArray( outAmps, &qureg.cpuAmps[localStartInd], numLocalAmps); // (dest, src) |
| 196 | } |
| 197 | |
| 198 | |
| 199 |
no test coverage detected