Generation of two pairs of qudits using four photons and a single degree of freedom.