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

Function applyTrotterizedUnitaryTimeEvolution

quest/src/api/trotterisation.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226extern "C" {
227
228void applyTrotterizedUnitaryTimeEvolution(Qureg qureg, PauliStrSum hamil, qreal time, int order, int reps) {
229 validate_quregFields(qureg, __func__);
230 validate_pauliStrSumFields(hamil, __func__);
231 validate_pauliStrSumTargets(hamil, qureg, __func__);
232 validate_pauliStrSumIsHermitian(hamil, __func__);
233 validate_trotterParams(qureg, order, reps, __func__);
234
235 // exp(-i t H) = exp(x i H) | x=-t
236 qcomp angle = - time;
237 bool onlyLeftApply = false;
238 internal_applyAllTrotterRepetitions(qureg, nullptr, nullptr, 0, hamil, angle, order, reps, onlyLeftApply);
239}
240
241void applyTrotterizedImaginaryTimeEvolution(Qureg qureg, PauliStrSum hamil, qreal tau, int order, int reps) {
242 validate_quregFields(qureg, __func__);

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Tested by

no test coverage detected