v0.7 Rotates basis for S matrix