How can I constraint phase of a signal?

I want space solution of Ax-b but the phase of x should be as similar to b. Usual L1 regularization gives spare solution but phase of x is completely different compare to b.

Can you formulate this as a convex optimization problem? You can’t expect the readers of this forum to do that for you.

Phase constraints are not convex.