working on dipole matrix element

I need to figure out what the z elements should be