Energy against the current on a quantum scale, without contradicting the laws of physics

In a classical thermodynamic system, the heat current flows from the hotter body to the colder one, or electricity from the higher voltage to the lower one. The same thing happens in quantum systems, but this state can be changed, and the flow of energy and particles can be reversed if a quantum observer is inserted into the system.