Extended Data Fig. 1: XRD and Rietveld refinement on other four samples.

a–d, Powder X-ray diffraction patterns of four samples (SX2-SX5) and Rietveld fitting curves (red lines) to the data. The inset in (d) presents the Rietveld fitting results (lattice parameters and molar concentration of LuH2±xNy) of five samples (SX1-SX5). The slight difference of the lattice constants may be attributed to the different hydrogen/nitrogen concentrations or the crystallinity in different samples. The Rietveld fitting to these results shows a high purity with the main phase in a molar ratio of about 95%, and are highly consistent with each other.