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

Function setSuperOp

quest/src/api/channels.cpp:271–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269
270
271extern "C" void setSuperOp(SuperOp op, qcomp** matrix) {
272 validate_superOpFields(op, __func__);
273 validate_matrixNewElemsPtrNotNull(matrix, op.numRows, __func__); // fine for superop
274
275 setAndSyncSuperOpElems(op, matrix);
276}
277
278void setSuperOp(SuperOp op, vector<vector<qcomp>> matrix) {
279 validate_superOpFields(op, __func__);

Callers 5

SECTIONFunction · 0.85
SECTIONFunction · 0.85
_setSuperOpFromArrFunction · 0.85
demo_setSuperOpFunction · 0.85
demo_setSuperOpFunction · 0.85

Calls 4

validate_superOpFieldsFunction · 0.85
setAndSyncSuperOpElemsFunction · 0.85

Tested by

no test coverage detected