I propose adding a Gate to the standard Mach-Zehnder interferometer setup, as shown in this diagram:
http://www.robsdot.co.uk/machzehn.gif
(When this gate is closed, nothing can pass it.)
...
http://www.experts-exchange.com/Other/Math_Science/Q_22161864.html