Deterministic generation of arbitrary $n$-photon states in a waveguide-QED system. F. Xing, Z. Liao and X. Wang in Phys. Rev. A 109:013718 (2024).