Skip to content

Commit 765f277

Browse files
authored
Bump ITensors and KrylovKit versions (#108)
1 parent 65c24b3 commit 765f277

9 files changed

Lines changed: 16 additions & 24 deletions

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorInfiniteMPS"
22
uuid = "1dc1fb26-a137-4954-ae60-1bd4106e95ad"
33
authors = ["Matthew Fishman <mfishman@flatironinstitute.org> and contributors"]
4-
version = "0.2.1"
4+
version = "0.2.2"
55

66
[deps]
77
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
@@ -20,10 +20,10 @@ SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"
2020
Compat = "3, 4"
2121
HDF5 = "0.15, 0.16, 0.17"
2222
ITensorMPS = "0.3"
23-
ITensors = "0.7, 0.8"
23+
ITensors = "0.7, 0.8, 0.9"
2424
Infinities = "0.1"
2525
IterTools = "1"
26-
KrylovKit = "0.5, 0.6, 0.7, 0.8, 0.9"
26+
KrylovKit = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10"
2727
OffsetArrays = "1"
2828
QuadGK = "2"
2929
SplitApplyCombine = "1.2.2"

examples/vumps/src/vumps_subspace_expansion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ function vumps_subspace_expansion(
2525
H, ψ; outer_iters, subspace_expansion_kwargs, vumps_kwargs
2626
)
2727
return tdvp_subspace_expansion(
28-
H, ψ; time_step=-Inf, outer_iters, subspace_expansion_kwargs, vumps_kwargs
28+
H, ψ; time_step=(-Inf), outer_iters, subspace_expansion_kwargs, vumps_kwargs
2929
)
3030
end

examples/vumps/vumps_hubbard_extended.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ println("\nQN sector of starting finite MPS")
9898
@show flux(ψfinite)
9999

100100
nsweeps = 15
101-
maxdims =
102-
min.(maxdim, [2, 2, 2, 2, 4, 4, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, 32, 32, 32, 32, 50])
101+
maxdims = min.(
102+
maxdim, [2, 2, 2, 2, 4, 4, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, 32, 32, 32, 32, 50]
103+
)
103104
@show maxdims
104105

105106
## setmaxdim!(sweeps, maxdims...)
@@ -119,7 +120,7 @@ Nup_finite = ITensorMPS.expect(ψfinite, "Nup")[nfinite:(nfinite + 1)]
119120
Ndn_finite = ITensorMPS.expect(ψfinite, "Ndn")[nfinite:(nfinite + 1)]
120121
Sz_finite = ITensorMPS.expect(ψfinite, "Sz")[nfinite:(nfinite + 1)]
121122

122-
energy_exact = reference(model, Observable("energy"); U=model_params.U / model_params.t)
123+
energy_exact = reference(model, Observable("energy"); U=(model_params.U / model_params.t))
123124

124125
corr_infinite = correlation_matrix(finite_mps(ψ, 1:10), "Cdagup", "Cup"; sites=2:11)
125126
corr_finite = correlation_matrix(

src/vumps_generic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ end
222222

223223
function vumps(
224224
args...;
225-
time_step=-Inf,
225+
time_step=(-Inf),
226226
eigsolve_tol=(x -> x / 100),
227227
solver_tol=eigsolve_tol,
228228
eager=true,

test/test_iMPOConversions.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ end
146146
models = [(Model"heisenbergNNN"(), "S=1/2"), (Model"hubbardNNN"(), "Electron")]
147147
@testset "H=$model, Ncell=$Ncell, NNN=$NNN, Antiferro=$Af, qns=$qns" for (model, site) in
148148
models,
149-
qns in [false, true],
150-
Ncell in 2:6,
151-
NNN in 1:(Ncell - 1),
149+
qns in [false, true], Ncell in 2:6, NNN in 1:(Ncell - 1),
152150
Af in [true, false]
153151

154152
if isodd(Ncell) && Af #skip test since Af state does fit inside odd cells.

test/test_vumps.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ end
4343
[
4444
"sequential", "parallel"
4545
],
46-
conserve_qns in [true, false],
47-
nsites in [1, 2, 3, 4],
48-
time_step in [-Inf, -0.5],
46+
conserve_qns in [true, false], nsites in [1, 2, 3, 4], time_step in [-Inf, -0.5],
4947
localham_type in [ITensor, MPO]
5048

5149
if (localham_type == ITensor) && (nsites > 2)

test/test_vumps_extendedising.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ end
4343
maxiter = 20
4444
outer_iters = 4
4545
for multisite_update_alg in ["sequential", "parallel"],
46-
conserve_qns in [true, false],
47-
nsites in [1, 2],
46+
conserve_qns in [true, false], nsites in [1, 2],
4847
time_step in [-Inf, -0.5]
4948

5049
vumps_kwargs = (

test/test_vumpsmpo.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ end
4545
[
4646
"sequential", "parallel"
4747
],
48-
conserve_qns in [true, false],
49-
N in [1, 2],
48+
conserve_qns in [true, false], N in [1, 2],
5049
time_step in [-Inf]
5150

5251
vumps_kwargs = (
@@ -117,8 +116,7 @@ end
117116
energy_finite = expect_three_site(ψfinite, hnfinite, nfinite)
118117

119118
for multisite_update_alg in ["sequential"],
120-
conserve_qns in [true, false],
121-
nsites in [1, 2],
119+
conserve_qns in [true, false], nsites in [1, 2],
122120
time_step in [-Inf]
123121

124122
vumps_kwargs = (
@@ -190,8 +188,7 @@ end
190188
temp_translatecell(i::Index, n::Integer) = ITensorInfiniteMPS.translatecelltags(i, n)
191189

192190
for multisite_update_alg in ["sequential"],
193-
conserve_qns in [true, false],
194-
nsite in [1, 2, 3],
191+
conserve_qns in [true, false], nsite in [1, 2, 3],
195192
time_step in [-Inf]
196193

197194
if nsite > 1 && isodd(nsite) && conserve_qns

test/test_vumpsmpo_fqhe.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ end
5252
[
5353
"sequential"
5454
],
55-
conserve_qns in [true],
56-
nsites in [6],
55+
conserve_qns in [true], nsites in [6],
5756
time_step in [-Inf]
5857

5958
vumps_kwargs = (; multisite_update_alg, tol, maxiter, outputlevel=0, time_step)

0 commit comments

Comments
 (0)