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