Suppose we are given a general semidefinite program (SDP) of the form with an additinal rank requirement
\begin{array}{rl} {\displaystyle\min_{X \in \mathbb{S}^n}} & \langle C, X \rangle_{\mathbb{S}^n} \\ \text{subject to} & \langle A_i, X \rangle_{\mathbb{S}^n} = b_i, \quad i = 1,\ldots,m \\ & X \succeq 0 \\ & \operatorname{rank} (X)\leq r \end{array}
What is the computational complexity of such problem? What is the optimal algorithm right now?
In particular, I am interested in the cases that $r\leq \log n$, and $r\leq \exp(\sqrt{\log n})$.