[step:Construct the unitary frame subbundle from a Hermitian metric]Let $h$ be a Hermitian metric on $E$. Let $\operatorname{Fr}_{\mathbb{C}}(E)$ denote the complex frame bundle of $E$, whose fibre over $x\in M$ consists of all complex-linear isomorphisms $u:\mathbb{C}^n\to E_x$. Let $U(n)\subset GL(n,\mathbb{C})$ denote the unitary group preserving the standard Hermitian inner product $\langle\cdot,\cdot\rangle_0$ on $\mathbb{C}^n$, linear in the first argument. Define
\begin{align*}
P_h:=\{u:\mathbb{C}^n\to E_x \mid x\in M,\ u \text{ is a complex-linear isomorphism, and } h_x(u z,u w)=\langle z,w\rangle_0 \text{ for all } z,w\in\mathbb{C}^n\}.
\end{align*}
Thus $P_h\subset \operatorname{Fr}_{\mathbb{C}}(E)$ is the set of $h$-unitary complex frames.
The right action of $U(n)$ preserves $P_h$. Indeed, if $u\in P_h$ lies over $x\in M$ and $A\in U(n)$, then $uA:\mathbb{C}^n\to E_x$ satisfies
\begin{align*}
h_x(uA z,uA w)=\langle A z,A w\rangle_0=\langle z,w\rangle_0
\end{align*}
for all $z,w\in\mathbb{C}^n$, so $uA\in P_h$. The action is free because the right action of $GL(n,\mathbb{C})$ on frames is free, and it is transitive on each fibre of $P_h$ because two $h$-unitary frames $u,v:\mathbb{C}^n\to E_x$ differ by
\begin{align*}
A:=u^{-1}\circ v:\mathbb{C}^n\to\mathbb{C}^n.
\end{align*}
For all $z,w\in\mathbb{C}^n$,
\begin{align*}
\langle A z,A w\rangle_0=h_x(vz,vw)=\langle z,w\rangle_0,
\end{align*}
so $A\in U(n)$ and $v=uA$.
It remains to record smoothness. Let $V\subset M$ be an [open set](/page/Open%20Set) over which $E$ admits a smooth complex frame
\begin{align*}
s:V\times\mathbb{C}^n&\to E|_V.
\end{align*}
Applying the smooth [Hermitian Gram-Schmidt algorithm](/theorems/435) to the ordered smooth frame $s_1,\dots,s_n$ gives a smooth ordered frame $e_1,\dots,e_n$ on $V$ such that
\begin{align*}
h_x(e_i(x),e_j(x))=\delta_{ij}
\end{align*}
for every $x\in V$ and every $1\le i,j\le n$. Equivalently, define
\begin{align*}
e:V\times\mathbb{C}^n&\to E|_V
\end{align*}
by sending the standard basis vector of $\mathbb{C}^n$ to $e_i(x)$. Then every element of $P_h|_V$ is uniquely of the form $e(x)A$ with $x\in V$ and $A\in U(n)$. Hence the map
\begin{align*}
\Phi_V:V\times U(n)&\to P_h|_V
\end{align*}
defined by $\Phi_V(x,A)=e(x)A$ is a smooth local trivialisation. Therefore $P_h\to M$ is a smooth principal $U(n)$-bundle, and its inclusion into $\operatorname{Fr}_{\mathbb{C}}(E)$ is a $U(n)$-equivariant subbundle inclusion.[/step]