The quarry takes buildcraft power, or MJ, and I think from the latest update, they can take a wide range of power, with the higher the power in, the faster the quarry runs. If you've got the resources, I would be filling an energy cube from thermal expansion and sitting that next to the quarry...