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

Function getVector

tests/utils/convert.cpp:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68qvector getVector(Qureg qureg) {
69 DEMAND( !qureg.isDensityMatrix );
70
71 qvector out = getZeroVector(qureg.numAmps);
72 getQuregAmps(out.data(), qureg, 0, qureg.numAmps);
73 return out;
74}
75
76
77qmatrix getMatrix(Qureg qureg) {

Callers 1

REQUIRE_AGREEFunction · 0.70

Calls 2

getZeroVectorFunction · 0.85
getQuregAmpsFunction · 0.85

Tested by

no test coverage detected