I have been recently trying to advance my understanding of thermodynamics, but i have encountered a problem when it comes to absorption heat pumps and similar systems. The standard heat pump requires an energy input, to move heat energy from one location to another. Most would consider absorption heat pumps no different as they use heat, a form of energy to operate. My consideration would say otherwise, as a standard heat pump uses, high quality energy to operate. Using high quality energy one can yield much more heat energy, using a heat pump. From my understanding, a Carnot heat pump creates a heat gradient efficient enough for a Carnot heat heat engine to utilise and extract the exact amount of energy that was required to create the heat gradient. There is no reduction of entropy in this perfect system and so there is no second law violation. If i decided to use a Carnot heat pump to operate an absorption heat pump, the heat added by the Carnot heat pump, is less than the heat expelled by the absorption heat pump. Using a Carnot heat engine to make use of the gradient, I would expect that the engine would produce surplus high quality energy, in violation of the second law. So where have a gone wrong in my understanding in this case?