-
Notifications
You must be signed in to change notification settings - Fork 40
Description
During groundstate simulations for MPS close to exact analytical state (e.g. SU(2)), the GradientGrassmann can hang in the linesearch function of OptimKit.jl
This is due to the maxiter taking its default value (typemax(Int) = 9223372036854775807) instead of the maxiter argument provided for at least some of the Optim methods.
Here is the result of println(alg) inside find_groundstate in gradient_grassmann.jl
`GradientGrassmann(ConjugateGradient{HagerZhang{Rational{Int64}}, Float64, HagerZhangLineSearch{Rational{Int64}}}(HagerZhang{Rational{Int64}}(2//5, 1//1), 44, 1.0e-12, HagerZhangLineSearch{Rational{Int64}}(1//10, 9//10, 1//1000000, 1//2, 2//3, 5//1, 9223372036854775807, 98), 9223372036854775807, 100), O
ptimKit._finalize!)'
Note the two typemax that are still present.
I do not know enough about the algorithm here to be sure of the fix.