You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw(ArgumentError("Got different values for pivottolerance and tolerance in optimize!(TCI2). For TCI2, both of these options have the same meaning. Please assign only `tolerance`."))
682
+
else
683
+
@warn"The option `pivottolerance` of `optimize!(tci::TensorCI2, f)` is deprecated. Please update your code to use `tolerance`, as `pivottolerance` will be removed in the future."
684
+
tol = pivottolerance
685
+
end
686
+
elseif!isnothing(tolerance)
687
+
tol = tolerance
688
+
else# pivottolerance == tolerance == nothing, therefore set tol to default value
689
+
tol =1e-8
690
+
end
691
+
678
692
tstart =time_ns()
679
693
680
-
if maxbonddim >=typemax(Int) &&tolerance<=0
694
+
if maxbonddim >=typemax(Int) &&tol<=0
681
695
throw(ArgumentError(
682
696
"Specify either tolerance > 0 or some maxbonddim; otherwise, the convergence criterion is not reachable!"
@test_logs (:warn, "The option `pivottolerance` of `optimize!(tci::TensorCI2, f)` is deprecated. Please update your code to use `tolerance`, as `pivottolerance` will be removed in the future.") optimize!(tci, f; pivottolerance =0.1)
180
+
end
181
+
169
182
@testset"Lorentz MPS with ValueType=$(typeof(coeff)), pivotsearch=$pivotsearch"for coeff in [1.0, 0.5-1.0im], pivotsearch in [:full, :rook]
0 commit comments