German
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.PassManagerConfig.from_backend

classmethod PassManagerConfig.from_backend(backend, **pass_manager_options)[Quellcode]

Construct a configuration based on a backend and user input.

This method automatically gererates a PassManagerConfig object based on the backend’s features. User options can be used to overwrite the configuration.

Parameter
  • backend (BackendV1) – The backend that provides the configuration.

  • pass_manager_options – User-defined option-value pairs.

Rückgabe

The configuration generated based on the arguments.

Rückgabetyp

PassManagerConfig

Verursacht

AttributeError – If the backend does not support a configuration() method.