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

Function setInlineCompMatr

quest/src/api/matrices.cpp:503–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501
502
503void setInlineCompMatr(CompMatr matr, int numQb, vector<vector<qcomp>> in) {
504 validate_matrixFields(matr, __func__);
505 validate_matrixNumQubitsMatchesParam(matr.numQubits, numQb, __func__);
506 validate_matrixNumNewElems(matr.numQubits, in, __func__);
507
508 setAndSyncDenseMatrElems(matr, in);
509}
510
511void setInlineDiagMatr(DiagMatr matr, int numQb, vector<qcomp> in) {
512 validate_matrixFields(matr, __func__);

Callers 3

SECTIONFunction · 0.85
demo_setInlineCompMatrFunction · 0.85

Tested by

no test coverage detected