Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Jun 12, 2024
1 parent 9e14f14 commit 0a7355e
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/solvers/dmrg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,6 @@ function ITensorMPS.dmrg(
return eigval, state
end

function ITensorMPS.dmrg(
operators::Vector{ITensorNetwork},
init_state;
nsweeps,
nsites=2,
updater=bp_eigsolve_updater,
inserter=bp_inserter,
extracter=bp_extracter,
sweep_plan_func=bp_sweep_plan,
bp_sweep_kwargs=(;),
(region_observer!)=nothing,
kwargs...,
)
eigvals_ref = Ref{Any}()
region_observer! = compose_observers(
region_observer!, ValuesObserver((; eigvals=eigvals_ref))
)
state = alternating_update(
operators,
init_state;
nsweeps,
nsites,
updater,
region_observer!,
inserter,
extracter,
sweep_plan_func,
kwargs...,
)
eigval = only(eigvals_ref[])
return eigval, state
end

"""
Overload of `KrylovKit.eigsolve`.
"""
Expand Down

0 comments on commit 0a7355e

Please sign in to comment.