Skip to content

Commit

Permalink
Update test_ForwardDiff.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitRotem authored Dec 24, 2023
1 parent 0c123dc commit d2e1875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_ForwardDiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ function Ftdop(q)
_, ψf = schroedinger_dynamic(range(0,1,2), ψi, H)
abs2(ψt'last(ψf))
end
@test FD.derivative(Ftdop, 1.0) isa Any
@test ForwardDiff.derivative(Ftdop, 1.0) isa Any

function Ftdop(q)
H = TimeDependentSum([1, abs2sinpi], [sigmaz(base), q*sigmax(base)])
_, ψf = schroedinger_dynamic(range(0,1,2), ψi, H)
abs2(ψt'last(ψf))
end
@test FD.derivative(Ftdop, 1.0) isa Any
@test ForwardDiff.derivative(Ftdop, 1.0) isa Any

end # testset

0 comments on commit d2e1875

Please sign in to comment.