It's kind of confusing terminology. I'll stick with how these terms are used by industry/laymen - heat pump also has a scientific definition that's more broad than how it's normally used.
There's a process called a "vapor compression cycle" which essentially works by moving energy from a cold area to a hot area (which makes the cold area colder and the hot area hotter).
Air conditioning is when you put the cold side of a vapor compression cycle in a building to keep it cool.
The term "heat pump" most typically refers to a device where the hot side of the vapor compression cycle is put in a building to keep it warm.
However, many heat pumps have an air conditioning mode, where the hot and cold sides of the vapor compression cycle switch places depending on the season. So air conditioner refers only to cooling, while heat pump may refer to heating along or a device which can both heat and cool.
There's a process called a "vapor compression cycle" which essentially works by moving energy from a cold area to a hot area (which makes the cold area colder and the hot area hotter).
Air conditioning is when you put the cold side of a vapor compression cycle in a building to keep it cool.
The term "heat pump" most typically refers to a device where the hot side of the vapor compression cycle is put in a building to keep it warm.
However, many heat pumps have an air conditioning mode, where the hot and cold sides of the vapor compression cycle switch places depending on the season. So air conditioner refers only to cooling, while heat pump may refer to heating along or a device which can both heat and cool.