Partial trace in CVX?

I have seen some people from cvxpy tried to cook up some hacks to include partial trace in a SDP problem, c.f. Has there been any effort for CVX? CVXQUAD has some good functions for quantum info but unfortunately lacks the partial trace.

I suppose you can write your own version, and feel free to post it here. You can take advantage of CVX’s multidimensional array capability.

The answer at provides a link to what perhaps is a partial trace implementation in CVX, but the post is old, and the link is dead.

1 Like


There is a partial trace in QETLAB, written by @Nathaniel_Johnston at .

Thanks so much for the update! I will take a look at it :grinning: