Skip to content

Commit ed7e22b

Browse files
author
cailixun
committed
remove autodiff tests for steadystate
1 parent 34f74c3 commit ed7e22b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/ext-test/cpu/autodiff/autodiff.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,6 @@ function my_f_mesolve(p)
6767
return real(expect(a' * a, sol.states[end]))
6868
end
6969

70-
function my_f_steadystate(p)
71-
ρss = steadystate(
72-
L;
73-
solver = SteadyStateODESolver(ψ0 = ψ0_mesolve, tmax = tlist_mesolve[end]),
74-
params = p,
75-
sensealg = BacksolveAdjoint(autojacvec = EnzymeVJP()),
76-
)
77-
78-
return real(expect(a' * a, ρss))
79-
end
80-
8170
# Analytical solution
8271
n_ss(Δ, F, γ) = abs2(F /+ 1im * γ / 2))
8372

@@ -124,12 +113,8 @@ n_ss(Δ, F, γ) = abs2(F / (Δ + 1im * γ / 2))
124113

125114
my_f_mesolve_direct(params)
126115
my_f_mesolve(params)
127-
my_f_steadystate(params)
128116

129-
# calculate exact solution and check if steadystate works
130117
grad_exact = Zygote.gradient((p) -> n_ss(p[1], p[2], p[3]), params)[1]
131-
grad_ss = Zygote.gradient(my_f_steadystate, params)[1]
132-
@test grad_ss grad_exact atol=1e-6
133118

134119
@testset "ForwardDiff.jl" begin
135120
grad_qt = ForwardDiff.gradient(my_f_mesolve_direct, params)

0 commit comments

Comments
 (0)