Skip to content

Commit

Permalink
copy the state at the beginning of default_inserter (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire authored Jun 12, 2024
1 parent b4659b9 commit a9501bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/solvers/insert/insert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function default_inserter(
cutoff=nothing,
internal_kwargs,
)
state = copy(state)
spec = nothing
other_vertex = setdiff(support(region), [ortho_vert])
if !isempty(other_vertex)
Expand All @@ -37,10 +38,10 @@ function default_inserter(
phi::ITensor,
region::NamedEdge,
ortho;
normalize=false,
cutoff=nothing,
maxdim=nothing,
mindim=nothing,
cutoff=nothing,
normalize=false,
internal_kwargs,
)
v = only(setdiff(support(region), [ortho]))
Expand Down

0 comments on commit a9501bc

Please sign in to comment.