The Hamiltonian method for quasicrystal symmetry