theochem / procrustes

Python library for finding the optimal transformation(s) that makes two matrices as close as possible to each other.
https://procrustes.qcdevs.org/
GNU General Public License v3.0
109 stars 20 forks source link

Support Weight Matrices #202

Open PaulWAyers opened 1 year ago

PaulWAyers commented 1 year ago

Currently, we allow weights for each dimension, and then use a (diagonal) weight matrix. In some applications in quantum mechanics, it would be useful to have a positive semidefinite weight matrix (which would be symmetric in all cases I can imagine). The idea would be to let the user pass a vector (then construct a diagonal weight matrix) or a matrix (then use the matrix).

In the cases I'm thinking about, the weight matrix would be the atomic-orbital overlap matrix or the one-electron reduced density matrix.