Using Strawberry Fields
Development
API
is_ptype
Checks whether a variable name is a p-type variable.
p-type variables are used with TDM programs to represent a looped-over parameter, and consist of the letter ‘p’ followed by an integer. For example, ‘p0’, ‘p1’, ‘p42’.
bool