quantumlib / OpenFermion

The electronic structure package for quantum computers.
Apache License 2.0
1.51k stars 372 forks source link

Fix convention of PolynomialTensor basis change #805

Open aoowweenn opened 1 year ago

aoowweenn commented 1 year ago

In general, we rotate a matrix M to M' is to apply a rotation matrix R: M' = R @ M @ R.T The corresponding Einstein notation is M'^{p_1p_2} = R^{p1}{a_1} R^{p2}{b_1} M^{a_1a_2}