Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Nov 7, 2023
1 parent 4fa2c6b commit 7c9b72e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mps/dmrg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function dmrg(
sweeps::Sweeps;
which_decomp=nothing,
svd_alg=nothing,
obs=NoObserver(),
observer=NoObserver(),
outputlevel=1,
write_when_maxdim_exceeds=nothing,
write_path=tempdir(),
Expand Down Expand Up @@ -310,7 +310,7 @@ function dmrg(

sweep_is_done = (b == 1 && ha == 2)
measure!(
obs;
observer;
energy,
psi,
projected_operator=PH,
Expand All @@ -334,7 +334,7 @@ function dmrg(
)
flush(stdout)
end
isdone = checkdone!(obs; energy=energy, psi=psi, sweep=sw, outputlevel=outputlevel)
isdone = checkdone!(observer; energy, psi, sweep=sw, outputlevel)
isdone && break
end
return (energy, psi)
Expand Down

0 comments on commit 7c9b72e

Please sign in to comment.