Real-space time dynamics in waveguide QED: bound states and single-photon-pulse scattering