Skip to content

Commit c219c58

Browse files
committed
Remove observable monitoring
1 parent b50f478 commit c219c58

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/algorithms/time_evolution/simpleupdate.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ end
245245

246246
function MPSKit.time_evolve(
247247
it::TimeEvolver{<:SimpleUpdate}, H::LocalOperator;
248-
tol::Float64 = 1.0e-8, check_interval::Int = 500,
249-
observables::Vector{<:LocalOperator} = LocalOperator[]
248+
tol::Float64 = 1.0e-8, check_interval::Int = 500
250249
)
251250
time_start = time()
252251
@info "--- Time evolution (simple update), dt = $(it.dt) ---"
@@ -268,10 +267,6 @@ function MPSKit.time_evolve(
268267
"SU iter %-7d: E ≈ %.5f, |Δλ| = %.3e. Time = %.3f s/it",
269268
iter, real(energy), diff, time1 - time0
270269
)
271-
if !isempty(observables)
272-
expvals = [expectation_value(psi, obs, ctmenv) for obs in observables]
273-
@info "Observables ≈ $(expvals)."
274-
end
275270
end
276271
if (iter == it.nstep) && (diff >= tol)
277272
@warn "SU: bond weights have not converged."

test/timeevol/cluster_projectors.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,14 @@ end
117117
end
118118
wts0 = SUWeight(peps0)
119119
ham = hubbard_model(Float64, Trivial, U1Irrep, InfiniteSquare(Nr, Nc); t = 1.0, U = 6.0, mu = 3.0)
120-
observables = [
121-
LocalOperator(physicalspace(ham), [(1, 1)] => e_number(Float64, Trivial, U1Irrep)),
122-
]
123120
# applying 2-site gates decomposed to MPO or not,
124121
# resulting energy should be almost the same
125122
e_sites = map((true, false)) do force_mpo
126123
peps, wts = deepcopy(peps0), deepcopy(wts0)
127124
trunc = truncerror(; atol = 1.0e-10) & truncrank(4)
128125
alg = SimpleUpdate(; trunc, force_mpo)
129126
evolver = TimeEvolver(peps, ham, 0.01, 10000, alg, wts)
130-
peps, wts, = time_evolve(evolver, ham; tol = 1.0e-6, observables, check_interval = 1000)
127+
peps, wts, = time_evolve(evolver, ham; tol = 1.0e-6, check_interval = 1000)
131128
normalize!.(peps.A, Inf)
132129
env = CTMRGEnv(wts)
133130
for trunc in truncs_env

0 commit comments

Comments
 (0)