Mach–Zehnder interferometer with quantum beamsplitters