We investigate the effect of nuclear spins on the phase shift and polarization rotation of photons scattered off a quantum-dot--cavity system. We show that as the phase shift depends strongly on the resonance energy of an electronic transition in the quantum dot, it can provide a sensitive probe of the quantum state of nuclear spins that broaden this transition energy. By including the electron-nuclear spin coupling at a Hamiltonian level within an extended input-output formalism, we show how a photon-scattering event acts as a nuclear spin measurement, which when rapidly applied leads to an inhibition of the nuclear dynamics via the quantum Zeno effect, and a corresponding stabilization of the optical resonance. We show how such an effect manifests in the intensity autocorrelation ${g}^{(2)}(\ensuremath{\tau})$ of scattered photons, whose long-time bunching behavior changes from quadratic decay for low photon-scattering rates (weak laser intensities) to ever slower exponential decay for increasing laser intensities as optical measurements impede the nuclear spin evolution.
Nuclear spin exchange occurs in ultracold collisions of fermionic alkaline-earth-metal-like atoms due to a difference between s- and p-wave phase shifts. We study the use of an optical Feshbach resonance, excited on the ${^{1}S}_{0}\ensuremath{\rightarrow}{^{3}P}_{1}$ intercombination line of 171Yb, to affect a large modification of the s-wave scattering phase shift and thereby optically mediate nuclear exchange forces. We perform a full multichannel calculation of the photoassociation resonances and wave functions and from these calculate the real and imaginary parts of the scattering length. As a figure of merit of this interaction, we estimate the fidelity to implement a SWAP entangling quantum logic gate for two atoms trapped in the same well of an optical lattice. For moderate parameters one can achieve a gate fidelity of $\ensuremath{\sim}95%$ in a time of $\ensuremath{\sim}50\text{ }\ensuremath{\mu}\text{s}$.