Reliably measuring the polarization state of light is crucial for various technological applications, ranging from optical communication to biomedical imaging. Yet conventional polarimeters are made of bulky components, which makes them difficult to reduce in size and limits their widespread adoption.