MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / applyTrotterizedImaginaryTimeEvolution

Function applyTrotterizedImaginaryTimeEvolution

quest/src/api/trotterisation.cpp:241–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void 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

Callers

nothing calls this directly

Tested by

no test coverage detected