Skip to content

bloqade.native.upstream.squin2native.SquinToNative

← Module overview

classSquinToNativesource

bloqade.native.upstream.squin2native.SquinToNative

A Target that converts Squin gates to native gates.

class SquinToNative

methodemitsource

bloqade.native.upstream.squin2native.SquinToNative.emit

def emit(mt: ir.Method, *, no_raise=True) -> ir.Method

Convert Squin gates to native gates.

Parameters

NameTypeDefaultDescription
mtir.MethodrequiredThe method to convert.
no_raiseboolTrueWhether to suppress errors. Defaults to True.

Returns

ir.MethodThe converted method.

source