qiskit-community / qiskit-dynamics

Tools for building and solving models of quantum systems in Qiskit
https://qiskit-community.github.io/qiskit-dynamics/
Apache License 2.0
105 stars 61 forks source link

Max step size handling in DynamicsBackend #225

Closed DanPuzzuoli closed 1 year ago

DanPuzzuoli commented 1 year ago

Multiple users (myself included) have run into issues where a solver steps over a pulse. While this can be easily solved by setting the max step size of the solver to be no larger than the sample size dt (or perhaps 0.5 * dt is safer?), this is usually initially difficult to diagnose, and can be very confusing.

Potential solutions:

The first option is much easier, though for usability it may make sense to implement the second option. It may actually make more sense to put this automatic choosing into the Solver object itself, rather than DynamicsBackend.