spheres.coordinates

Coordinate transformations, mainly sphere related.

Functions

c_sph(c)

Converts extended complex coordinate to spherical coordinates.

c_spinor(c)

Converts extended complex coordinate to a spinor.

c_xyz(c[, pole])

Stereographic projection from the extended complex plane to the unit sphere.

sph_c(sph)

Converts spherical coordinates to extended complex coordinate.

sph_spinor(sph)

Converts spherical coordinates to spinor.

sph_xyz(sph)

Converts spherical coordinates \((\theta, \phi)\) to cartesian coordinates \((x, y, z)\).

spinor_c(spinor)

Converts spinor \(\begin{pmatrix} a \\ b \end{pmatrix}\) to extended complex coordinate.

spinor_sph(spinor)

Converts spinor to spherical coordinates.

spinor_xyz(spinor)

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)\).

xyz_c(xyz[, pole])

Reverse Stereographic projection from the unit sphere to the extended complex plane.

xyz_sph(xyz)

Converts cartesian coordinates \((x, y, z)\) to spherical coordinates \((\theta, \phi)\).

xyz_spinor(xyz)

Converts cartesian coordinates to a spinor by reverse stereographic projection to the extended complex plane, and then lifting the latter to a 2-vector.