diff --git a/examples/vumps/src/vumps_subspace_expansion.jl b/examples/vumps/src/vumps_subspace_expansion.jl index 8468afd..d337a0e 100644 --- a/examples/vumps/src/vumps_subspace_expansion.jl +++ b/examples/vumps/src/vumps_subspace_expansion.jl @@ -25,6 +25,6 @@ function vumps_subspace_expansion( H, ψ; outer_iters, subspace_expansion_kwargs, vumps_kwargs ) return tdvp_subspace_expansion( - H, ψ; time_step=-Inf, outer_iters, subspace_expansion_kwargs, vumps_kwargs + H, ψ; time_step=(-Inf), outer_iters, subspace_expansion_kwargs, vumps_kwargs ) end diff --git a/examples/vumps/vumps_hubbard_extended.jl b/examples/vumps/vumps_hubbard_extended.jl index c899d82..20c7e63 100644 --- a/examples/vumps/vumps_hubbard_extended.jl +++ b/examples/vumps/vumps_hubbard_extended.jl @@ -98,8 +98,9 @@ println("\nQN sector of starting finite MPS") @show flux(ψfinite) nsweeps = 15 -maxdims = - min.(maxdim, [2, 2, 2, 2, 4, 4, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, 32, 32, 32, 32, 50]) +maxdims = min.( + maxdim, [2, 2, 2, 2, 4, 4, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, 32, 32, 32, 32, 50] +) @show maxdims ## setmaxdim!(sweeps, maxdims...) @@ -119,7 +120,7 @@ Nup_finite = ITensorMPS.expect(ψfinite, "Nup")[nfinite:(nfinite + 1)] Ndn_finite = ITensorMPS.expect(ψfinite, "Ndn")[nfinite:(nfinite + 1)] Sz_finite = ITensorMPS.expect(ψfinite, "Sz")[nfinite:(nfinite + 1)] -energy_exact = reference(model, Observable("energy"); U=model_params.U / model_params.t) +energy_exact = reference(model, Observable("energy"); U=(model_params.U / model_params.t)) corr_infinite = correlation_matrix(finite_mps(ψ, 1:10), "Cdagup", "Cup"; sites=2:11) corr_finite = correlation_matrix( diff --git a/src/vumps_generic.jl b/src/vumps_generic.jl index 85d7db6..6ecf455 100644 --- a/src/vumps_generic.jl +++ b/src/vumps_generic.jl @@ -222,7 +222,7 @@ end function vumps( args...; - time_step=-Inf, + time_step=(-Inf), eigsolve_tol=(x -> x / 100), solver_tol=eigsolve_tol, eager=true, diff --git a/test/test_iMPOConversions.jl b/test/test_iMPOConversions.jl index 45ac32f..00da676 100644 --- a/test/test_iMPOConversions.jl +++ b/test/test_iMPOConversions.jl @@ -146,9 +146,7 @@ end models = [(Model"heisenbergNNN"(), "S=1/2"), (Model"hubbardNNN"(), "Electron")] @testset "H=$model, Ncell=$Ncell, NNN=$NNN, Antiferro=$Af, qns=$qns" for (model, site) in models, - qns in [false, true], - Ncell in 2:6, - NNN in 1:(Ncell - 1), + qns in [false, true], Ncell in 2:6, NNN in 1:(Ncell - 1), Af in [true, false] if isodd(Ncell) && Af #skip test since Af state does fit inside odd cells. diff --git a/test/test_vumps.jl b/test/test_vumps.jl index 9921697..dc6398b 100644 --- a/test/test_vumps.jl +++ b/test/test_vumps.jl @@ -43,9 +43,7 @@ end [ "sequential", "parallel" ], - conserve_qns in [true, false], - nsites in [1, 2, 3, 4], - time_step in [-Inf, -0.5], + conserve_qns in [true, false], nsites in [1, 2, 3, 4], time_step in [-Inf, -0.5], localham_type in [ITensor, MPO] if (localham_type == ITensor) && (nsites > 2) diff --git a/test/test_vumps_extendedising.jl b/test/test_vumps_extendedising.jl index e6a8de1..5a2bfcd 100644 --- a/test/test_vumps_extendedising.jl +++ b/test/test_vumps_extendedising.jl @@ -43,8 +43,7 @@ end maxiter = 20 outer_iters = 4 for multisite_update_alg in ["sequential", "parallel"], - conserve_qns in [true, false], - nsites in [1, 2], + conserve_qns in [true, false], nsites in [1, 2], time_step in [-Inf, -0.5] vumps_kwargs = ( diff --git a/test/test_vumpsmpo.jl b/test/test_vumpsmpo.jl index 817103a..f593fdf 100644 --- a/test/test_vumpsmpo.jl +++ b/test/test_vumpsmpo.jl @@ -45,8 +45,7 @@ end [ "sequential", "parallel" ], - conserve_qns in [true, false], - N in [1, 2], + conserve_qns in [true, false], N in [1, 2], time_step in [-Inf] vumps_kwargs = ( @@ -117,8 +116,7 @@ end energy_finite = expect_three_site(ψfinite, hnfinite, nfinite) for multisite_update_alg in ["sequential"], - conserve_qns in [true, false], - nsites in [1, 2], + conserve_qns in [true, false], nsites in [1, 2], time_step in [-Inf] vumps_kwargs = ( @@ -190,8 +188,7 @@ end temp_translatecell(i::Index, n::Integer) = ITensorInfiniteMPS.translatecelltags(i, n) for multisite_update_alg in ["sequential"], - conserve_qns in [true, false], - nsite in [1, 2, 3], + conserve_qns in [true, false], nsite in [1, 2, 3], time_step in [-Inf] if nsite > 1 && isodd(nsite) && conserve_qns diff --git a/test/test_vumpsmpo_fqhe.jl b/test/test_vumpsmpo_fqhe.jl index a59e8c5..f8b7728 100644 --- a/test/test_vumpsmpo_fqhe.jl +++ b/test/test_vumpsmpo_fqhe.jl @@ -52,8 +52,7 @@ end [ "sequential" ], - conserve_qns in [true], - nsites in [6], + conserve_qns in [true], nsites in [6], time_step in [-Inf] vumps_kwargs = (; multisite_update_alg, tol, maxiter, outputlevel=0, time_step)