spheres.coordinates¶
Coordinate transformations, mainly sphere related.
Functions
|
Converts extended complex coordinate to spherical coordinates. |
|
Converts extended complex coordinate to a spinor. |
|
Stereographic projection from the extended complex plane to the unit sphere. |
|
Converts spherical coordinates to extended complex coordinate. |
|
Converts spherical coordinates to spinor. |
|
Converts spherical coordinates \((\theta, \phi)\) to cartesian coordinates \((x, y, z)\). |
|
Converts spinor \(\begin{pmatrix} a \\ b \end{pmatrix}\) to extended complex coordinate. |
|
Converts spinor to spherical coordinates. |
|
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)\). |
|
Reverse Stereographic projection from the unit sphere to the extended complex plane. |
|
Converts cartesian coordinates \((x, y, z)\) to spherical coordinates \((\theta, \phi)\). |
|
Converts cartesian coordinates to a spinor by reverse stereographic projection to the extended complex plane, and then lifting the latter to a 2-vector. |