Code associated with the manuscript: "Optimal squeezing for quantum target detection" by G. Spedalieri and S. Pirandola, Phys. Rev. Research 3, L042039 (2021). See also arxiv:2108.08573
Use the latest version: Squeezed_QI_second_revision.nb (more robust with respect to some numerical instabilities).