Representations¶

class
emlp.reps.
Rep
[source]¶ The base Representation class. Representation objects formalize the vector space V on which the group acts, the group representation matrix ρ(g), and the Lie Algebra representation dρ(A) in a single object. Representations act as types for vectors coming from V. These types can be manipulated and transformed with the built in operators ⊕,⊗,dual, as well as incorporating custom representations. Rep objects should be immutable.
At minimum, new representations need to implement
rho
,__str__
.

emlp.reps.
sparsify_basis
(Q, lr=0.01)[source]¶ Convenience function to attempt to sparsify a given basis by applying an orthogonal transformation W, Q’ = QW where Q’ has only 1s, 0s and 1s. Notably this method does not have the same convergence gauruntees of krylov_constraint_solve and can fail (even silently). Intended to be used only for visualization purposes, use at your own risk.