We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da4d3de commit 34b692aCopy full SHA for 34b692a
varipeps/ctmrg/routine.py
@@ -538,12 +538,15 @@ def calc_ctmrg_env(
538
corner_singular_vals = None
539
540
while any(
541
- i.C1.shape[0] != i.chi for i in working_unitcell.get_unique_tensors()
+ getattr(i, j).shape[0] != i.chi or getattr(i, j).shape[1] != i.chi
542
+ for i in working_unitcell.get_unique_tensors()
543
+ for j in ("C1", "C2", "C3", "C4")
544
) or (
545
hasattr(working_unitcell.get_unique_tensors()[0], "T4_ket")
546
and any(
- i.T4_ket.shape[0] != i.interlayer_chi
547
+ getattr(i, j).shape[0] != i.interlayer_chi
548
for i in working_unitcell.get_unique_tensors()
549
+ for j in ("T1_bra", "T2_ket", "T3_bra", "T4_ket")
550
)
551
):
552
(
0 commit comments