Quantum state reconstruction on atom-chips