We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ed3663 commit b8aff48Copy full SHA for b8aff48
varipeps/optimization/optimizer.py
@@ -302,6 +302,10 @@ def random_noise(a):
302
if isinstance(input_tensors, collections.abc.Sequence) and isinstance(
303
input_tensors[0], PEPS_Unit_Cell
304
):
305
+ if len(input_tensors[0].get_unique_tensors()) != 1:
306
+ raise ValueError(
307
+ "You want to use spiral PEPS but you use a unit cell with more than one site. Seems wrong to me!"
308
+ )
309
working_tensors = cast(
310
List[jnp.ndarray],
311
[i.tensor for i in input_tensors[0].get_unique_tensors()],
0 commit comments