A novel design of all-optical half adder using a linear defect in a square lattice rod-based photonic crystal microstructure