symmray.symmetries¶
Definitions of various symmetries.
Classes¶
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
Functions¶
|
|
|
|
|
Get a ZN symmetry class. |
|
Get a symmetry instance by name. |
|
Given sequence of parities and a permutation, compute the phase of the |
Module Contents¶
- class symmray.symmetries.Symmetry[source]¶
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- __slots__ = ()¶
- abstractmethod sign(charge, dual=True)[source]¶
Negate a charge according to the symmetry and flag
dual.
- abstractmethod parity(charge)[source]¶
Return the parity, 0 or 1, of a charge according to the symmetry.
- class symmray.symmetries.ZN[source]¶
Bases:
SymmetryHelper class that provides a standard way to create an ABC using inheritance.
- __slots__ = ('N',)¶
- class symmray.symmetries.Z2[source]¶
Bases:
ZNHelper class that provides a standard way to create an ABC using inheritance.
- N = 2¶
- class symmray.symmetries.U1[source]¶
Bases:
SymmetryHelper class that provides a standard way to create an ABC using inheritance.
- __slots__ = ()¶
- class symmray.symmetries.Z2Z2[source]¶
Bases:
SymmetryHelper class that provides a standard way to create an ABC using inheritance.
- __slots__ = ()¶
- combine(*charges: tuple[int, int]) tuple[int, int][source]¶
Combine / add charges according to the symmetry.
- sign(charge: tuple[int, int], dual=True) tuple[int, int][source]¶
Negate a charge according to the symmetry and flag
dual.
- class symmray.symmetries.U1U1[source]¶
Bases:
SymmetryHelper class that provides a standard way to create an ABC using inheritance.
- __slots__ = ()¶
- combine(*charges: tuple[int, int]) tuple[int, int][source]¶
Combine / add charges according to the symmetry.
- sign(charge: tuple[int, int], dual=True) tuple[int, int][source]¶
Negate a charge according to the symmetry and flag
dual.
- symmray.symmetries.get_symmetry(symmetry: str | Symmetry) Symmetry[source]¶
Get a symmetry instance by name.