qbraid.get_program_type

get_program_type(program, require_supported=True)[source]

Get the type of a quantum program.

Parameters:
  • program (qbraid.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.

Return type:

str