qiskit-community / qiskit-algorithms

A library of quantum algorithms for Qiskit.
https://qiskit-community.github.io/qiskit-algorithms/
Apache License 2.0
111 stars 54 forks source link

real time evolution statevector at each step #166

Open derenliu opened 6 months ago

derenliu commented 6 months ago

What should we add?

https://qiskit-community.github.io/qiskit-algorithms/tutorials/13_trotterQRTE.html

I refer to the above tutorial on "real time evolution using trotterization". At the end of this tutorial, the magnetization evolution plot is done by using exact_evolution statevectors. Can this be done without the exact evolution, since the point of the tutorial is to show the real time evolution? In other words, in the function "trotter.evolve(problem)", can we get the statevector at each time step so as to evaluate expectation values?