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

fix commutator in validate

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