# sf.utils.is_unitary¶

is_unitary(prog)[source]

True iff all the operations in the program are unitary.

Parameters

prog (Program) – quantum program

Returns

True iff all operations in the program are of type strawberryfields.ops.Gate

Return type

bool