| 98 | extern "C" { |
| 99 | |
| 100 | void leftapplyCompMatr(Qureg qureg, int* targets, int numTargets, CompMatr matrix) { |
| 101 | validate_quregFields(qureg, __func__); |
| 102 | validate_targets(qureg, targets, numTargets, __func__); |
| 103 | validate_matrixDimMatchesTargets(matrix, numTargets, __func__); // also validates fields and is-sync |
| 104 | validate_mixedAmpsFitInNode(qureg, numTargets, __func__); |
| 105 | |
| 106 | bool conj = false; |
| 107 | bool transp = false; |
| 108 | localiser_statevec_anyCtrlAnyTargDenseMatr(qureg, {}, {}, util_getVector(targets, numTargets), matrix, conj, transp); |
| 109 | } |
| 110 | |
| 111 | void rightapplyCompMatr(Qureg qureg, int* targets, int numTargets, CompMatr matrix) { |
| 112 | validate_quregFields(qureg, __func__); |
nothing calls this directly
no test coverage detected