The pit is the hole in the ground and all it’s associated tunnels and underground spaces. The mine is the pit, plus the buildings and operations above ground, such as repair shops, material processing conveyors and towers, and processing plants. In very small operations, the pit and the mine are the same , but in larger operations there is the pit plus additional buildings and structures that are collectively called ‘the mine’. Source
A quarry is a place from which dimension stone, rock, construction aggregate, riprap, sand, gravel, or slate has been excavated from the ground. A quarry is the same thing as an open-pit mine from which minerals are extracted. The only trivial difference between the two is that open-pit mines that produce building materials and dimension stone are commonly referred to as quarries.