The supersymmetry of two-photon Hamiltonians