q-optimize / c3

Toolset for control, calibration and characterization of physical systems
https://c3-toolset.readthedocs.io/
Apache License 2.0
66 stars 36 forks source link

Return dynamics's generators from Model #216

Closed frosati1 closed 2 years ago

frosati1 commented 2 years ago

What

Ideally reinserts lindbladian evolution

Why

Linbladian evolution was in the code but not accessible. Reduces code complexity and nested ifs. Closes Issue #215

How

A new function in the Model takes care of returning Hamiltonians or Liouvillian superoperators according to model.lindbladian. In this way propagation.pwc() basically just needs to do the exponentiation.

Remarks

Checks on signals (e. g. passing times) are supposed to be moved to the Generator and might be faulty now.

Checklist

Please include and complete the following checklist. Your Pull Request is (in most cases) not ready for review until the following have been completed. You can create a draft PR while you are still completing the checklist. Check the Contribution Guidelines for more details. You can mark an item as complete with the - [x] prefix

frosati1 commented 2 years ago

Goes on with @SRaent PR, I delete this