First, we can think a MZ interferometer as a combination of two beamspliter and a phase shifter(from MIT course "Atomic and Optical Physics II", the paper is "Quantum-mechanical noise in an interferometer"), which evolution matrix is B = {{1,-i},{-i,1}},B dagger and P ={{1,0},{{0,exp{i\phi}}}...