Let denote the specified image of . Its components comprise distinct ordered-pair basis states, each with coefficient , together with with coefficient . Hence .
For distinct indices , only two output basis states occur in both images. Their common contributions have product , while the contributions have product . Thus
The specified map is therefore a linear isometry on the -dimensional input subspace. Complete the input vectors to an orthonormal basis of the -dimensional space, and independently complete their images to another orthonormal basis. Map the first full basis to the second. This is a unitary extension of a finite-dimensional isometry, giving the required . The prescribed columns are orthonormal, so a full unitary extension exists. Its construction depends only on , not on the unknown string, and is permitted by the question's exact-unitary assumption.