Robust Classical and Quantum Polarimetry with a Single Nanostructured Metagrating | Synapse