File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ apply a transfer matrix to the left.
21
21
t_top = tensorexpr (:A , 2 : (N₂ + 1 ), - (N₁ + 1 ))
22
22
t_bot = tensorexpr (:Ā , (1 , (3 : (N₂ + 1 )). .. ), - 1 )
23
23
t_in = tensorexpr (:v , 1 , (- (2 : N₁). .. , 2 ))
24
- return :(return @plansor $ t_out := $ t_in * $ t_top * conj ($ t_bot))
24
+ return macroexpand (@__MODULE__ ,
25
+ :(return @plansor $ t_out := $ t_in * $ t_top * conj ($ t_bot)))
25
26
end
26
27
27
28
"""
@@ -41,7 +42,8 @@ apply a transfer matrix to the right.
41
42
t_top = tensorexpr (:A , (- 1 , reverse (3 : (N₂ + 1 ))... ), 1 )
42
43
t_bot = tensorexpr (:Ā , (- (N₁ + 1 ), reverse (3 : (N₂ + 1 ))... ), 2 )
43
44
t_in = tensorexpr (:v , 1 , (- (2 : N₁). .. , 2 ))
44
- return :(return @plansor $ t_out := $ t_top * conj ($ t_bot) * $ t_in)
45
+ return macroexpand (@__MODULE__ ,
46
+ :(return @plansor $ t_out := $ t_top * conj ($ t_bot) * $ t_in))
45
47
end
46
48
47
49
# transfer, but the upper A is an excited tensor
You can’t perform that action at this time.
0 commit comments