Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/ii/paper-2/15d/b/i/solution

For two nonorthogonal input states , preservation of inner products by gives
Hence the two output-program states agree up to phase. Any two qubit states can be joined through a state nonorthogonal to both, so after absorbing phases
is independent of the input.

New to topics? Read the docs here!