Krotov

Latest version: v1.2.1

Safety actively analyzes 629436 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.4.0

------------------

* Added: Support for Python 3.7
* Changed: The ``'shape'`` key in ``pulse_options`` was renamed to ``'update_shape'``, to further avoid confusion between pulse shapes and update shapes.
* Changed: The ``.adjoint`` property of ``Objective`` is now a method
* Added: Ability to not use QuTiP ``Qobj`` objects, but arbitrary low-level objects instead.
* Improved: Printing an ``Objective`` now uses internal counters and a symbolic notation to identify objects shared between different objectives. (`43`_)
* Improved: ``gate_objectives`` now takes into account if target states are (reshuffled) basis states and does not create unnecessary new copies.
* Bugfix: Two ``Objective`` instances that contain numpy arrays as controls can now be compared with ``==`` (`44`_)
* Bugfix: Custom attributes (such as ``weight``) are now preserved when copying an ``Objective`` (`44`_)
* Bugfix: Calling ``copy.deepcopy`` on an ``Objective`` now preserves control functions (`44`_)
* Improved: The ``Objective.mesolve`` and ``Objective.propagate`` methods can now receive arguments ``H`` and ``c_ops`` to override the respective attributes of the objectives. This make is easier to analyze perform a robustness analysis, where the result of an optimization should be propagated under a perturbed Hamiltonian.
* Improved: The ``print_table`` and ``print_debug_information`` info-hooks now flush their output buffers after each iteration. As a result, when writing to a file, that file can be watched with ``tail -f``.
* Changed: Redefine ``tau_vals`` as their complex conjugate, fixing a bug in ``chis_ss`` and ``chis_sm`` (`46`_)
* Bugfix: Correctly calculate ∂H/∂ϵ if ϵ occurs in H multiple times (`47`_, thanks to `uiofgh`_)
* Bugfix: Correctly calculate ∂H/∂ϵ=0 if the specific ϵ currently being updated does not occur in H (`48`_)
* Added: Method ``objectives_with_controls`` for ``Result`` object.

0.3.0

------------------

* Added: Preprint citation information (``krotov.__arxiv__``, ``krotov.__citation__``, ``krotov.__bibtex__``)
* Added: Ability to continue from a previous optimization (`26`_)
* Added: Parameter ``out`` to ``print_table`` info-hook
* Added: Parameter ``finalize`` to ``Result.load``
* Added: Ability to dump optimization result every so many iterations (``dump_result`` check-convergence routine)
* Added: `re-entrant` option for ``DensityMatrixODEPropagator``
* Bugfix: Discretize controls to float values (`41`_)
* Bugfix: Fix overlap for non-Hermitian operators (`39`_)
* Bugfix: Interface for passing ``tau_vals`` to ``chi_constructor`` (`36`_)
* Added: function ``above_value`` for convergence check (`35`_)

0.2.0

------------------

* Added: Implementation of all the standard functionals
* Added: The ``info_hook`` receives additional information, including ∫gₐ(t)dt (`32`_)
* Added: Initialization of objectives for gate optimization in Liouville space
* Added: A new propagator ``DensityMatrixODEPropagator`` for faster density matrix propagation
* Added: Support for "stateful" propagators by subclassing from ``krotov.propagators.Propagator``
* Changed: more flexibility for parallelization (`29`_)
* Added: Support for the second-order pulse update
* Changed: The options for the controls (λₐ, update-shape) are now passed through a simplified ``dict`` interface, instead of a custom ``PulseOptions`` class.

0.1.0

------------------

* Initial release with complete implementation of first-order Krotov's method
* Support for state-to-state and gate optimization, for both closed and open systems


.. _loky: https://loky.readthedocs.io/
.. _gh-pages: https://qucontrol.github.io/krotov
.. _Doctr: https://drdoctr.github.io
.. _threadpoolctl: https://github.com/joblib/threadpoolctl
.. _uiofgh: https://github.com/uiofgh
.. _TejasAvinashShetty: https://github.com/TejasAvinashShetty
.. _timohillmann: https://github.com/timohillmann
.. _nathanshammah: https://github.com/nathanshammah
.. _zachmanson: https://github.com/zachmanson
.. _loganbvh: https://github.com/loganbvh
.. _Alberto Castro: https://www.bifi.es/~acastro/
.. _26: https://github.com/qucontrol/krotov/issues/26
.. _29: https://github.com/qucontrol/krotov/issues/29
.. _32: https://github.com/qucontrol/krotov/issues/32
.. _35: https://github.com/qucontrol/krotov/issues/35
.. _36: https://github.com/qucontrol/krotov/issues/36
.. _39: https://github.com/qucontrol/krotov/issues/39
.. _41: https://github.com/qucontrol/krotov/issues/41
.. _43: https://github.com/qucontrol/krotov/issues/43
.. _44: https://github.com/qucontrol/krotov/issues/44
.. _46: https://github.com/qucontrol/krotov/issues/46
.. _47: https://github.com/qucontrol/krotov/issues/47
.. _48: https://github.com/qucontrol/krotov/issues/48
.. _52: https://github.com/qucontrol/krotov/issues/42
.. _54: https://github.com/qucontrol/krotov/issues/54
.. _56: https://github.com/qucontrol/krotov/issues/56
.. _58: https://github.com/qucontrol/krotov/issues/58
.. _59: https://github.com/qucontrol/krotov/issues/59
.. _60: https://github.com/qucontrol/krotov/issues/60
.. _61: https://github.com/qucontrol/krotov/issues/61
.. _65: https://github.com/qucontrol/krotov/issues/65
.. _66: https://github.com/qucontrol/krotov/issues/66
.. _67: https://github.com/qucontrol/krotov/issues/67
.. _68: https://github.com/qucontrol/krotov/issues/68
.. _72: https://github.com/qucontrol/krotov/issues/72
.. _74: https://github.com/qucontrol/krotov/issues/74
.. _76: https://github.com/qucontrol/krotov/issues/76
.. _79: https://github.com/qucontrol/krotov/issues/79
.. _80: https://github.com/qucontrol/krotov/issues/80
.. _82: https://github.com/qucontrol/krotov/issues/82

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.