Skip to content

bloqade.lanes.cudaq_integration.cudaq_to_squin

← Module overview

functioncudaq_to_squinsource

bloqade.lanes.cudaq_integration.cudaq_to_squin

def cudaq_to_squin(kernel: Callable[..., Any]) -> ir.Method

Convert a CUDA-Q kernel to a squin ir.Method.

The conversion pipeline is::

CUDA-Q kernel → QIR (base profile) → squin ir.Method

Parameters

NameTypeDescription
kernelCallable[..., Any]A CUDA-Q ``PyKernelDecorator`` instance.

Returns

ir.MethodThe squin ``ir.Method`` corresponding to *kernel*.

source