Skip to content

Commit

Permalink
Try fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Mar 28, 2024
1 parent b258438 commit 9201bac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/apply.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using ITensors.ContractionSequenceOptimization: optimal_contraction_sequence
using ITensors.ITensorMPS: siteinds
using LinearAlgebra: eigen, norm, svd
using NamedGraphs: NamedEdge
using Observers: insert_function!
using Observers: Observers

function sqrt_and_inv_sqrt(
A::ITensor; ishermitian=false, cutoff=nothing, regularization=nothing
Expand Down
4 changes: 3 additions & 1 deletion src/solvers/alternating_update/alternating_update.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Observers: Observers

function alternating_update(
operator,
init_state::AbstractTTN;
Expand Down Expand Up @@ -77,7 +79,7 @@ function alternating_update(
end
end

update!(sweep_observer!; state, which_sweep, sweep_time, outputlevel, sweep_plans)
Observers.update!(sweep_observer!; state, which_sweep, sweep_time, outputlevel, sweep_plans)
!isnothing(sweep_printer) &&
sweep_printer(; state, which_sweep, sweep_time, outputlevel, sweep_plans)
checkdone(;
Expand Down
4 changes: 3 additions & 1 deletion src/solvers/alternating_update/region_update.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Observers: Observers

#ToDo: generalize beyond 2-site
#ToDo: remove concept of orthogonality center for generality
function current_ortho(sweep_plan, which_region_update)
Expand Down Expand Up @@ -122,7 +124,7 @@ function region_update(
region_kwargs...,
internal_kwargs...,
)
update!(region_observer!; all_kwargs...)
Observers.update!(region_observer!; all_kwargs...)
!(isnothing(region_printer)) && region_printer(; all_kwargs...)

return state, projected_operator
Expand Down

0 comments on commit 9201bac

Please sign in to comment.