qbraid.programs.ProgramSpec
- class ProgramSpec(program_type, alias=None, overwrite=False, to_ir=None)[source]
Base class used to register program type and type alias.
Methods
__init__
(program_type[, alias, overwrite, to_ir])to_ir
(program)Convert the given program to an intermediate representation (IR) using the to_ir lambda.
Attributes
alias
Return the alias of the registered program type.
native
True if program is natively supported by qBraid, False otherwise.
program_type
Return the registered program type.