| 73 | } |
| 74 | |
| 75 | void rightapplyCompMatr2(Qureg qureg, int target1, int target2, CompMatr2 matrix) { |
| 76 | validate_quregFields(qureg, __func__); |
| 77 | validate_quregIsDensityMatrix(qureg, __func__); |
| 78 | validate_twoTargets(qureg, target1, target2, __func__); |
| 79 | validate_matrixFields(matrix, __func__); |
| 80 | validate_mixedAmpsFitInNode(qureg, 2, __func__); |
| 81 | |
| 82 | // rho matrix ~ transpose(rho) (x) I ||rho>> |
| 83 | bool conj = false; |
| 84 | bool transp = true; |
| 85 | int qubit1 = util_getBraQubit(target1, qureg); |
| 86 | int qubit2 = util_getBraQubit(target2, qureg); |
| 87 | localiser_statevec_anyCtrlTwoTargDenseMatr(qureg, {}, {}, qubit1, qubit2, matrix, conj, transp); |
| 88 | } |
| 89 | |
| 90 | } // end de-mangler |
| 91 |
nothing calls this directly
no test coverage detected