Search

How to implement Deutsch’s algorithm with a Mach–Zehnder interferometer

Quantum Computing Applications and Realisations cover image

Overview

Secondary School

Physics

Quantum Computing

English

Overview

Keywords: Deutsch's Algorithm, Mach–Zehnder interferometer
Summary: This excursion connects theoretical treatment of Deutsch’s algorithm with its experimental realisation using a Mach–Zehnder interferometer, linking two teaching units of the material. Building on prior knowledge, students explore how a simplified one‑qubit version of the algorithm can be implemented with optical components. The behaviour of a photon in the interferometer is interpreted as a qubit, while beam splitters and retarders act as quantum gates. In this way, students can experimentally distinguish between constant and balanced functions and gain insight into the relationship between quantum information and optical experiments.

Author: Jörg Gutschank (DE)

Let us link theory and experiment with an additional idea connecting two teaching units of our material:

The algorithm that is taught in the lesson "Deutsch's algorithm - Mathematical approach" can be implemented with the help of a Mach–Zehnder interferometer which is introduced in the teaching unit "Light crossroads - Optical Quantum Gates in a Mach–Zehnder interferometer". The following description assumes that you are a teacher who is familiar with the two teaching units, i.e. you know how a Mach–Zehnder interferometer and Deutsch's algorithm work and are eager to go the next step.

There are two ways to do this: a one-qubit version implementing only the upper qubit q0 , and a two-qubit version implementing the complete algorithm with both qubits. We will explain the one-qubit version, which merely requires a simple Mach–Zehnder interferometer and two retarders1 and point you to the literature for the two-qubit version.

Figure 1 shows Deutsch’s algorithm with the situation that the ’black box’ contains no further quantum gates (as it would be the case for the function constant zero). Let us go through quantum circuit from left to right to recall what happens.

We name the upper qubit q0 and the lower qubit q1 , both are in the state |0⟩ at the beginning. q1 is ’swapped’ to make it |1⟩ .

Figure 1: Quantum circuit implementing Deutsch’s algorithm. The function in the ’black box’ is constant zero, so that all the state vectors can be shown for concreteness. The upper qubit is q0 , the lower q1 .

 

Figure 2: Mach-Zehnder interferometer
© Science on Stage

Figure 2: Mach–Zehnder interferometer implementing the qubit q0 of Deutsch’s algorithm. The function in the ‘black box’ is assumed to be constant zero.

The following Hadamard gates create superpositions: |+⟩ = |0⟩ + |1⟩ 2 and |−⟩ = |0⟩ |1⟩ 2 . Behind the ‘black box’ we are merely interested in the upper qubit. For constant functions, q0 is in the |+⟩ state, while for balanced functions, it would be in the |−⟩ state. The final Hadamard gate returns |0⟩ for constant functions while it returns |1⟩ for balanced functions. A measurement mainly results in zeros or ones according to whether we are dealing with a constant or a balanced function.

Each photon going through a Mach–Zehnder interferometer behaves like q0 , as figure 2 shows. The state at the beginning is |0⟩ (input from the top would, for instance, yield |1⟩ ). The first beam splitter is acting like a Hadamard gate[2] , so that the unlocalised photon is in a superposition of its ‘which-way-information’. The second beam splitter is acting like another Hadamard gate, ‘deviating’ the photon to the output at the right-hand side. We name this output |0⟩ . For a beam of laser light we would have an interference pattern which is inverted relative to the other output, so that we could take some spot (say middle) for the measurement.

In order to implement the function f(x) , we need two half-wave retarders, which we use, or do not use in the upper (for f(0) ) or lower (for f(1) ) arm of the Mach-Zehnder interferometer. Using the retarder in the upper arm sets f(0)=1 , using it in the lower arm sets f(1)=1 . It is left to the interested reader to show that the result for constant functions is always the output |0⟩ to the right, while the result for balanced functions is the downward output.

The two-qubit version of this implementation[3] uses two qubits in each photon. One qubit is the polarisation of the photon, i.e. spin angular momentum, the other one corresponds to two spatial modes ( TEM₁₀ and TEM₀₁ ) of the laser, i.e. orbital angular momentum. The details of this exciting experiment are beyond the scope of this short description.

  1. These optical elements retard the propagation of light as if the optical path were prolonged by half a wavelength ( λ 2 , phase shift π ) without changing the polarisation. A liquid crystal retarder could be set to the desired value, however, it costs around 1000 euros and needs additional controlling hardware. Cheaper solutions are experimentally non-trivial.

  2. Depending on the making of the beam splitter, there might be an additional phase which can be compensated with further optical elements.

  3. de Oliveira, A. N., S. P. Walborn, and C. H. Monken (2005). Implementing the Deutsch algorithm with polarization and transverse spatial modes. Journal of Optics B: Quantum and Semiclassical Optics 7 (9), 288–292.

Close search