| 331 | |
| 332 | |
| 333 | Qureg getSpoofedSerialStateVecFromDensMatrAndAmps(Qureg denseQureg, qcomp* amps) { |
| 334 | |
| 335 | // imitate statevector, turn off all parallelisation |
| 336 | int isDensMatr = 0; |
| 337 | int useDistrib = 0; |
| 338 | int useGpuAccel = 0; |
| 339 | int useMultithread = 0; |
| 340 | Qureg spoof = qureg_populateNonHeapFields( |
| 341 | denseQureg.numQubits, isDensMatr, |
| 342 | useDistrib, useGpuAccel, useMultithread); |
| 343 | |
| 344 | // bind the external memory |
| 345 | spoof.cpuAmps = amps; |
| 346 | return spoof; |
| 347 | } |
| 348 | |
| 349 | |
| 350 | auto getSpoofedQuregAndMatrWithMatchingDistributions(Qureg qureg, FullStateDiagMatr matr) { |
no test coverage detected