I'm studying Nielsen and Chuang's book.
I cannot solve one of the questions in the exercise 4.41.
The question is the last one that is
Explain how repeated use of this circuit and Z gates may be used to apply a $R_z(\theta)$ gate with probability approaching 1.
I found the last state of the circuit is
$|\psi_{3}\rangle = |00\rangle(\frac{10^{1/2}}{4})e^{i\pi/4}R_z(\theta)|\psi\rangle +(-|01\rangle-|10\rangle+|11\rangle)\frac{1}{4}e^{-i\pi/4}Z|\psi\rangle$
I put the picture of the circuit below.
How can i solve this problem?