# What is the difference between a relative phase and a global phase? In particular, what is a phase?

I know that $$re^{i\theta}$$ = $$x + iy$$ for some imaginary number $$z$$ by Euler's formula. How do you calculate relative and global phase?

As clearly evident from the Euler's form $$z=re^{i\theta}$$, a phase has something to do with rotation in the Argand plane but not affect the amplitude of a complex number. You can make a set of set of infinite complex numbers with the same magnitude. It can just be regarded as the extra degree of freedom for a given complex number.

In the perspective of Quantum Information/Computing, the observable quantities are the probabilities which are proportional to the complex number amplitudes $$|z|^2=|re^{i\theta}|^2=(re^{i\theta})(r^*e^{-i\theta})=r^2$$ which clearly doesn't care about the the phase $$\theta$$.

Let's consider the most simple non-trivial example. For any quantum state with two degrees of freedom (qubit): $$$$|\psi\rangle=r_1e^{i\theta_1}|0\rangle+r_2e^{i\theta_2}|1\rangle$$$$ This is described by two complex numbers with phases $$\theta_1$$ and $$\theta_2$$ respectively. It can be rewritten as: $$$$|\psi\rangle=e^{i\theta_1}(r_1|0\rangle+r_2e^{i(\theta_2-\theta_1)}|1\rangle)$$$$

Now, if you calculate the amplitude $$|\psi|^2$$, the factor $$e^{i\theta_1}$$ in front will vanish by the argument above. This is called a global phase which is an overall phase in front. The relative phase is the quantity $$\theta_2-\theta_1$$ or $$\theta_1-\theta_2$$, however defined.

The relative phase is an observable quantity in Quantum Theory and it can be changed when a state evolved in accordance with the Schrodinger's equation $$i\hbar\frac{d}{dt}|\psi\rangle=\hat{H}|\psi\rangle$$.

The relative phase has also great importance when we consider the density matrix for a state defined as $$\rho=|\psi\rangle \langle \psi|$$ which for the example above is: $$$$\rho=r_1^2|0\rangle\langle0|+r_1r_2e^{i(\theta_1-\theta_2)}|0\rangle\langle1|+r_2r_1e^{i(\theta_2-\theta_1)}|1\rangle\langle0|+r_2^2|1\rangle\langle1|$$$$

where it is only the relative phase that appears and not the global phase. In Quantum Information point of view, this relative phase appearing in the off-diagonal terms of the above matrix carries the information of coherence of the system which is one of the most unique properties of quantum systems.

These are some general concerns of relative and global phases. It does not make any sense to talk about a relative phase for a single complex number $$z$$.

Also, please see the wiki articles of such concepts, they clear enough content on these as a good start. Here you can refer to https://en.wikipedia.org/wiki/Qubit, mainly the Bloch sphere section.

From a physical point of view, there couldn't be a bigger difference.

Global phases are artefacts of the mathematical framework you are using, and have no physical meaning. Two states differing only by a global phase represent the same physical system. Indeed, a more careful treatment of quantum mechanics would involve defining quantum states as elements of a projective Hilbert space, in which all elements differing only by a phase are identified as equal.

On the other hand, relative phases are in some sense the core of quantum mechanics. States differing by a relative phase are different systems that evolve in different ways, although they will appear identical if only measured in the measurement basis in which they only differ by such relative phase.

A phase is just a fancy way of re-writing a complex number $$x + iy$$. It puts the state into polar coordinates rather than cartesian coordinates and gives rise to the "Bloch" sphere way of looking at qubit state. It also allows you to describe the state using a real and one other number, namely theta or the "phase".

A global phase is just a number that multiplies both $$x$$ and $$iy$$ in the state $$x + iy$$. A relative phase only multiples against one number, either $$x$$ or $$iy$$.