OpenFermion
OpenFermion copied to clipboard
Fix convention of PolynomialTensor basis change
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^{p_1}{a_1} R^{p_2}{b_1} M^{a_1a_2}