sf.io.to_xir

to_xir(prog, **kwargs)[source]

Convert a Strawberry Fields Program to an XIR Program.

Parameters

prog (Program) – the Strawberry Fields program

Keyword Arguments

add_decl (bool) – Whether gate and output declarations should be added to the XIR program. Default is False.

Return type

Program

Returns

xir.Program