@@ -66,7 +66,7 @@ struct IDMRGState{S, O, E, T}
6666 ϵ:: Float64
6767 energy:: T
6868end
69- function IDMRGState {T} (mps:: S , operator:: O , envs:: E , iter:: Int , ϵ:: Float64 , energy) where {S, O, E, T}
69+ function IDMRGState {T} (mps:: S , operator:: O , envs:: E , iter:: Int , ϵ:: Float64 , energy) where {S, O, E, T}
7070 return IDMRGState {S, O, E, T} (mps, operator, envs, iter, ϵ, T (energy))
7171end
7272
@@ -109,7 +109,7 @@ function find_groundstate(mps, operator, alg::alg_type, envs = environments(mps,
109109end
110110
111111function Base. iterate (
112- it:: IterativeSolver{alg_type} , state:: IDMRGState{<:Any, <:Any, <:Any, T} = it. state
112+ it:: IterativeSolver{alg_type} , state:: IDMRGState{<:Any, <:Any, <:Any, T} = it. state
113113 ) where {alg_type <: Union{<:IDMRG, <:IDMRG2} , T}
114114 mps, envs, C_old, E_new = localupdate_step! (it, state)
115115
@@ -127,7 +127,7 @@ function Base.iterate(
127127 end
128128
129129 # New energy
130- ΔE = (E_new - state. energy)/ 2
130+ ΔE = (E_new - state. energy) / 2
131131 (alg_type <: IDMRG2 && length (mps) == 2 ) && (ΔE /= 2 ) # This extra factor gives the correct energy per unit cell. I have no clue why right now.
132132
133133 # update state
0 commit comments