Skip to content

Commit 5ddca54

Browse files
committed
fix tensor copy when loading
1 parent 19017de commit 5ddca54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acead/ipeps/tensor_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def copy(self, tensor_network):
6464
self.site_list = tensor_network.site_list.copy()
6565
self.bond_list = tensor_network.bond_list.copy()
6666
for site in self.site_list:
67-
self[site] = SiteTensor(self.dims, tensor_network[site], dtype=self.dtype, device=self.device)
67+
self[site] = SiteTensor(self.dims, tensor_network[site]['A'], dtype=self.dtype, device=self.device)
6868

6969
def save(self, prefix='ipeps'):
7070
"""

0 commit comments

Comments
 (0)