The theory of groups and quantum mechanics