Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2010/iii/paper-49/2/c/solution

First expand the result of the first gate in the computational basis:
Using and , this becomes
Apply and to obtain
For example, its quantum measurement in the computational basis has probabilities and , obtained by squaring the two basis amplitudes.

New to topics? Read the docs here!