Consider the scenario where I define a CVXPY variable, a 4x4 semidefinite matrix, as below
x = cvxpy.Semidef(4)
If I want to write a constraint involving the trace of this, it seems I must use the atomic function
cvxpy.atoms.affine.trace.trace(x)
I would like to enforce a specific constraint on x
, namely that it has a positive partial transpose. There is no atomic function like the trace in this case but such a method has already been written (see http://qutip.org/docs/3.1.0/modules/qutip/partial_transpose.html#partial_transpose). Can I get CVXPY to allow me to write a constraint in terms of these non-atomic functions that already exist elsewhere (e.g. numpy, qutip and so on)?
Thanks!