Quantum simulation of Hamiltonian spectra on a silicon chip