How to add the constraints $trace(power(z,2))==1$ in cvx sdp problem, where z is a matrix?

I gave you an example for a 1 by 1 matrix, using “matrix” power. Things only get worse when the dimension is greater than 1. Please read Why isn’t CVX accepting my model? READ THIS FIRST! .