Skip to content

Commit 332f202

Browse files
committed
tensor 3d: error on peps mode for cyclic contractions
1 parent fe0531d commit 332f202

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quimb/tensor/tensor_3d.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,12 @@ def _contract_boundary_core(
10701070
compress_opts=None,
10711071
canonize_opts=None,
10721072
):
1073+
if self.is_cyclic_x() or self.is_cyclic_y() or self.is_cyclic_z():
1074+
raise NotImplementedError(
1075+
"Cannot yet use _contract_boundary_core "
1076+
"(i.e. `mode=\"peps\"`) on cyclic networks."
1077+
)
1078+
10731079
canonize_opts = ensure_dict(canonize_opts)
10741080
canonize_opts.setdefault("absorb", "right")
10751081
compress_opts = ensure_dict(compress_opts)

0 commit comments

Comments
 (0)