A wave-packet propagation method is developed and applied to investigate the quantum dynamics of scattering processes of identical and distinguishable atoms in harmonic waveguides. The quantum dynamics of the confinement-induced resonances (CIRs) for ultracold collisions of identical particles,
s-wave CIRs for bosons and
p-wave CIRs for fermions, is explored in detail. Our multigrid approach allows us to fully take into account the coupling between the center-of-mass (c.m.) and relative motions in the case of distinguishable atoms. The latter includes, in particular,
s- and
p-partial-wave mixing, caused by the confining trap, which acts differently on the different atomic species. Specifically, we explore in detail the recently discovered [J. I. Kim, V. S. Melezhik, and P. Schmelcher, Phys. Rev. Lett. 97, 193203 (2006)] dual CIR, which is based on a destructive interference mechanism leading to complete transmission in the waveguide, although the corresponding scattering in free space exhibits strong
s- and
p-wave scattering.
We study the enhancement of cooperativity in the atom-light interface near a nanophotonic waveguide for application to quantum nondemolition (QND) measurement of atomic spins. Here the cooperativity per atom is determined by the ratio between the measurement strength and the decoherence rate. Counterintuitively, we find that by placing the atoms at an azimuthal position where the guided probe mode has the lowest intensity, we increase the cooperativity. This arises because the QND measurement strength depends on the interference between the probe and scattered light guided into an orthogonal polarization mode, while the decoherence rate depends on the local intensity of the probe. Thus, by proper choice of geometry, the ratio of good-to-bad scattering can be strongly enhanced for highly anisotropic modes. We apply this to study spin squeezing resulting from QND measurement of spin projection noise via the Faraday effect in two nanophotonic geometries, a cylindrical nanofiber and a square waveguide. We find that, with about 2500 atoms and using realistic experimental parameters, $\ensuremath{\sim}6.3$ and $\ensuremath{\sim}13$ dB of squeezing can be achieved on the nanofiber and square waveguide, respectively.