U preserves the inner product on the Hilbert space, so that for all vectorsx and y in the Hilbert space,
<math>\langle Ux, Uy \rangle = \langle x, y \rangle.<math>
Unitary matrices are precisely the unitary operators on finite-dimensional Hilbert spaces, so the notion of a unitary operator is a generalisation of the notion of a unitary matrix.