MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / localiser_densmatr_initArbitraryPureState

Function localiser_densmatr_initArbitraryPureState

quest/src/core/localiser.cpp:704–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702
703
704void 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
715void localiser_densmatr_initArbitraryMixedState(Qureg qureg, qcomp** amps) {

Callers 1

initArbitraryPureStateFunction · 0.85

Tested by

no test coverage detected