Passive fiber ring flip-flop memory based on polarization dynamics