Can the Refractive index be used to encode data
Hi i am CS grad and very new to this stuff. I was exploring photonic memory, that's when i thought why not use refractive index of an material to encode the data. Recently when I was reading about refraction of light i came across how the refractive index is affected by the electrons distribution in the material. So why not say for an single bit you use a small material like few ~nm in range and the material has an shaded region representing 0 and an photo detector as such on the other region representing 1 and the material is enclosed by an material that referact the light. You now apply voltage to the material, an specific voltage changes the electron distribution of the material making the passing light through referact and hit the shaded region or photo detector. This photodetctor then drives an small electric switch which turns on an another light beam that's powered seperately that's used to route the light to the readers photo detector. Say if you have a number of such forming an 8-bit an byte.