Modify a function in QM2 which indicates the expansion of a state on an sperical coordinate state