An efficient algorithm for convex quadratic semi-definite optimization