build_template¶
- build_template(qasm_body, symbol_names)[source]¶
Split a QASM string at symbol boundaries into a
QASMTemplate.Symbol names are matched longest-first to avoid partial-match issues (e.g.,
w_1matching insidew_10). Matches require non-identifier characters on both sides, so a parameter namedxdoes NOT match thexinsidecx q[0],q[1];.- Parameters:
- Return type:
- Returns:
A
QASMTemplateready forrender_template().