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

Function leftapplyCompMatr

quest/src/api/multiplication.cpp:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98extern "C" {
99
100void leftapplyCompMatr(Qureg qureg, int* targets, int numTargets, CompMatr matrix) {
101 validate_quregFields(qureg, __func__);
102 validate_targets(qureg, targets, numTargets, __func__);
103 validate_matrixDimMatchesTargets(matrix, numTargets, __func__); // also validates fields and is-sync
104 validate_mixedAmpsFitInNode(qureg, numTargets, __func__);
105
106 bool conj = false;
107 bool transp = false;
108 localiser_statevec_anyCtrlAnyTargDenseMatr(qureg, {}, {}, util_getVector(targets, numTargets), matrix, conj, transp);
109}
110
111void rightapplyCompMatr(Qureg qureg, int* targets, int numTargets, CompMatr matrix) {
112 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 6

validate_quregFieldsFunction · 0.85
validate_targetsFunction · 0.85
util_getVectorFunction · 0.85

Tested by

no test coverage detected