The structural properties and construction methodologies of quantum codes (QCs) defined over the finite field Z_3, the finite field with three elements, are examined in this work. The primary focus is on utilizing constacyclic codes within a specific algebraic structure the finite commutative non-chain ring R=Z3+uZ3+vZ3+uvZ3, where the indeterminates u and v satisfy the relations u2=1, v2=1, and uv=vu. We provide a set of idempotent generators of the ring and define linear codes and calculated some self-inverse units. The relationship between R and Z34 is established using a gray map. Constacyclic (CC) codes are broken down into cyclic (C) codes and negacyclic (N) codes in order to determine the parameters of QCs over Z_3. Several QCs of arbitrary lengths are developed as an application. In this paper, we calculated those various parameters of QCs which are better than existing parameters of QCs. This paper contains only those units which have self-inverse.