Program.is_protoquil

Program.is_protoquil(quilt=False)[source]

Protoquil programs may only contain gates, Pragmas, and RESET. It may not contain classical instructions or jumps.

Return type

bool

Returns

True if the Program is Protoquil, False otherwise