Skip to content

Commit 0aa0ecb

Browse files
committed
format
1 parent 883d244 commit 0aa0ecb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/algorithms/groundstate/idmrg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct IDMRGState{S, O, E, T}
6666
ϵ::Float64
6767
energy::T
6868
end
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))
7171
end
7272

@@ -109,7 +109,7 @@ function find_groundstate(mps, operator, alg::alg_type, envs = environments(mps,
109109
end
110110

111111
function 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

Comments
 (0)