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

Implement DynamicsBackend.solve function and unit test #292

Closed donsano33 closed 10 months ago

donsano33 commented 11 months ago

Summary

Add public function DynamicsBackend.solve enabling ODE simulation with the preconfigured solver member of the DynamicsBackend.

Details and comments

I opted for the most barebone implementation, basically just mirroring the interface for the Solver.solve function with an additional validate parameter.

Depending on how sophisticated one wants to implement this function, a variety of extensions could be thought of, adding ease of usage but also complexity. One possible extension could be (similar to DynamicsBackend.run) to optionally use the placement of the Acquire pulses to dynamically figure out the t_span (if measurements are in the schedule / circuit).

Let me know if you want something of that kind to be added.

Closes #288

CLAassistant commented 11 months ago

CLA assistant check
All committers have signed the CLA.