In this work, we study the wave particle duality and the Aharonov–Bohm effect in a Mach–Zehnder interferometer in a magnetic field which is in a superposition of two opposite directions. In addition, a “classical” experimental scheme is proposed which mimics such an interferometer.