JuliaQuantumControl / Krotov.jl

Julia implementation of Krotov's method for quantum optimal control
https://juliaquantumcontrol.github.io/Krotov.jl
MIT License
7 stars 2 forks source link

Change: determine `chi` states automatically #7

Closed goerz closed 2 years ago

goerz commented 2 years ago

Use the make_chi routine to automatically set the appropriate chi routine from the chosen functional, or obtain it via automatic differentiation. This makes chi and optional parameter for the optimization (and one that will rarely, if ever, have to be set).

This implements "semi-automatic differentiation" for Krotov's method.

codecov-commenter commented 2 years ago

Codecov Report

Merging #7 (971f68d) into master (516237b) will increase coverage by 0.05%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #7      +/-   ##
==========================================
+ Coverage   92.49%   92.54%   +0.05%     
==========================================
  Files           5        5              
  Lines         253      255       +2     
==========================================
+ Hits          234      236       +2     
  Misses         19       19              
Impacted Files Coverage Δ
src/optimize.jl 95.89% <100.00%> (+0.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 516237b...971f68d. Read the comment docs.