2.13 A finite set of universal gates

The Hadamard gate and the phase gates, with adjustable phases, allow us to implement an arbitrary single-qubit unitary exactly. The tacit assumption here is that we have infinitely many phase gates: one gate for each phase. In fact, we can pick just one phase gate, namely any phase gate PαP_\alpha with the phase α\alpha that is incommensurate61 with π\pi. It is clear that repeated iteration of PαP_\alpha can be used to approximate any other phase gate to arbitrary accuracy: indeed, rotate the Bloch sphere by α\alpha about the zz-axis sufficiently many times and you end up as close as you please to any other rotation about the zz-axis.

If you want to be ε\varepsilon-close to the desired angle of rotation, then you may need to repeat the rotation by α\alpha roughly 1/ε1/\varepsilon times. Indeed, within nn applications (for62 nα2πn\alpha\gg 2\pi) of PαP_\alpha, we expect the accessible angles to be approximately evenly distributed within the range [0,2π][0,2\pi], i.e. any angle of rotation can be achieved to an accuracy of ε=2π/n\varepsilon=2\pi/n by using up to n1/εn\approx 1/\varepsilon applications of PαP_\alpha. So we can use just one phase gate to approximate the three phase gates in the circuit in Figure 2.3.

There are other ways of implementing irrational rotations of the Bloch sphere. For example, take the Hadamard gate and the TT gate (also known as the π/8\pi/8-phase gate, despite being the phase gate PφP_\varphi for φ=π/4\varphi=\pi/4 as we saw earlier in Section 2.6). You can check that the compositions THTHTHTH and HTHTHTHT represent rotations by angles which are irrational multiples of π\pi, about two different axes. We can then compose a sequence of these two rotations to approximate any other rotation of the sphere. This may look very nice in theory, but there are issues with the actual physical implementation of this approach: in reality, all the gates in the circuit will operate with only finite precision, and the phase gates will deviate from implementing the required irrational rotations. It turns out, however, that we can tolerate minor imperfections; the final result will not be that far off.


  1. That is, there do not exist any m,nZm,n\in\mathbb{Z} such that mα=nπm\alpha=n\pi. For example, it suffices to take α\alpha to be rational, since π\pi is irrational.↩︎

  2. The notation xyx\gg y is rather imprecise, but it basically means “xx is much much larger than yy, and, in particular, large enough for whatever we are claiming to be true”.↩︎