Qasm3 to squin
QASM3ToSquin
dataclass
QASM3ToSquin()
Bases: Pass
flowchart TD
bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin[QASM3ToSquin]
click bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin href "" "bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin"
Converts a QASM3 kernel to a Squin kernel.
Maps all QASM3 gate, allocation, measurement, and reset statements to their squin equivalents using composable rewrite rules. Rotation gates (RX, RY, RZ) and UGate have their arguments reordered to match the squin calling convention.