I'd wager they didn't "dig" a pit at all. In fact, I suggest there was already a pit on that stage in that location, which would explain why they put the engine room where it was in the overall set plans.
The stages at Paramount have a basement level. Many of the Trek props, costumes and set pieces were stored there over the years. The warp core extended down into this area.