Shell-model project

To read in the single-particle states you need to:
  • Open the file
    • Read the number of single-particle states (in the above example, 12); allocate memory; all you need is a single array storing \( 2\times j_z \) for each state, labeled by the index.
  • Read in the quantum numbers and store \( 2 \times j_z \) (and anything else you happen to want).