When considering cavities with many k x modes, the energy eigenspectrum is typically visualized on a dispersion plot, where the eigenenergies are plotted as a function of k x . To find these k x -resolved energies and states, the Hamiltonian in question needs to be truncated to the set of modes with a given k x . This truncation is classified by the projection operator,