Qiskit Optimization: A library for optimization applications using quantum computing
Archived. The repository is read-only: no more fixes or releases will come.
pip install qiskit-optimizationREADME as published on PyPI with version 0.7.0.
Qiskit Optimization
[!WARNING] Qiskit Optimization is no longer officially supported by IBM. Like any other Apache 2 licensed code, you are free to use it or/and extend it, but please be aware that it is under your own risk.
Qiskit Optimization is an open-source framework that covers the whole range from high-level modeling of optimization problems, with automatic conversion of problems to different required representations, to a suite of easy-to-use quantum optimization algorithms that are ready to run on classical simulators, as well as on real quantum devices via Qiskit.
The Optimization module enables easy, efficient modeling of optimization problems using docplex. A uniform interface as well as automatic conversion between different problem representations allows users to solve problems using a large set of algorithms, from variational quantum algorithms, such as the Quantum Approximate Optimization Algorithm QAOA, to Grover Adaptive Search using the GroverOptimizer, leveraging fundamental algorithms. Furthermore, the modular design of the optimization module allows it to be easily extended and facilitates rapid development and testing of new algorithms. Compatible classical optimizers are also provided for testing, validation, and benchmarking.
Installation
We encourage installing Qiskit Optimization via the pip tool (a python package manager).
pip install qiskit-optimization
pip will handle all dependencies automatically and you will always install the latest (and well-tested) version.
If you want to work on the very latest work-in-progress versions, either to try features ahead of their official release or if you want to contribute to Optimization, then you can install from source. To do this follow the instructions in the documentation.
Optional Installs
-
IBM CPLEX may be installed using to enable the reading of files and the usage of the , wrapper for . CPLEX is a separate package and its support of Python versions is independent of Qiskit Optimization, where this CPLEX command will have no effect if there is no compatible version of CPLEX available (yet).