def has_sub_circuit(op_type: str) -> bool:
    """Check whether this gate admits a sub circuit"""
    return op_type in {
        "CircBox",
        "Custom",
        "ExpBox",
        "QControlBox",
    }