Potential energy of the wave collapse in the slit experiment

No.11283731 ViewReplyOriginalReport
Is is possible to tackle the work done by a photon particle when it collapses from particle to wave and viceversa?

There is obviously some kind of work being done there, potential energy.