Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2007/iii/paper-58/4/c/solution

Choose the phase gate
It is unitary. Acting on both qubits leaves unchanged and multiplies by , so sends to with exactly the requested phase.
Using the Hadamard gate , choose
It is unitary and symmetric, and
For any matrix , applying to gives the coefficient matrix . Here , hence
Both displayed transformations are exact, not merely equal up to global phase. These common local unitaries permute the triplet Bell projectors while preserving the singlet projector by the preceding determinant identity.

New to topics? Read the docs here!