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

Function rightapplyCompMatr2

quest/src/api/multiplication.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void rightapplyCompMatr2(Qureg qureg, int target1, int target2, CompMatr2 matrix) {
76 validate_quregFields(qureg, __func__);
77 validate_quregIsDensityMatrix(qureg, __func__);
78 validate_twoTargets(qureg, target1, target2, __func__);
79 validate_matrixFields(matrix, __func__);
80 validate_mixedAmpsFitInNode(qureg, 2, __func__);
81
82 // rho matrix ~ transpose(rho) (x) I ||rho>>
83 bool conj = false;
84 bool transp = true;
85 int qubit1 = util_getBraQubit(target1, qureg);
86 int qubit2 = util_getBraQubit(target2, qureg);
87 localiser_statevec_anyCtrlTwoTargDenseMatr(qureg, {}, {}, qubit1, qubit2, matrix, conj, transp);
88}
89
90} // end de-mangler
91

Callers

nothing calls this directly

Calls 7

validate_quregFieldsFunction · 0.85
validate_twoTargetsFunction · 0.85
validate_matrixFieldsFunction · 0.85
util_getBraQubitFunction · 0.85

Tested by

no test coverage detected