Skip to content

Commit 895959b

Browse files
committed
macroexpand generated expressions
1 parent aec7690 commit 895959b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transfermatrix/transfer.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ apply a transfer matrix to the left.
2121
t_top = tensorexpr(:A, 2:(N₂ + 1), -(N₁ + 1))
2222
t_bot = tensorexpr(:Ā, (1, (3:(N₂ + 1))...), -1)
2323
t_in = tensorexpr(:v, 1, (-(2:N₁)..., 2))
24-
return :(return @plansor $t_out := $t_in * $t_top * conj($t_bot))
24+
return macroexpand(:(return @plansor $t_out := $t_in * $t_top * conj($t_bot)))
2525
end
2626

2727
"""
@@ -41,7 +41,7 @@ apply a transfer matrix to the right.
4141
t_top = tensorexpr(:A, (-1, reverse(3:(N₂ + 1))...), 1)
4242
t_bot = tensorexpr(:Ā, (-(N₁ + 1), reverse(3:(N₂ + 1))...), 2)
4343
t_in = tensorexpr(:v, 1, (-(2:N₁)..., 2))
44-
return :(return @plansor $t_out := $t_top * conj($t_bot) * $t_in)
44+
return macroexpand(:(return @plansor $t_out := $t_top * conj($t_bot) * $t_in))
4545
end
4646

4747
# transfer, but the upper A is an excited tensor

0 commit comments

Comments
 (0)