# Displaying the Density Matrix

When an atomic system has been specified, its corresponding symbolic density matrix can be formed. This is done with the DensityMatrix function.

DensityMatrix[sys] | form the density matrix for an atomic system |

DMVariables[sys] | form the list of variables representing density matrix elements |

Each density-matrix element connects two states s_{1} and s_{2} (or one state with itself for the diagonal elements). The states are indicated with a subscript StateLabel[s_{i}] for each state. For systems that take into account angular momentum, the angular-momentum quantum numbers are used as additional subscripts.

Density-matrix elements for systems with Zeeman structure have subscript {StateLabel[s_{i}], M[s_{i}]} for each state s_{i}.

Density matrix elements for systems with hyperfine and Zeeman structure have subscripts {StateLabel[s_{i}],F[s_{i}],M[s_{i}]} for each state.