Abstract: Methods and systems for controlling the phase of electromagnetic waves are disclosed. A device can consist of a guided resonance grating layer, a spacer, and a reflector. A plurality of devices, arranged in a grid pattern, can control the phase of reflected electromagnetic phase, through refractive index control. Carrier injection, temperature control, and optical beams can be applied to control the refractive index.