Skip to content

Commit bbc3bc4

Browse files
committed
Fix undo_bond_tensor_last
1 parent b6aeff3 commit bbc3bc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/algorithms/truncation/bond_tensor.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ end
101101
"""
102102
Undo the decomposition in `bond_tensor_last`.
103103
"""
104-
function undo_bond_tensor_last(Y::PEPSOrth, b::MPSTensor)
104+
function undo_bond_tensor_last(Y::PEPSOrth, b::MPSTensor; gate_ax::Integer = 1)
105+
@assert gate_ax == 1
105106
return @tensor A[-1; -2 -3 -4 -5] := b[-5 -1 1] * Y[-2 -3 -4 1]
106107
end
107108
function undo_bond_tensor_last(Y::PEPOOrth, b::MPSTensor; gate_ax::Integer = 1)

0 commit comments

Comments
 (0)