| 702 | |
| 703 | |
| 704 | void localiser_densmatr_initArbitraryPureState(Qureg qureg, qcomp* amps) { |
| 705 | assert_localiserGivenDensMatr(qureg); |
| 706 | |
| 707 | // we cannot simply call a copy routine like the statevector case, |
| 708 | // because amps will not be contiguously located in the density matrix. |
| 709 | // Instead, we spoof a local CPU-only statevector, and bind amps to it |
| 710 | Qureg spoof = getSpoofedSerialStateVecFromDensMatrAndAmps(qureg, amps); |
| 711 | localiser_densmatr_initPureState(qureg, spoof); |
| 712 | } |
| 713 | |
| 714 | |
| 715 | void localiser_densmatr_initArbitraryMixedState(Qureg qureg, qcomp** amps) { |
no test coverage detected