-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check representation matrix commutation relation for the CSS orthogon…
…ality condition of the 2BGA code
- Loading branch information
Showing
5 changed files
with
23 additions
and
3 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 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_a = representation_matrix(b, :right) | ||
return L_a * R_a == R_a * 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
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