| 204 | extern "C" { |
| 205 | |
| 206 | void leftapplyDiagMatr(Qureg qureg, int* targets, int numTargets, DiagMatr matrix) { |
| 207 | validate_quregFields(qureg, __func__); |
| 208 | validate_targets(qureg, targets, numTargets, __func__); |
| 209 | validate_matrixDimMatchesTargets(matrix, numTargets, __func__); // also validates fields and is-sync |
| 210 | |
| 211 | bool conj = false; |
| 212 | qcomp exponent = 1; |
| 213 | auto qubits = util_getVector(targets, numTargets); |
| 214 | localiser_statevec_anyCtrlAnyTargDiagMatr(qureg, {}, {}, qubits, matrix, exponent, conj); |
| 215 | } |
| 216 | |
| 217 | void rightapplyDiagMatr(Qureg qureg, int* targets, int numTargets, DiagMatr matrix) { |
| 218 | validate_quregFields(qureg, __func__); |
nothing calls this directly
no test coverage detected