Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/iii/paper-324/3/b/solution

The operators act on different qubits and therefore commute, so
Since ,
The scalar is a global phase. Thus each factor uses two Hadamard gates and one phase gate, and applying the factors in parallel or sequentially gives an exact quantum circuit of elementary gates.

New to topics? Read the docs here!