Supposing that $\{B_{ij}\}_{i,j}$ are all Hermitian matrices and $\{c_{ijk}\}_{i,j,k}$ are all real numbers, the corresponding SDP(Semidefinite Programming) problem is as follows: $$ \begin{aligned} &\!\!\min_{\{X_{ij} \;\!\}}\quad \mathrm{tr}\sum_{i,j}X_{ij}B_{ij} \\ &\mathrm{s.t.}\quad\sum_{i,j} c_{ijk}X_{ij}\succeq0,\;\forall k \\ &\qquad\;\, \mathrm{tr}\sum_{i,j,k}c_{ijk}X_{ij}=1 \end{aligned} $$ where $\{X_{ij}\}_{i,j}$ are all Hermitian matrices.
How should I solve it by programming?
I know that semi-definite programming is a kind of convex optimization problem, and Python has two commonly used libraries for solving convex optimization: cvxpy and cvxopt.
I also checked the corresponding documents, but there is no such form of SDP in the document, so how do I program it to solve it?
Can you give me some ideas?
Update:
Now, I will restate my question with the original notation in the paper:
Assuming that $x$ can take values $0,1,\cdots,m-1$, and $a$ can take values $0,1,\cdots,n-1$, now we define a function:
$$ \lambda(\cdot): \{0,1,\cdots,m-1\}\to\{0,1,\cdots,n-1\},\quad x\mapsto a $$ Thus the function $\lambda$ can be uniquely determined by the tuple $(a_{x=0},a_{x=1},\cdots,a_{x=m-1})$. It can be seen from the definition that there are $n^m$ such functions.
For example, let $m=3,n=2$, $\lambda=(1,0,1)$, it means that $$ \lambda(0)=1,\quad\lambda(1)=0,\quad \lambda(2)=1 $$ Then we define a function again: $$ D(a|x,\lambda)= \delta_{a,\lambda(x)}= \begin{cases} 1,&\lambda(x)=a \\ 0,&\lambda(x)\neq a\\ \end{cases} $$ Using the example mentioned above, we know $$ D(1|0,\lambda)=1,\quad D(0|1,\lambda)=1,\quad D(1|2,\lambda)=1 \\ D(a|x,\lambda)=0,\quad \text{others} $$ Now, I assume you have understood the definition of $D(a|x,\lambda)$. Next, I will introduce the SDP that appears in the paper.
Let $\{F_{a|x}\}_{a,x}$ be a series of Hermitian matrices, given a series of matrices $\{\sigma_{a|x}\}_{a,x}$ and a series of distributions $\{D(a|x,\lambda)\}_{\lambda}$, the corresponding SDP is described as follows: $$ \begin{aligned} &\!\!\min_{\{F_{a|x} \;\!\}}\quad \mathrm{tr}\sum_{a,x}F_{a|x}\sigma_{a|x} \\ &\mathrm{s.t.}\quad\sum_{a,x} D(a|x,\lambda)F_{a|x}\succeq0,\;\forall \lambda\\ &\qquad\;\, \mathrm{tr}\sum_{a,x,\lambda}D(a|x,\lambda)F_{a|x}=1 \end{aligned} $$
What is done between $F_{a|x}$ and $\sigma_{a|x}$ is matrix multiplication.
Note that the matrices mentioned above are complex matrices.