In the later case, the phase can be rotated by applying a Z quantum gate to give , while in the former case, no additional transformations are applied.
For the second scenario, the phase can be altered by using a Z quantum gate to produce , whereas for the first scenario, no further adjustments are made.