qlasskit.qlassfun.qlassf
- qlasskit.qlassfun.qlassf(f: str | ~typing.Callable, types: ~typing.List[~qlasskit.types.qtype.Qtype] = [], defs: ~typing.List[~qlasskit.qlassfun.QlassF] = [], to_compile: bool = True, compiler: ~typing.Literal['internal', 'recompiler', 'tweedledum'] = 'internal', bool_optimizer: ~qlasskit.boolopt.bool_optimizer.BoolOptimizerProfile = <qlasskit.boolopt.bool_optimizer.BoolOptimizerProfile object>, uncompute: bool = True) QlassF | UnboundQlassf
Decorator / function creating a QlassF object
- Parameters:
f (Union[str, Callable]) – the function to be parsed, as a str code or callable
types (List[Qtype]) – list of qtypes to inject
defs (List[Qlassf]) – list of qlassf to inject
to_compile (boolean, optional) – if True, compile to quantum circuit (default: True)
compiler (SupportedCompiler, optional) – override default compiler (default: internal)
bool_optimizer (BoolOptimizerProfile, optional) – override default optimizer (default: defaultOptimizer)
uncompute (bool, optional) – whenever uncompute input qubits during compilation (default: True)