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

Function setDensityQuregFlatAmps

quest/src/api/initialisations.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165void setDensityQuregFlatAmps(Qureg qureg, qindex startInd, qcomp* amps, qindex numAmps) {
166 validate_quregFields(qureg, __func__);
167 validate_quregIsDensityMatrix(qureg, __func__);
168 validate_basisStateIndices(qureg, startInd, numAmps, __func__); // validation msg correct for density-matrix
169
170 localiser_statevec_setAmps(amps, qureg, startInd, numAmps);
171}
172
173
174void setQuregToClone(Qureg outQureg, Qureg inQureg) {

Callers 1

SECTIONFunction · 0.85

Calls 4

validate_quregFieldsFunction · 0.85

Tested by

no test coverage detected