sf.utils.is_channel
-
is_channel
(prog)[source]
True iff all the operations in the program can be represented as quantum channels.
- Parameters
prog (Program) – quantum program
- Returns
True if all operations in the program are of types strawberryfields.ops.Gate
and strawberryfields.ops.Channel
- Return type
bool
code/api/strawberryfields.utils.is_channel