Resource Estimation via Efficient Compilation of Key Quantum Primitives