spheres.coordinates.spinor_xyz¶
-
spheres.coordinates.
spinor_xyz
(spinor)[source]¶ Converts spinor \(\mid \psi \rangle\) to cartesian coordinates by taking the expectation values with the three Pauli matrices: \((\langle \psi \mid X \mid \psi \rangle, \langle \psi \mid Y \mid \psi \rangle, \langle \psi \mid Z \mid \psi \rangle)\).
- Parameters
spinor (list or qt.Qobj) – Spinor(s).
- Returns
xyz – (List of) cartesian coordinates.
- Return type
np.ndarray