Metamaterials operating at optical frequencies, referred to as optical or photonic metamaterials, require features
fabricated at a subwavelength scale from 50 nm to 1000nm. In this work a planar gradient index metamaterial is
designed and demonstrated at optical frequencies by numerical simulation through a finite-difference time domain
method in conjunction with an electromagnetic retrieval technique. We confirm the gradient by simulating the deflection
of a light beam passing through a multilayer silver (Ag) and magnesium fluoride (MgF2) slab featured with specially
designed nano-rectangular holes. The planar gradient index photonic metamaterials we propose can be fabricated by
available nano-fabrication technologies. Optical tests can be performed since the designs are also based on the
consideration of the frequency range available for evaluation.