| 215 | } |
| 216 | |
| 217 | void rightapplyDiagMatr(Qureg qureg, int* targets, int numTargets, DiagMatr matrix) { |
| 218 | validate_quregFields(qureg, __func__); |
| 219 | validate_quregIsDensityMatrix(qureg, __func__); |
| 220 | validate_targets(qureg, targets, numTargets, __func__); |
| 221 | validate_matrixDimMatchesTargets(matrix, numTargets, __func__); // also validates fields and is-sync |
| 222 | |
| 223 | bool conj = false; |
| 224 | qcomp exponent = 1; |
| 225 | auto qubits = util_getBraQubits(util_getVector(targets, numTargets), qureg); |
| 226 | localiser_statevec_anyCtrlAnyTargDiagMatr(qureg, {}, {}, qubits, matrix, exponent, conj); |
| 227 | } |
| 228 | |
| 229 | } // end de-mangler |
| 230 |
nothing calls this directly
no test coverage detected