Constructs the spectral decomposition $\hat{A} = \sum a_n|a_n\rangle\langle a_n|$ and verifies reconstruction.