Web-Based Methods for X-ray and Photoelectron Spectroscopies
Abstract
We present a simplified web-based application for simulating x-ray and photoelectron spectra of transition metals, built around the notion that web-based applications lower the bar for novice users. The application provides a simple interface to simulate x-ray absorption spectroscopy, resonant inelastic x-ray scattering, and angle-resolved photoemission spectroscopy, incorporating the effects of local electronic interactions, which give rise to multiplets, spin-orbit coupling, crystal field effects, and ligand hybridization/charge transfer. Results can be obtained that highlight the key role of photon polarization.
I Introduction
The application of x-ray spectroscopies to investigate the nature of charge, spin, orbital, and lattice excitations in quantum materials has expanded greatly, due in part to the advances made in synchrotron and free electron laser light sources worldwide. In many cases, as energy resolution has been pushed towards the level of tens of millielectron volts or better, excitation dynamics involving states accessible within room temperature and below have been revealed across a wide range of so-called “intertwined” materials - materials in which it is insufficent to describe phenomena in terms of separate degrees of freedom. This includes wide classes of materials relevant for superconductivity, magnetism, ferroelectricity, and energy storage to name just few. While x-ray absorption and core level spectroscopy have long been able to infer local coordination numbers and predominant charge valency configurations with atomic specificity, advances in resonant inelastic x-ray scattering (RIXS) have opened direct access to the energy dispersion of various collective modes in quantum materials stemming from numerous orders - plasmons, magnons, orbitons, spinons, charge doublons/excitons, charge density modes, and phonons, as well as the mutual couplings among the collective modes and with underlying particle-hole excitations. Thus, x-ray spectroscopy has become the go-to tool for providing a thorough understanding of quantum material properties.
As a consequence, there has been steady growth in the number and sophistication of computer codes available to simulate, and thereby interpret the spectra of quantum materials. Robust X-ray absorption (XAS) and emission (XES) codes have been available for a number of decades and have served as a foundation for researchers to obtain a broad understanding of the spectra. In many cases an effective one-electron model, as in the real-space Green’s function FEFF codes feff10 can be a good approximation. However, for transition metal -edges it is important to treat multiplet effects stemming from both intra-valence and core-valence Coulomb interactions including crystal fields, and spin-orbit effectsCowan ; Thole . The atomic-multiplet codes CTM4XAS and CTM4RIXS have been workhorses for many researchers across chemistry, physics, and materials scienceCT4XAS . The recent addition of Quanty also incorporates dynamical mean field theory (DMFT) for lattice problems, as well as adding extensions to RIXSQuanty , broadly expanding availability. Finally, recent codes that simulate angle-resolved photoemission spectroscopy (ARPES) are available. These codes give tutorial-level experience to users, both to familiarize and explore spectra from a simple and intuitive tight-binding perspectiveChinook . While we do not intend to review them here, a list of the many codes currently available is given in Ref. Review, . While these codes will in no doubt continue to improve, a typical barrier encountered by users is the overhead associated with download and set-up of many applications. Particularly in the case of researchers wishing to become familiar with techniques in a tutorial-like setting, or for students to explore spectroscopy in a class-like setting, one typically desires a simplified method that sacrifices many of the bells-and-whistles of complexity to obtain a more transparent usage.
In this communication, we introduce two web-based methods, the first for simulating XAS and RIXS (webXRS)webXRS and the second for simulating ARPES (webARPES)webARPES for transition metal -edges, whereby users can enter a minimal set of input parameters through a web-interface and run codes hosted on internal servers, significantly lower the barriers for novice or casual users. A related tool (webXAS) for simulating edge XAS with FEFF10 will be discussed elsewherefeff10webapp .
II Background and Formalism
Many of the methods and background information for for -edge XAS, RIXS, and ARPES are available in Refs. Cowan, ; Thole, ; CT4XAS, ; Quanty, ; Chinook, and KotanideGroot, ; MvV, , so here, we only summarize the formulae relied upon in webARPES and webXRS codes.
The electron removal spectra for incident light of energy and polarization , , measured in XPS/ARPES is given by
(1) | |||||
Similarly, the absorption spectrum is given by
(2) | |||||
The RIXS cross-section in the Kramers-Heisenberg representation is
(3) | |||||
This formula is the dominant resonant diagram to lowest order in the fine structure constant Raman ; RIXS . In these expressions, is the partition function, , are the initial and final state energies and eigenstates, respectively, are the XPS/ARPES and XAS final states or RIXS intermediate core-hole states, is the core-hole decay rate, and , , and are the incident and scattered x-ray polarization vectors, momenta, and energies, respectively, with is the energy loss. The dipole transition operator for XPS/ARPES represents the removal of a valence electron, while for XAS/RIXS it represents the transition of a core electron up to the valence. Note that in these cases the cross-sections are written in terms of matrix elements squared, determined by incident and scattered polarization dipole transitions, and density of states plus energy and momentum conservation.
These applications are based on full matrix diagonalization of the generalized Hamiltonian
(4) |
where the terms in the Hamiltonian written in second quantized operators () that annihilate (create) an electron in orbital and unit cell with spin are as follows:
The Coulomb interaction
(5) | |||||
represents generalized local two-body interactions that can include both core and valence electrons, while the sum of single particle terms can be grouped together as
(6) |
with the tensor having site energies, crystal fields and spin-orbit contributions (for terms), as well as hybridization among orbitals ().

While in principle the orbital index can be chosen according to convenience as any complex set of basis states, in the applications webXRS and webARPES we choose atomic orbitals as basis states and take the terms of the Hamiltonian as Slater-Koster parameters, entered by the user. These parameters correspond to ascending multipole Coulomb matrix elements between various combinations of orbitals, and control the various density-like and Hund’s-like interactions among valence and core electrons. These are explained in detail in various textbooks. In addition, the user may examine their effect in the plotted spectra but also in the output datafiles available for both viewing and downloading.
The dipole operator is evaluated in the Coulomb or “transverse” gauge , where is the light vector potential, meaning that the light polarization lies in a plane perpendicular to the direction of propagation. For the application webXRS we utilize the dipole approximation to represent the dipole operator. Currently webXRS is configured such that the incident photon creates a core-hole in the shell and removes one from the valence shell, specifically targeting -edges of transition metals. The light polarization vector selects-out orbitally dependent transitions, viz.,
(7) |
where is a Gaunt coefficient. Here can be neglected as it is a simple constant given by an integral of radial atomic wavefunctions and only sets an overall scale.

For the application webARPES, the final state for photoemission is taken to be a plane wave having energy and wavevector arriving at a detector. This gives

(8) |
with spherical harmonic and spherical Bessel functions. Here, we assume that the quantum index denotes a valence state having the same momentum and spin as the outgoing plane wave but associated with orbital index . This is not just a simple Fourier transform of matrix elements since the orbital wavefunction overlap with the expansion of Bessel functions affects the overall photoemission matrix elements.

III Applications
Both webXRS and webARPES diagonalize the full Hamiltonian in Eq. (4) to obtain eigenvalues and eigenvectors for the states appearing in Eqs. (1-3). The diagonalization and assembly routines are performed on the server so no other configuration is needed apart from setting the input parameters, obviating the need for code download and installation. This of course limits what each application may perform, but gives the user a simple, interactive way to learn about spectroscopy.

III.1 webXRS
Currently, webXRS (see Fig. 1) is configured to calculate transition metal -edge XAS and RIXS for a single unit cell composed on a single transition metal having Coulomb parameters and setting the valence interaction matrix elements, and separate Slater values for the core-valence interactions and . The Hilbert space dimension for the initial states is given by the binomial coefficient , with representing the number of holes, and for the XAS final states or RIXS intermediate states. The user may navigate the application by choosing the action tabs on the top of the entry pages. The home page gives information of code capability updates as well as a list of features that are planned in future versions of the application.
Through the Set Parameters tab, crystal field levels (tesseral harmonic energies) and core spin-orbit coupling are input, as are the incoming and outgoing light polarization orientations (see Fig. 2). An input file is then created for code execution, residing on the host server.
In principle, all of these parameters can be determined from various first-principle (i.e., density functional theory) approaches. However, in this application they can be simply taken as fit parameters. Consideration of the parameters entered follows their effect on the calculated eigenspectra, as evidenced in the so-called Tanabe-Sugano diagrams for each system for the valence electrons: the Slater parameters governed the splitting of the ”multiplets”, while the crystal field levels change the energy position of the orbitals as well as eigenstate degeneracies. The core spin-orbit interaction can be calculation via atomic orbitals, but again here it is chosen to simply give the splitting between the and core levels and the corresponding - edge separation. Finally, the core-valence interactions ”shuffle” spectral weight within each specific edge due the orbital nature of these interactions. The reader (and user) is directed to Ref. KotanideGroot, for details.
Upon execution of the application by utilizing the Calculate tab, the user may view the energy and orbital and spin occupations for the lowest energy levels, the values of the intra-, inter-, and Hund’s interactions , respectively, and view plots of XAS and RIXS maps as a function of incoming photon energy. Data files may be downloaded by the user for further processing.
The eigenstate information of the system is shown via the Show Output tab in Fig. 3 whereby the user may inspect information of the eigenenergies and eigenstates of the lowest twenty states. The orbital spin and charge decompositions are given for each eigenstate.

The XAS spectra can then be plotted using the Plot XAS tab in the application. The corresponding tab delimited two column datafile can be downloaded via the menu bar XAS Datafile.
The RIXS spectrum can then be plotted as a RIXS map (function of incident and scattered photon energies) using the Plot RIXS tab in the application. A resulting 3D plot (see Fig. 5) highlights the spectral intensities of both the edges that can be correlated with the XAS absorption plots (Fig. 4) for the same incoming photon polarization. A corresponding tab delimited three column file can be downloaded via the menu bar RIXS Datafile. With the downloaded datafiles the user may choose to examine the results using their own local plotting software tools.
Thus, webXRS can be a useful pedagogical tool whereby users can learn about multiplets and x-ray absorption and resonant inelastic x-ray scattering formalism using simple exact diagonalization codes that do not require downloading or user installation. The code execution is fast enough to allow for rapid access that may be useful as input to more complex computational frameworks.

III.2 webARPES
The ARPES application webARPES is currently configured for a fixed number of unit cells composed of a single transition metal ion in a square planar lattice of ligand orbitals, giving an 11-orbital unit cell. The home page entry point similar to the webXRS application is shown in Fig. 6, indicating the orbital basis used for the calculation as well as general application information. An updated posting of planned features and new activities is shown along with the general purpose of the application.
Upon execution of the application (again hosted on the server), the user may view the energy eigenvalues (bands) plotted as a function of momentum along different Brillouin zone (BZ) directions, plot the full and orbitally-resolved density of states (DOS), fixed energy contours throughout the BZ, and compare the effect of photon dipole transition matrix elements. The data files may be downloaded for further processing.
Tight-binding parameters and spin-orbit coupling are entered by the user, and the incident light energy, momentum (in units of lattice constant ), and polarization orientation are to be specified as well (see Fig. 7). In the current version of the application, no Coulomb matrix elements are included so that a basis of single-particle Slater determinants can be used. Therefore the calculation diagonalizes a matrix for each momentum point on the grid, given by blocks of matrices for each spin orientation
for a basis. Here , , and ’s and ’s denote the transition metal site and charge transfer energies, respectively. These degenerate blocks are coupled when spin-orbit coupling is initiated in the calculation.
On the same page a user makes a selection of momentum points of the resulting band structure (eigenvalues) for plotting purposes, as well as which orbitals can be projected (components of the eigenvectors) for examination in both the bandstructure and the density of states. These are plotted in the Plot DOS tab of the application (Fig. 8).

The Plot Bands tab displays the sorted eigenvalues for the momentum cuts specified by the user in the Set Parameters tab (Fig. 9). The user may return to the Set Parameters tab to choose other cut directions or orbital projections to plot.

Finally, the projection of the bands with and without the inclusion of dipole matrix elements can be plotted within the Plot ARPES Contour and Plot ARPES Contour with matrix elements tabs, respectively, using the parameters specified by the user in the Set Parameters tab. Both plots show the bands across a repeated zone scheme to highlight the effects of the matrix elements due to the multiorbital nature of the configuration.

IV Summary
In summary, a web-based application is introduced that calculates a number of photon-based spectroscopies using different approaches for quantum materials. While the calculations are simple and straightforward but limited in scope, it is envisioned that this tool can help new students and users in the field of spectroscopy to become familiarized with simple concepts without the associated difficulties of application installation or configuration. The software is easily extendable to other systems, such as to larger clusters and unit cells, with the requisite cost in local server memory and access.
Acknowledgements.
This work was supported by the U.S. Department of Energy (DOE), Office of Basic Energy Sciences, Division of Materials Sciences and Engineering, specifically, through the Theory Institute for Materials and Energy Sciences (TIMES) program.References
- (1) J. J. Kas, F. D. Vila, J. J. Rehr, C. D. Pemmaraju, T. S. Tan, arXiv:2106.13334.
- (2) R. D. Cowan, The Theory of Atomic Structure and Spectra. University of California Press (1981).
- (3) B. T. Thole and G. van der Laan, Phys. Rev. B, 38, 3158 (1988).
- (4) E. Stavitski and F. M. F. de Groot, Micron, 41, 687 (2010).
- (5) M.W. Haverkort, M. Zwierzcki, and O.K. Andersen, Phys. Rev. B 85, 165113 (2012); Patric Zimmermann, Robert J. Green, Maurits W. Haverkort, and Frank M. F. de Groot, J. Synchrotron Radiat. 25, 899 (2018).
- (6) Ryan P. Day, Berend Zwartsenberg, Ilya S. Elfimov and Andrea Damascelli, npj Quantum Materials 4, 54 (2019).
- (7) Frank M. F. de Groot et al., J. Elec. Spec. and Rel. Phen., 249, 147061 (2021).
- (8) Available at https://times-webxrs.stanford.edu.
- (9) Available at https://times-arpes.stanford.edu.
- (10) J. J. Kas et al,, in preparation.
- (11) F. de Groot and A. Kotani, Core Level Spectroscopy of Solids, in Advances in Condensed Matter Science, Boca Raton: CRC Press (2008).
- (12) Michel van Veenendaal, Theory of Inelastic Scattering and Absorption of X-rays, Cambridge University Press (2015).
- (13) T. P. Devereaux and R. Hackl, Rev. Mod. Phys. 79, 175 (2007).
- (14) L. J. P. Ament et al, Rev. Mod. Phys. 83 , 705 (2011).