Optimal T Counts under Sparsity: from QROM to State Preparation and Block Encoding | Digital Library | PAMCET | PAMCET