Ultracompact all-optical full adders using an interference effect based on 2D photonic crystal nanoring resonators