qbraid.programs.get_program_type
- get_program_type(program, require_supported=True)[source]
Get the type of a quantum program.
- Parameters:
program (qbraid.programs.QPROGRAM) – The quantum program to get the type of.
require_supported (bool) – If True, raise an error if the program type is not supported.
- Returns:
- The type of the quantum program, or None if the type cannot be determined and
require_supported is False.
- Return type:
str