| 239 | } |
| 240 | |
| 241 | void applyTrotterizedImaginaryTimeEvolution(Qureg qureg, PauliStrSum hamil, qreal tau, int order, int reps) { |
| 242 | validate_quregFields(qureg, __func__); |
| 243 | validate_pauliStrSumFields(hamil, __func__); |
| 244 | validate_pauliStrSumTargets(hamil, qureg, __func__); |
| 245 | validate_pauliStrSumIsHermitian(hamil, __func__); |
| 246 | validate_trotterParams(qureg, order, reps, __func__); |
| 247 | |
| 248 | // exp(-tau H) = exp(x i H) | x=tau*i |
| 249 | qcomp angle = qcomp(0, tau); |
| 250 | bool onlyLeftApply = false; |
| 251 | internal_applyAllTrotterRepetitions(qureg, nullptr, nullptr, 0, hamil, angle, order, reps, onlyLeftApply); |
| 252 | } |
| 253 | |
| 254 | } // end de-mangler |
| 255 |
nothing calls this directly
no test coverage detected