Abstract
In this paper we construct a new matrix from the matrix, where / is the image of the braid group representation. The matrix and the matrix both satisfy extraspecial 2-groups algebra relations. By Yang-Baxteration approach, we derive a unitary matrix from the matrix with parameters and . Three-qubit entangled states can be generated by using the matrix. A Hamiltonian for 3 qubits is constructed from the unitary matrix. We then study the entanglement and Berry phase of the Yang-Baxter system.