A spatially variable retardation device, an SQWP, is designed to generate polarization vortex beams. The transformation of Laguerre–Gaussian beams by the SQWP is further studied, and it is found that the SQWPs can also be used to generate helical beams and measure the topological charges of helical