sf.decompositions.mach_zehnder

mach_zehnder(m, n, internal_phase, external_phase, nmax)[source]

A two-mode Mach-Zehnder interferometer section.

This section is constructed by an external phase shifter on the input mode m, a symmetric beamsplitter combining modes m and n, an internal phase shifter on mode m, and another symmetric beamsplitter combining modes m and n.