Skip to content

Commit a9501bc

Browse files
copy the state at the beginning of default_inserter (#190)
1 parent b4659b9 commit a9501bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/solvers/insert/insert.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function default_inserter(
1414
cutoff=nothing,
1515
internal_kwargs,
1616
)
17+
state = copy(state)
1718
spec = nothing
1819
other_vertex = setdiff(support(region), [ortho_vert])
1920
if !isempty(other_vertex)
@@ -37,10 +38,10 @@ function default_inserter(
3738
phi::ITensor,
3839
region::NamedEdge,
3940
ortho;
40-
normalize=false,
41+
cutoff=nothing,
4142
maxdim=nothing,
4243
mindim=nothing,
43-
cutoff=nothing,
44+
normalize=false,
4445
internal_kwargs,
4546
)
4647
v = only(setdiff(support(region), [ortho]))

0 commit comments

Comments
 (0)