Title: Quasi-Phase-Matching in Nonlinear Optics and Quantum Optics