Disciplined convex programming error:Only scalar quadratic forms can be specified in CVX. How to add additional constraint

Hello, and welcome to the forum.

Are you trying to impose an equality constraint Z == Z^n on the matrix Z? That doesn’t look convex to me.