How do I rewrite the problem,so CVX can be used to solve it?

Modulus equal to 1 is a non-convex constraint.