-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
check_repr_commutation_relation
to test the CSS orthogonality c…
…ondition for 2BGA's Group Algebra with a General Group `G` (#403) Co-authored-by: Stefan Krastanov <github.acc@krastanov.org>
- Loading branch information
Showing
4 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
Checks the commutation relation between the left and right representation matrices | ||
for two randomly-sampled elements `a` and `b` in the group algebra `ℱ[G]` with a general group `G`. | ||
It verifies the commutation relation that states, `L(a)·R(b) = R(b)·L(a)`. This | ||
property shows that matrices from the left and right representation sets commute | ||
with each other, which is an important property related to the CSS orthogonality | ||
condition. | ||
""" | ||
function check_repr_commutation_relation(GA::GroupAlgebra) | ||
a, b = rand(GA), rand(GA) | ||
# Check commutation relation: L(a)R(b) = R(b)L(a) | ||
L_a = representation_matrix(a) | ||
R_b = representation_matrix(b, :right) | ||
return L_a * R_b == R_b * L_a | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters