Non-Abelian Berry connections for quantum computation