We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c1dd0 commit e61373cCopy full SHA for e61373c
varipeps/contractions/apply.py
@@ -121,7 +121,10 @@ class definition for details.
121
if f == "tensor":
122
tensors.append(peps_tensors[ti])
123
elif f == "tensor_conj":
124
- tensors.append(peps_tensors[ti].conj())
+ if hasattr(peps_tensor_objs[ti], "tensor_conj") and peps_tensor_objs[ti].tensor_conj is not None:
125
+ tensors.append(peps_tensor_objs[ti].tensor_conj)
126
+ else:
127
+ tensors.append(peps_tensors[ti].conj())
128
else:
129
tensors.append(getattr(peps_tensor_objs[ti], f))
130
0 commit comments