| 323 | } |
| 324 | |
| 325 | void rightapplyFullStateDiagMatrPower(Qureg qureg, FullStateDiagMatr matrix, qcomp exponent) { |
| 326 | validate_quregFields(qureg, __func__); |
| 327 | validate_quregIsDensityMatrix(qureg, __func__); |
| 328 | validate_matrixFields(matrix, __func__); |
| 329 | validate_matrixAndQuregAreCompatible(matrix, qureg, false, __func__); // matrix can be non-unitary |
| 330 | validate_matrixExpIsNonDiverging(matrix, exponent, __func__); |
| 331 | |
| 332 | // rho -> rho matrix^exponent |
| 333 | bool leftMultiply = false; |
| 334 | bool rightMultiply = true; |
| 335 | bool rightConj = false; |
| 336 | localiser_densmatr_allTargDiagMatr(qureg, matrix, exponent, leftMultiply, rightMultiply, rightConj); |
| 337 | } |
| 338 | |
| 339 | } // end de-mangler |
| 340 |
no test coverage detected