Polarization density matrix for heavy QQ production in hadron colliders