Optional Dependencies

This module defines lazy availability testers for optional third-party dependencies. The checkers are instances of LazyImportTester and can be used as booleans (evaluated lazily), or to raise a MissingOptionalLibraryError when a dependency is required.

Available Testers

HAS_PYOMO = <qiskit.utils.lazy_tester.LazyImportTester object>

Pyomo is a Python-based optimization modeling language used to build linear and mixed-integer programs (LP/MILP) for classical solvers.

See also

LazyDependencyManager for usage examples and the available methods of this object.