4

I am vexed by a particular derivation. Given a state $\psi$ and corresponding density matrix $\rho = |\psi\rangle \langle \psi|$, or $\rho = \begin{bmatrix} a & c \\ b & d \end{bmatrix}$, I can compute the Bloch sphere coordinates as the following (in Python):

  a = rho[0, 0]
  b = rho[1, 0]
  x = 2.0 * b.real
  y = 2.0 * b.imag
  z = 2.0 * a - 1.0

This code works, but - how? I fail to properly derive it. Any hints or pointers are appreciated.

Adam Zalcman
  • 25,260
  • 3
  • 40
  • 95
rhundt
  • 1,132
  • 6
  • 12

1 Answers1

5

The point $(x, y, z)\in\mathbb{R}^3$ corresponds to the state

$$ \rho = \frac{I + xX + yY + zZ}2 = \frac12\begin{bmatrix} 1+z & x-iy \\ x+iy & 1-z \end{bmatrix}, $$

see also definition in Wikipedia. Therefore, if $\rho = \begin{bmatrix}a & c \\ b & d\end{bmatrix}$, then

$$ 2a = 1 + z \\ 2b = x + i y $$

and so

$$ x = 2\,\mathrm{Re}(b) \\ y = 2\,\mathrm{Im}(b) \\ z = 2a - 1. $$

Adam Zalcman
  • 25,260
  • 3
  • 40
  • 95