qldpc.external.groups
Module for loading groups from GroupNames or the GAP computer algebra system.
See https://groupnames.org and https://www.gap-system.org.
Attributes
Functions
|
Retrieve GAP group generators. |
|
Retrieve group generators from MAGMA. |
|
Retrieve the webpage of an indexed GAP group on GroupNames.org. |
|
Get the primitive central idempotents of a group algebra over a finite field. |
|
Get the number of 'SmallGroup's of a given order. |
|
Get a description of the structure of a SmallGroup from GAP. |
|
Retrieve GAP group generators from GAP directly. |
Retrieve GAP group generators from GroupNames.org. |
|
|
Try to retrieve the webpage listing all groups up to a given order. |
|
Parse newline-separated GAP permutations. |
Module Contents
- qldpc.external.groups.get_generators(group: str, *, warning_to_raise_if_calling_gap: str | None = None) GeneratorsList[source]
Retrieve GAP group generators.
This function tries a local database, then GAP (a subprocess), then a GroupNames.org web lookup, so it may run GAP and access the network.
- qldpc.external.groups.get_generators_from_magma(group: str) GeneratorsList[source]
Retrieve group generators from MAGMA.
This function uses a manual copy/paste workflow that prints the command, copies it to the system clipboard, and reads the pasted output from standard input (blocking, and raising
EOFErrorif standard input is closed).
- qldpc.external.groups.get_group_url(order: int, index: int) str | None[source]
Retrieve the webpage of an indexed GAP group on GroupNames.org.
- qldpc.external.groups.get_primitive_central_idempotents(group: str, field: int) IdempotentsList | None[source]
Get the primitive central idempotents of a group algebra over a finite field.
This function uses the GAP Wedderga package (https://gap-packages.github.io/wedderga/), run in a subprocess.
Primitive central idempotents of a ring are nonzero elements that:
square to themselves (they are idempotent)
commute with all other elements of the ring (they lie in the ring’s center), and
cannot be decomposed into a sum of two nonzero orthogonal idempotents.
Two idempotents g, h are orthogonal if
g * h = h * g = 0.Intuitively, primitive central idempotents act like projectors onto orthogonal components of a ring.
See https://en.wikipedia.org/wiki/Idempotent_(ring_theory).
Returns a tuple of idempotents, where each idempotent is represented by a tuple of terms (to sum), and each term is in turn a tuple (coefficient, permutation). Here the coefficient is an element of galois.GF(field) cast to an integer, and the permutation is expressed in cyclic form, namely as a tuple of tuples of integers.
- qldpc.external.groups.get_small_group_number(order: int) int[source]
Get the number of ‘SmallGroup’s of a given order.
This function uses the GAP SmallGrp package (https://gap-packages.github.io/SmallGrp/) if available, else a GroupNames.org lookup.
- qldpc.external.groups.get_small_group_structure(order: int, index: int) str[source]
Get a description of the structure of a SmallGroup from GAP.
- qldpc.external.groups.maybe_get_generators_from_gap(group: str, *, warning: str | None = None) GeneratorsList | None[source]
Retrieve GAP group generators from GAP directly.
- qldpc.external.groups.maybe_get_generators_from_groupnames(group: str) GeneratorsList | None[source]
Retrieve GAP group generators from GroupNames.org.
- qldpc.external.groups.maybe_get_webpage(order: int) str | None[source]
Try to retrieve the webpage listing all groups up to a given order.
- qldpc.external.groups.parse_gap_permutations(permutations: str, cycle_sep: str = ',') GeneratorsList[source]
Parse newline-separated GAP permutations.
As an example, the permutation “(1,2)(3,4)” becomes [(0, 1), (2, 3)]. This function returns a list of permutations; one for each line in the input string.
- qldpc.external.groups.GROUPNAMES_URL = 'https://people.maths.bris.ac.uk/~matyd/GroupNames/'
- qldpc.external.groups.GeneratorsList
- qldpc.external.groups.IdempotentsList
- qldpc.external.groups.KNOWN_GROUPS: dict[str, GeneratorsList]
- qldpc.external.groups.KNOWN_PRIMITIVE_CENTRAL_IDEMPOTENTS: dict[tuple[str, int], IdempotentsList]