Is there a way to traverse the indices of @polyvar p11 p12...pnn

With TypedPolynomials (as in your other question), the functionality @polyvar p[1:n, 1:n] doesn’t seem to be implemented yet.

However, it is is easy to construct the Variables matrix manually:

julia> subidx(i) = join(Char.(0x2080 .+ convert.(UInt16, digits(i)[end:-1:1])));

julia> n = 3;

julia> p = hcat([[Variable{Symbol("p", subidx(i), subidx(j))}() for i in 1:n] for j in 1:n]...)
3Γ—3 Array{Variable,2}:
 p₁₁  p₁₂  p₁₃
 p₂₁  pβ‚‚β‚‚  p₂₃
 p₃₁  p₃₂  p₃₃