Full thermalization of a photonic qubit