@@ -7,12 +7,12 @@ _tuplify(o::AbstractOperator) = o
7
7
"""
8
8
schroedinger_dynamic_function(H::AbstractTimeDependentOperator)
9
9
10
- Creates a function `f(t, state) -> H(t)`. The `state` argument is ignored.
10
+ Creates a function of the form `f(t, state) -> H(t)`. The `state` argument is ignored.
11
11
12
12
This is the function expected by [`timeevolution.schroedinger_dynamic()`](@ref).
13
13
"""
14
14
function schroedinger_dynamic_function (H:: AbstractTimeDependentOperator )
15
- _getfunc (op) = (@inline _tdop_schroedinger_wrapper (t, _) = (op)( t))
15
+ _getfunc (op) = (@inline _tdop_schroedinger_wrapper (t, _) = set_time! (op, t))
16
16
Htup = _tuplify (H)
17
17
return _getfunc (Htup)
18
18
end
34
34
"""
35
35
master_h_dynamic_function(H::AbstractTimeDependentOperator, Js)
36
36
37
- Returns a function `f(t, state) -> H(t), Js, dagger.(Js)`.
37
+ Returns a function of the form `f(t, state) -> H(t), Js, dagger.(Js)`.
38
38
The `state` argument is ignored.
39
39
40
40
This is the function expected by [`timeevolution.master_h_dynamic()`](@ref),
@@ -47,15 +47,15 @@ function master_h_dynamic_function(H::AbstractTimeDependentOperator, Js)
47
47
48
48
Jdags_tup = _tdopdagger .(Js_tup)
49
49
function _getfunc (Hop, Jops, Jdops)
50
- return (@inline _tdop_master_wrapper_1 (t, _) = ((Hop)( t), set_time! .(Jops, t), set_time! .(Jdops, t)))
50
+ return (@inline _tdop_master_wrapper_1 (t, _) = (set_time! (Hop, t), set_time! .(Jops, t), set_time! .(Jdops, t)))
51
51
end
52
52
return _getfunc (Htup, Js_tup, Jdags_tup)
53
53
end
54
54
55
55
"""
56
56
master_nh_dynamic_function(Hnh::AbstractTimeDependentOperator, Js)
57
57
58
- Returns a function `f(t, state) -> Hnh(t), Hnh(t)', Js, dagger.(Js)`.
58
+ Returns a function of the form `f(t, state) -> Hnh(t), Hnh(t)', Js, dagger.(Js)`.
59
59
The `state` argument is currently ignored.
60
60
61
61
This is the function expected by [`timeevolution.master_nh_dynamic()`](@ref),
@@ -70,15 +70,15 @@ function master_nh_dynamic_function(Hnh::AbstractTimeDependentOperator, Js)
70
70
Htdagup = _tdopdagger (Hnhtup)
71
71
72
72
function _getfunc (Hop, Hdop, Jops, Jdops)
73
- return (@inline _tdop_master_wrapper_2 (t, _) = ((Hop)( t), (Hdop)( t), set_time! .(Jops, t), set_time! .(Jdops, t)))
73
+ return (@inline _tdop_master_wrapper_2 (t, _) = (set_time! (Hop, t), set_time! (Hdop, t), set_time! .(Jops, t), set_time! .(Jdops, t)))
74
74
end
75
75
return _getfunc (Hnhtup, Htdagup, Js_tup, Jdags_tup)
76
76
end
77
77
78
78
"""
79
79
mcfw_dynamic_function(H, Js)
80
80
81
- Returns a function `f(t, state) -> H(t), Js, dagger.(Js)`.
81
+ Returns a function of the form `f(t, state) -> H(t), Js, dagger.(Js)`.
82
82
The `state` argument is currently ignored.
83
83
84
84
This is the function expected by [`timeevolution.mcwf_dynamic()`](@ref),
@@ -90,7 +90,7 @@ mcfw_dynamic_function(H, Js) = master_h_dynamic_function(H, Js)
90
90
"""
91
91
mcfw_nh_dynamic_function(Hnh, Js)
92
92
93
- Returns a function `f(t, state) -> Hnh(t), Js, dagger.(Js)`.
93
+ Returns a function of the form `f(t, state) -> Hnh(t), Js, dagger.(Js)`.
94
94
The `state` argument is currently ignored.
95
95
96
96
This is the function expected by [`timeevolution.mcwf_dynamic()`](@ref),
0 commit comments