qucontrol / krotov

Python implementation of Krotov's method for quantum optimal control
https://qucontrol.github.io/krotov
Other
70 stars 29 forks source link

Allow keep_original_objectives=False in ensemble_objectives #67

Closed goerz closed 4 years ago

goerz commented 4 years ago

The default behavior of ensemble_objectives is to extend existing objectives. Quite often, it's much more straightforward to include the original Hamiltonian in the ensemble Hs. In that case, a flag keep_original_objectives=False could use replace the existing objectives with those generated for the different Hs.