Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/vumps/src/vumps_subspace_expansion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 4 additions & 3 deletions examples/vumps/vumps_hubbard_extended.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/vumps_generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions test/test_iMPOConversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 1 addition & 3 deletions test/test_vumps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions test/test_vumps_extendedising.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down
9 changes: 3 additions & 6 deletions test/test_vumpsmpo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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 = (
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions test/test_vumpsmpo_fqhe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down