TopicIntermediateEstablished concept

Global and Relative Phase

Global and Relative Phase

A global phase is a factor $e^{i\gamma}$ multiplying the whole state and is unobservable, whereas a relative phase between components changes measurement outcomes in other bases.

The states $|\psi\rangle$ and $e^{i\gamma}|\psi\rangle$ give the same probabilities for any measurement, because $|\langle b|e^{i\gamma}\psi\rangle|^2=|\langle b|\psi\rangle|^2$, so they are the same physical state. In $\alpha|0\rangle+e^{i\varphi}\beta|1\rangle$, however, $\varphi$ is a Relative Phase with an observable effect: $|+\rangle$ and $|-\rangle$ differ only in $\varphi=\pi$, and they are orthogonal.

Important examples: $R_Z(\lambda)$ and $P(\lambda)$ differ by a global phase $e^{i\lambda/2}$, so they are equivalent on a single qubitQubit: The qubit is the unit of quantum information: a two-level system whose state is a unit vector α0⟩+β1⟩ in ℂ^2.. But this phase becomes relative if the gate is made controlled: $CR_Z(\lambda)\neq CP(\lambda)$. So take care when replacing one gate with another that is “equivalent up to global phase” inside a controlled circuit.

The lab's simulator matches Qiskit in the amplitudes, including the global phase, so vectors may appear multiplied by a factor such as $e^{-i\pi/4}$; this is not an error.

When comparing two vectors produced by different simulators, it is better to compare probabilities or the fidelityFidelity: Fidelity is a measure of the similarity of two quantum states; for pure states F=⟨ψφ⟩^2, equal to 1 for identical states and 0 for orthogonal ones. $|\langle\psi|\phi\rangle|^2$ rather than the amplitudes directly, unless the conventions are identical.

|0⟩|1⟩θφ|ψ⟩
Bloch sphere: the qubit state is a vector on the sphere's surface with two angles θ and φ

Mathematical formulation

$$e^{i\gamma}|\psi\rangle\sim|\psi\rangle,\qquad \alpha|0\rangle+e^{i\varphi}\beta|1\rangle\ \ (\varphi\ \text{observable})$$

Worked example

$R_Z(\pi/2)|+\rangle=\tfrac{1}{\sqrt2}(e^{-i\pi/4}|0\rangle+e^{i\pi/4}|1\rangle)=e^{-i\pi/4}\tfrac{1}{\sqrt2}(|0\rangle+i|1\rangle)$, i.e. $|{+i}\rangle$ with a global phase $e^{-i\pi/4}$. The gate $S=P(\pi/2)$ gives $|{+i}\rangle$ directly. The measurement probabilities are identical in every basis.

Try it yourself: Bloch Sphere Visualizer

Loading the simulator…

The full experiment page

Test your understanding

The quiz needs JavaScript.

Related topics

References

  1. Michael A. Nielsen; Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press doi:10.1017/CBO9780511976667The standard reference for quantum computing; the Crossref record gives 2012 for the Cambridge Core online edition.
  2. IBM Quantum (2025). Qiskit SDK API documentation. IBM Quantum Documentation quantum.cloud.ibm.com