Skip to content

bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin

← Module overview

classQASM3ToSquinsource

bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin

Bases: Pass

Converts a QASM3 kernel to a Squin kernel.

class QASM3ToSquin

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.

methodunsafe_runsource

bloqade.squin.passes.qasm3_to_squin.QASM3ToSquin.unsafe_run

def unsafe_run(mt: ir.Method) -> RewriteResult

Parameters

NameTypeDescription
mtir.Method

Returns

RewriteResult

source