xnn.krnn.common.permutations#

Permutational symmetries of a molecule recovered from its training geometries (sGDML).

Chmiela et al., Nat. Commun. 9, 3887 (2018) and Comput. Phys. Commun. 240, 38 (2019), eq. 3. Every pair of geometries is matched by an assignment of the atoms of one onto the other that aligns the magnitudes of the eigenvectors of their distance matrices (elements may only map onto themselves). A matching is kept when it brings the two distance matrices closer. The matchings are made consistent by keeping those on a minimum spanning tree of the matching costs, and the result is closed under composition into a group.

Module Attributes

MAX_PERMUTATIONS

the largest symmetry group accepted before the closure falls back to a subgroup

PAIR_BLOCK

entries of the (pairs, N, N) cost matrices formed at once (32 MB in float64)

Functions

close_group(perms[, max_size])

Close perms under composition; None when the group outgrows max_size.

find_permutations(positions, atomic_numbers)

The permutational symmetry group of a molecule, from its geometries.

largest_cycle_subgroup(perms)

The permutations none of whose cycles overlaps a longer cycle of another permutation.

match_pairs(positions, atomic_numbers[, cell])

Match every pair of geometries.

synchronize(perms, cost, n_atoms)

The matchings on a minimum spanning tree of cost (and the identity), as unique rows.