Using Strawberry Fields
Development
API
is_unitary
True iff all the operations in the program are unitary.
prog (Program) – quantum program
True iff all operations in the program are of type strawberryfields.ops.Gate
strawberryfields.ops.Gate
bool