All-optical quantum signal demultiplexer