from_dict

classmethod GateCompiler.from_dict(gateset, config_dict)

Construct a GateCompiler from a plain configuration dictionary.

Parameters:
  • gateset (GateSet) – Target native gate set.

  • config_dict (dict[str, Any]) – Configuration fields. The "strategy" key (default "adaptive") selects which CompilerConfig subclass to build; the remaining keys are passed to it as constructor arguments.

Return type:

GateCompiler

Returns:

GateCompiler bound to the constructed configuration.

Raises:

ConfigError – If "strategy" names an unsupported strategy.