For a separable, infinite dimensional Hilbert space $H$ and two projections $p,q\in B(H)$ (i.e. $p^2=p^*=p$) such that there exists an operator $v\in B(H)$ satisfying $p=v^*v$ and $q=vv^*$ I want to show that $\operatorname{im}(p)=pH$ and $\operatorname{im}(q)=qH$ are isomorphic Hilbert spaces.
I read that the isomorphism $pH\to qH$ is given by $v$, but I'm not sure about the details.
Presumably if $x\in pH$ (and $qH$ respectively) it is $px=x$ and $v$ looks like $v:pH\to qH\; x\mapsto x$, or, more precisely $v(px)=qx$. Why is this map surjective? (the other properties are clear)
The first thing to check is that $v$ actually maps $pH$ into $qH$: let $px\in pH$, then
$$v(px) = vv^*vx=q(vx)\in qH.$$
Now let us check surjectivity:
Let $qx\in qH$. We have $qx=q^2 x = vv^*vv^*x = v(pv^*x)$ and $p(v^*x)\in pH$.
For the sake of completeness let us also check injectivity:
Let $v(px)=0$. Then $0=\langle v(px),vx\rangle=\langle px, v^* vx\rangle = \|px\|^2$, so $px=0$.