Skip to content

Commit 9880e6d

Browse files
committed
Remove one getindex layer
1 parent 34dcc49 commit 9880e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algorithms/contractions/ctmrg_contractions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ function _pepo_sandwich_expr(sandwichname, H::Int, args...; kwargs...)
15551555
ket_e = _pepo_pepstensor_expr(:(ket($sandwichname)), :top, 1, args...; kwargs...)
15561556
bra_e = _pepo_pepstensor_expr(:(bra($sandwichname)), :bot, H + 1, args...; kwargs...)
15571557
pepo_es = map(1:H) do h
1558-
return _pepo_pepotensor_expr(:(pepo($sandwichname)[$h]), h, args...; kwargs...)
1558+
return _pepo_pepotensor_expr(:(pepo($sandwichname, $h)), h, args...; kwargs...)
15591559
end
15601560

15611561
return ket_e, bra_e, pepo_es

0 commit comments

Comments
 (0)