Magnetic Properties and Electronic Configurations of Mn Ions in the Diluted Magnetic Semiconductor Ba
1−xK
x(Zn
1−yMn
y)
2As
2 Studied by X-ray Magnetic Circular Dichroism and Resonant Inelastic X-ray Scattering
X-ray magnetic circular dichroism and resonant inelastic x-ray scattering at the Mn $L_{2,3}$ edge reveal the electronic and magnetic state of Mn in the diluted magnetic semiconductor Ba$_{1-x}$K$_{x}$(Zn$_{1-y}$Mn$_{y}$)$_{2}$As$_{2}$. Sum-rule analysis yields a net spin moment of $0.45\mu_{\text{B}}$/Mn and a small orbital moment of $0.05\mu_{\text{B}}$/Mn, indicating high-spin $d^{5}$ configurations with competing ferromagnetic and antiferromagnetic interactions reducing the net moment. Comparison of RIXS line shapes with Ga$_{1-x}$Mn$_{x}$As shows that the Mn ground state includes both the charge-transferred $3d^{5}\underline{L}$ configuration (with weakly bound holes) and the pure $3d^{5}$ configuration (with free holes).