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

Function setAndSyncSuperOpElems

quest/src/api/channels.cpp:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259// T can be qcomp** or vector<vector<qcomp>>
260template <typename T>
261void setAndSyncSuperOpElems(SuperOp op, T matrix) {
262
263 // overwrite the CPU matrix
264 cpu_copyMatrix(op.cpuElems, matrix, op.numRows);
265
266 // sync CPU matrix to flat GPU array
267 syncSuperOp(op);
268}
269
270
271extern "C" void setSuperOp(SuperOp op, qcomp** matrix) {

Callers 3

setSuperOpFunction · 0.85
setInlineSuperOpFunction · 0.85
createInlineSuperOpFunction · 0.85

Calls 2

cpu_copyMatrixFunction · 0.85
syncSuperOpFunction · 0.85

Tested by

no test coverage detected