We present a direct and general relation between entanglement of formation and quantum discord. By extending the relation to a paradigmatic situation of a bipartite system coupled to the environment we show that in the deterministic quantum computer with one pure qubit (DQC1) the protocol has the ability to rearrange the entanglement and the quantum discord, which are present and distributed following a monogamic relation. This implies that quantum computation can be understood in a different ground- as a coherent dynamics where quantum correlations are distributed between the qubits of the computer. In addition, we extend the discussion for an arbitrary tripartite mixed system, showing the existence of an inequality for the subsystems entropies with stronger bounds than the usual strong subadditivity.