with tensor rank k, we provide an algorithm that checks whether the positive mapis equivalent to a doubly stochastic map. This procedure is based on the search for Perron eigenvectors of completely positive maps and unique solutions of, at most, k unconstrained quadratic minimization problems. As a corollary, we can check whether this state can be put in the filter normal form. This normal form is an important tool for studying quantum entanglement. An extension of this procedure to PPT states in M k ⊗ M m is also presented. √ k Id, D 1 = 1 √ m Id and tr(C i C j ) = tr(D i D j ) = 0, for every i = j [5, 6].