I've come across several of the QAOA tutorials, and yet I'm afraid I haven't found any explanation on this. According to the Qiskit tutorial on QAOA, the cost function for the target problem has a series of the real-valued weights $W_{(Q,\bar{Q})}$, which is still present as it is in the problem Hamiltonian $H$ derived from the cost function.
My question is, how can one actually put these real-valued numbers into the Hamiltonian? As far as I understand they represent the energy of the system altogether, but when it comes to implementing QAOA on a real quantum computer I wonder how you can manage to encode those real values as energy in the Hamiltonian.