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

Function setQuregToReference

tests/utils/convert.cpp:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40void setQuregToReference(Qureg qureg, qvector vector) {
41 DEMAND( !qureg.isDensityMatrix );
42 DEMAND( qureg.numAmps == (qindex) vector.size() );
43
44 setQuregAmps(qureg, 0, vector.data(), vector.size());
45}
46
47
48void setQuregToReference(Qureg qureg, qmatrix matrix) {

Callers 6

SECTIONFunction · 0.85
DYNAMIC_SECTIONFunction · 0.85
SECTIONFunction · 0.85

Calls 3

setQuregAmpsFunction · 0.85
getPow2Function · 0.85
setDensityQuregAmpsFunction · 0.85

Tested by

no test coverage detected