Skip to content
Snippets Groups Projects
Commit f7bc034a authored by Tómas's avatar Tómas
Browse files

fix commutator in validate

parent 4400d00d
No related branches found
No related tags found
No related merge requests found
...@@ -166,9 +166,8 @@ class DiscreteSymmetry: ...@@ -166,9 +166,8 @@ class DiscreteSymmetry:
for symm, conj, sign, name in zip(self[1:], _conj, _signs, _names): for symm, conj, sign, name in zip(self[1:], _conj, _signs, _names):
if symm is None: if symm is None:
continue continue
commutator = symm.T.conj().dot(cond_conj(symm.T.dot(matrix.T), commutator = symm.T.conj().dot((symm.T.dot(matrix.T)).T)
conj).T) commutator = commutator - sign * cond_conj(matrix, conj)
commutator = commutator - sign * matrix
if np.linalg.norm(commutator.data) > 1e-8: if np.linalg.norm(commutator.data) > 1e-8:
return name return name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment