Skip to content

Commit

Permalink
Fix bug in the change of basis to Isotypic basis.
Browse files Browse the repository at this point in the history
- This bug was creating an innapropiate transformation from the original basis of a representation to the Isotypic basis.
  • Loading branch information
Danfoa committed Nov 16, 2023
1 parent ba1eff4 commit 4a77425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion morpho_symm/utils/rep_theory_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def isotypic_decomp_representation(rep: Representation) -> [Representation]:
oneline_permutation = np.concatenate(oneline_permutation)
P_in2iso = permutation_matrix(oneline_permutation)

Q_iso = rep.change_of_basis_inv @ P_in2iso.T
Q_iso = rep.change_of_basis @ P_in2iso.T
rep_iso_basis = directsum(list(ordered_isotypic_reps.values()),
name=rep.name + '-Iso',
change_of_basis=Q_iso)
Expand Down

0 comments on commit 4a77425

Please sign in to comment.