Skip to content

bloqade.qasm3.groups.gate

← Module overview

functiongatesource

bloqade.qasm3.groups.gate

def gate(py_func=None, *, fold: bool=True)

Decorator callable: use the bare decorator or call it with compilation options. The displayed signature exposes the returned pass options, not the internal factory’s self parameter.

Parameters

NameTypeDefaultDescription
py_func—NonePython function to compile; omit when using the decorator with options.
foldboolTrue
source