This methods returns a List of input gates corresponding to variables in the given polynomial R, and caches the result in the ring for future use.
i1 : R = QQ[x,y] o1 = R o1 : PolynomialRing
i2 : getVarGates R o2 = {[x], [y]} o2 : List