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

Function leftapplyCompMatr2

quest/src/api/multiplication.cpp:64–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62extern "C" {
63
64void leftapplyCompMatr2(Qureg qureg, int target1, int target2, CompMatr2 matrix) {
65 validate_quregFields(qureg, __func__);
66 validate_twoTargets(qureg, target1, target2, __func__);
67 validate_matrixFields(matrix, __func__);
68 validate_mixedAmpsFitInNode(qureg, 2, __func__);
69
70 bool conj = false;
71 bool transp = false;
72 localiser_statevec_anyCtrlTwoTargDenseMatr(qureg, {}, {}, target1, target2, matrix, conj, transp);
73}
74
75void rightapplyCompMatr2(Qureg qureg, int target1, int target2, CompMatr2 matrix) {
76 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 5

validate_quregFieldsFunction · 0.85
validate_twoTargetsFunction · 0.85
validate_matrixFieldsFunction · 0.85

Tested by

no test coverage detected