from_dict
- classmethod GateCompiler.from_dict(gateset, config_dict)
Construct a
GateCompilerfrom a plain configuration dictionary.- Parameters:
gateset (
GateSet) – Target native gate set.config_dict (
dict[str,Any]) – Configuration fields. The"strategy"key (default"adaptive") selects whichCompilerConfigsubclass to build; the remaining keys are passed to it as constructor arguments.
- Return type:
- Returns:
GateCompilerbound to the constructed configuration.- Raises:
ConfigError – If
"strategy"names an unsupported strategy.