It's not ambiguous; it's a faulty comparison. You compare things that are equal: rice and wheat, or the protein of rice and the protein of wheat.
The sentence in its full form would have a full relative clause, which would show the comparison very clearly. The correct form of comparison for the sentence, therefore, is
Rice has a protein [that is] higher in quality than that of wheat