qat.experimental.dialect.q1.target module

class Q1asmTarget(emit_debug_info=False)

Bases: Target

emit(ctx, module, output)

Emits a Q1 module to Q1 assembly.

Parameters:
  • ctx (Context) – xDSL context for the emission target.

  • module (ModuleOp) – Module containing Q1 dialect operations.

  • output (IO[str]) – Text stream receiving the printed assembly.

Return type:

None

emit_debug_info: bool = False
name: ClassVar[str] = 'q1asm'
emit_program(region, output, *, emit_debug_info=False)

Emits Q1 assembly for all ops in a region.

Parameters:
  • region (Region) – Region containing Q1 operations.

  • output (IO[str]) – Text stream receiving the printed assembly.

  • emit_debug_info (bool) – When True, debug-info inline comments are included in the output. Defaults to False for comment-free assembly suitable for production upload.