Diamond nanoparticles - offer an alternative to photonic metamaterials for optical computing. The same single-defect nanodiamonds that can be used to sense magnetic fields can also use combinations of green and infrared light to enable/disrupt light transmission, allowing the construction of transistors and other logic elements.