We generally describe an optical
demultiplexer, comprising: an electro-optic modulator for changing the polarization of an optical pulse having a first polarization and passing through the electro-optic modulator from the first polarization to a second polarization when the electro-optic modulator is in a first state; a first mirror and a second mirror, wherein the electro-optic modulator is located in an optical track between the first mirror and the second mirror, such that an optical pulse traveling in the optical track between the first mirror and the second mirror passes through the electro-optic modulator, wherein the first mirror and the second mirror are located in the optical
demultiplexer, such that an optical pulse traveling in the optical track between the first mirror and the second mirror passes through the electro-optic modulator. The pulse, during each round of travel between the first and second mirrors, is shifted perpendicular to the propagation direction of the light pulse between the first and second mirrors; and a first polarization beamsplitter is located in the optical track between the first mirror and the electro-optic modulator, wherein the first polarization beamsplitter is configured to: transmit a light pulse having a first polarization and reflect a light pulse having a second polarization to remove a light pulse having a second polarization from the optical track between the first and second mirrors, wherein the first polarization beamsplitter is configured to reflect light pulses that are shifted perpendicular to each other's propagation direction onto different, respective output tracks.