"If phi=0, the polarization is at 45 deg after the waveplate with circular polarization. When phi is 45, the result changed to 90 deg, which is correct. It will not be 45 deg. "

This is really a way to understand this problem. Thank you.

Next, I will simulate more cases to see whether I can come to a summary.