2.12 Composition of rotations

We are now in a position to understand the circuit in Figure 2.3 in geometric terms. It is a very useful fact of geometry (which we shall take for granted) that any rotation in three-dimensional Euclidean space can be performed as a sequence of three specific rotations: one about the zz-axis, one about the xx-axis, and one more about zz-axis. The circuit does exactly this:

The first phase gate effects rotation by α\alpha about the zz-axis, the second phase gate is sandwiched between the two Hadamard gates, and these three gates together effect rotation by φ\varphi about the xx-axis, and, finally, the third phase gates effects rotation by β\beta about the zz-axis. So we can implement any unitary UU by choosing the three phase shifts, α\alpha, φ\varphi, and β\beta, which are known as the three Euler angles.