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

Function rightapplyCompMatr

quest/src/api/multiplication.cpp:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void rightapplyCompMatr(Qureg qureg, int* targets, int numTargets, CompMatr matrix) {
112 validate_quregFields(qureg, __func__);
113 validate_quregIsDensityMatrix(qureg, __func__);
114 validate_targets(qureg, targets, numTargets, __func__);
115 validate_matrixDimMatchesTargets(matrix, numTargets, __func__); // also validates fields and is-sync
116 validate_mixedAmpsFitInNode(qureg, numTargets, __func__);
117
118 // rho matrix ~ transpose(rho) (x) I ||rho>>
119 bool conj = false;
120 bool transp = true;
121 auto qubits = util_getBraQubits(util_getVector(targets, numTargets), qureg);
122 localiser_statevec_anyCtrlAnyTargDenseMatr(qureg, {}, {}, qubits, matrix, conj, transp);
123}
124
125} // end de-mangler
126

Callers

nothing calls this directly

Calls 8

validate_quregFieldsFunction · 0.85
validate_targetsFunction · 0.85
util_getBraQubitsFunction · 0.85
util_getVectorFunction · 0.85

Tested by

no test coverage detected