I've been recently introduced to Unitary operators of a Hilbert space and I've been wondering the following.
Existence of a unitary operator $T$ on a (possibly infinite) Hilbert space $H$ is simple enough. The identity map works and otherwise any "partial isometry" with full initial and final subspace does as well.
However, if I'm given subspaces $U, V \subset H$, then is there any assumption (not directly assuming that $U = V$) I can make that guarantees the existence of unitary operator $T:H\to H$ such that the restriction
$$T\restriction_U:U\to V$$
is a surjective isometry? Would I somehow be able to construct a unitary operator if I assumed $\dim U = \dim V$?
You need exactly $\dim U=\dim V$ and $\dim U^\perp=\dim V^\perp $, in the sense that they have bases with the same cardinality.
Suppose that $\{e_j\}_{j\in J}$ is an orthonormal basis of $U$ and that $\{f_j\}_{j\in J}$ is an orthonormal basis of $V$.
Extend both basis to orthonormal bases of $H$, $\{e_j\}_{j\in K}$, $\{f_j\}_{j\in K}$, where $K\supset J$.
Now define $Te_j=f_j$ and extend by linearity. This map is a unitary that maps $U$ to $V$ (it's an exercise you have to do, to show that $T$ defines a bounded operator and that it is a unitary).