Let {mathcal B} be a linear space of matrices over a field {mathbb spanned by ntimes n matrices B_1, dots, B_m. The non-commutative rank of {mathcal B}$ is the minimum rin {mathbb N} such that there exists Uleq {mathbb F}^n satisfying dim(U)-dim( {mathcal B} (U))geq n-r, where {mathcal B}(U):={mathrm span}(cup_{iin[m]} B_i(U)). Computing the non-commutative rank generalizes some well-known problems including the bipartite graph maximum matching problem and the linear matroid intersection problem. In this paper we give a deterministic polynomial-time algorithm to compute the non-commutative rank over any field {mathbb F}. Prior to our work, such an algorithm was only known over the rational number field {mathbb Q}, a result due t...