Qubit regularization of the O(3) sigma model