bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin
← Module overview
class
method
source
classQASM3ToSquin¶source
bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin
Bases: Pass
Converts a QASM3 kernel to a Squin kernel.
class QASM3ToSquinMaps 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.
methodunsafe_run¶source
bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin.unsafe_run
def unsafe_run(mt: ir.Method) -> RewriteResultParameters
| Name | Type | Description |
|---|---|---|
mt | ir.Method |
Returns
RewriteResult