How to deal trace(X^H*A*X) in cvx

Here is the definitive word on the subject. Read the full thread, not just the portion displayed below.