qldpc.abstract.wedderburn_artin

Wedderburn-Artin decomposition for semisimple group algebras.

Classes

WedderburnArtinComponentTransformer

Transformer to map between a semisimple ring R and a simple component S of R.

WedderburnArtinTransformer

Instrument for implementing the Wedderburn-Artin decomposition of semisimple rings.

Module Contents

class qldpc.abstract.wedderburn_artin.WedderburnArtinComponentTransformer(pci: qldpc.abstract.rings.RingMember, *, seed: numpy.random.Generator | None = None, galois_compile: Literal['auto', 'jit-lookup', 'jit-calculate', 'python-calculate'] | None = 'python-calculate', skip_validation: bool = False)[source]

Transformer to map between a semisimple ring R and a simple component S of R.

Let R = GF(q)[G] ≅ GF(q)^{|G|} be a finite group algebra, whose elements can be formally written as a GF(q)-linear combination of group members in G. That is, if r ∈ R, then

r = sum_{g in G} r_g g.

By the Wedderburn-Artin theorem and Wedderburn’s little theorem, every simple component S of R is isomorphic to the space of matrices over a field extension of GF(q):

S ≅ GF(q^d)^{n × n}.

We refer to d as the “degree” of S, and n as the “size” of S. If G is abelian, then its size is n = 1, so S ≅ GF(q^d).

The simple component S can be identified by a primitive central idempotent (PCI) e ∈ R, where

  1. “Idempotent” means that e is a projector: e·e = e.

  2. “Central” means that e commutes with all of R.

  3. “Primitive” means that e cannot be decomposed into a sum of central idempotents in R.

Given a PCI e of R, the corresponding simple component is S = R·e = { r·e : r ∈ R }.

This class projects elements of R onto a simple component S corresponding to a provided PCI e, and embeds elements of S back into R.

References: - Wedderburn-Artin theorem: https://en.wikipedia.org/wiki/Wedderburn%E2%80%93Artin_theorem - Wedderburn’s little theorem: https://en.wikipedia.org/wiki/Wedderburn%27s_little_theorem

embed(element: galois.FieldArray) → qldpc.abstract.rings.RingMember[source]

Invert WedderburnArtinComponentTransformer.project.

embed_array(array: galois.FieldArray, *, from_blocks: bool = False) → qldpc.abstract.rings.RingArray[source]

Invert WedderburnArtinComponentTransformer.project_array.

extended_field_trace(value: galois.FieldArray) → galois.FieldArray[source]

Compute the field trace from GF(q^d) to GF(q).

The field trace of z from GF(q^d) to GF(q) is defined by

Tr_{GF(q^d)/GF(q)}[z] = sum_{i=0}^{d-1} z^{q^i}.

See: - https://en.wikipedia.org/wiki/Field_trace

project(element: qldpc.abstract.rings.RingMember) → galois.FieldArray[source]

Project an element of the parent ring into a simple component S ≅ GF(q^d)^{n × n}.

project_array(array: qldpc.abstract.rings.RingArray, *, merge_blocks: bool = False) → galois.FieldArray[source]

Project a RingArray element-wise into a simple component S ≅ GF(q^d)^{n × n}.

An N-dimensional RingArray gets projected into an (N+2)-dimensional galois.FieldArray.

If merge_blocks is True, this method treats each projected element as a block matrix in the last two axes of the provided array, such that a projection with shape

(…, r, c, self.size, self.size)

is transposed and reshaped into an array with shape

(…, r * self.size, c * self.size).

center: galois.FieldArray
decomposition_coefficient_extractor: galois.FieldArray
decomposition_coefficient_recombiner: galois.FieldArray
degree: int
embedded_power_basis: galois.FieldArray
embedded_power_basis_dual: galois.FieldArray
embedded_scalars: galois.FieldArray
embedded_scalars_inverse: galois.FieldArray
extended_field: type[galois.FieldArray]
field: type[galois.FieldArray]
matrix_basis: galois.FieldArray
pci: qldpc.abstract.rings.RingMember
pci_reg: galois.FieldArray
pci_vec: galois.FieldArray
power_basis: galois.FieldArray
power_basis_dual: galois.FieldArray
ring: qldpc.abstract.rings.GroupRing
size: int
class qldpc.abstract.wedderburn_artin.WedderburnArtinTransformer(ring: qldpc.abstract.rings.GroupRing, *, seed: numpy.random.Generator | int | None = None, skip_validation: bool = False)[source]

Instrument for implementing the Wedderburn-Artin decomposition of semisimple rings.

The Wedderburn-Artin theorem states that every semisimple ring R is isomorphic to a direct sum of matrix algebras over division rings:

R ≅ ⊕_i R_i

where

R_i = D_i^{n_i × n_i},

and D^{n × n} denotes the space of n × n matrices over the division ring D. By Wedderburn’s little theorem, every finite division ring is a finite field, so if R is a group algebra over a finite field F then every division ring D_i is a field extension of F. If R is a commutative ring, then all n_i = 1, so

R = ⊕_i D_i (if R is commutative).

This class decomposes an element r ∈ R into its simple components, taking:

r -> (r_1, r_2, ...) ∈ ⊕_i R_i,

and embeds elements of ⊕_i R_i back into R.

References: - Wedderburn-Artin theorem: https://en.wikipedia.org/wiki/Wedderburn%E2%80%93Artin_theorem - Wedderburn’s little theorem: https://en.wikipedia.org/wiki/Wedderburn%27s_little_theorem

decompose(element: qldpc.abstract.rings.RingMember) → list[galois.FieldArray][source]

Decompose an element of a ring into its Wedderburn-Artin components.

decompose_array(array: qldpc.abstract.rings.RingArray, *, merge_blocks: bool = False) → list[galois.FieldArray][source]

Decompose a RingArray element-wise into Wedderburn-Artin components.

Each component of N-dimensional RingArray is an (N+2)-dimensional galois.FieldArray.

If merge_blocks is True, this method treats each projected element as a block matrix in the last two axes of the provided array, such that a projection with shape

(…, r, c, rb, cb)

is transposed and reshaped into an array with shape

(…, r * rb, c * cb).

recompose(components: collections.abc.Sequence[galois.FieldArray]) → qldpc.abstract.rings.RingMember[source]

Invert WedderburnArtinTransformer.decompose.

recompose_array(components: collections.abc.Sequence[galois.FieldArray], *, from_blocks: bool = False) → qldpc.abstract.rings.RingArray[source]

Invert WedderburnArtinTransformer.decompose_array.

transpose(element: qldpc.abstract.rings.RingMember) → qldpc.abstract.rings.RingMember[source]

Transpose the matrices representing the element within each simple component.

Warning: this transpose should not be confused with RingMember.T, which maps every group member to its inverse, transposing the regular representation of a RingMember.

transpose_array(array: qldpc.abstract.rings.RingArray) → qldpc.abstract.rings.RingArray[source]

Transpose the array and transpose each entry’s matrix within each simple component.

This composes an ordinary transpose of the array with WedderburnArtinTransformer.transpose applied to each entry. The per-component matrix transpose is distinct from RingMember.T, which inverts group members (transposing the regular representation).

random_number_generator: numpy.random.Generator
ring: qldpc.abstract.rings.GroupRing
transformers: list[WedderburnArtinComponentTransformer]