pub fn circuit_gate_selector_index(typ: GateType) -> usize