xnn.trfnn.models.equiformer_v2.EdgeFrames#

class xnn.trfnn.models.equiformer_v2.EdgeFrames(lmax)[source]#

Bases: Module

Wigner-D blocks of the edge rotations, degree by degree, from Clebsch-Gordan recursion.

D^1 is the rotation in the e3nn basis of degree 1 and D^l = C_l (D^(l-1) (x) D^1) C_l^T with the coupling coefficients of (l - 1) x 1 -> l: polynomial in the rotation, so it is differentiable everywhere the rotation is.

Parameters:

lmax (int) – Highest degree.

forward(vec)[source]#

The blocks D^l(R) of shape (E, 2l + 1, 2l + 1), l = 0 .. lmax, with R n = e_y.

Parameters:

vec (Tensor)

Return type:

List[Tensor]