Ptychographic reconstruction of pure quantum states.