implementation of qkPhoton.