mqt.qudits.quantum_circuit.qasm¶
Module Contents¶
- class QASM[source]¶
Class that manages the parsing of QASM programs.
- static parse_nonspecial_lines(line: str, rgxs: dict[str, Pattern[str]], in_comment_flag: bool) tuple[bool, bool][source]¶
- static parse_qreg(line: str, rgxs: dict[str, Pattern[str]], sitemap: dict[tuple[str, int], tuple[int, int]]) bool[source]¶
- static parse_creg(line: str, rgxs: dict[str, Pattern[str]], sitemap_classic: ClSitemap) bool[source]¶
- static parse_gate(line: str, rgxs: dict[str, Pattern[str]], sitemap: dict[tuple[str, int], tuple[int, int]], gates: list[dict[str, Any]]) bool[source]¶
- static parse_ignore(line: str, rgxs: dict[str, Pattern[str]], warned: dict[str, bool]) bool[source]¶