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

Function rightapplyDiagMatr2

quest/src/api/multiplication.cpp:184–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void rightapplyDiagMatr2(Qureg qureg, int target1, int target2, DiagMatr2 matrix) {
185 validate_quregFields(qureg, __func__);
186 validate_quregIsDensityMatrix(qureg, __func__);
187 validate_twoTargets(qureg, target1, target2, __func__);
188 validate_matrixFields(matrix, __func__);
189
190 bool conj = false;
191 int qubit1 = util_getBraQubit(target1, qureg);
192 int qubit2 = util_getBraQubit(target2, qureg);
193 localiser_statevec_anyCtrlTwoTargDiagMatr(qureg, {}, {}, qubit1, qubit2, matrix, conj);
194}
195
196} // end de-mangler
197

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected