Qiskit-optimization

Latest version: v0.6.1

Safety actively analyzes 682457 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.3.0

Changelog

New Features
- Adding the bin-packing application qiskit_optimization.applications.BinPacking. https://en.wikipedia.org/wiki/Bin_packing_problem
- Added the runtime client QAOAClient to execute the QAOA algorithm on Qiskit runtime. This runtime program leverages QAOA dedicated transpiler passes such as swap strategies and pulse-efficient transpiler passes for cross-resonance based hardware. Both these optimizations can significantly reduce circuit depth and improve execution time and results. Further, the QAOA runtime also allows using CVaR expectation values, which can improve the performance of ground state calculations in optimization settings.
- qiskit_optimization.translators.from_docplex_mp() supports logical expressions of Docplex, i.e., logical_and, logical_or, and logical_not.

- Introduced the Sherrington-Kirkpatrick (SK) model [1] qiskit_optimization.applications.SKModel. The model has all-to-all ferromagnetic and antiferromagnetic interactions given by a random disorder and represents a mean-field approximation of a spin glass.

Upgrade Notes

- The deprecated methods QuadraticProgram.from_docplex and QuadraticProgram.to_docplex have been removed and no longer exist. These methods were deprecated as part of the 0.2.0 release. Instead you should use from_docplex_mp() and to_docplex_mp().

Deprecation Notes

- Rename the runtime “programs” to runtime “clients” to avoid name confusions and reflect the fact that they are an interface for code executed in the cloud. The classes VQEProgram, QAOAProgram and VQEProgramResult have been renamed to VQERuntimeClient, QAOARuntimeClient and VQERuntimeResult, respectively.

Bug Fixes

- Fix qiskit_optimization.converters.IntegerToBinary to convert quadratic terms correctly.

- Fix qiskit_optimization.converters.IntegerToBinary to convert variables with zero range, i.e., the lower bound is equal to the upper bound, without raising any error.

- if an indicator constraint of a Docplex model does not have a name, qiskit_optimization.translators.from_docplex_mp() adds a name ind{number} for sense <= and >= or names ind{number}_LE and ind{number}_GE for sense ==.

- If an indicator constraint of a Docplex model includes binary_var as part of linear_ct, qiskit_optimization.translators.from_docplex_mp() handles the coefficient properly.

- If a trivial constraint is included in a Docplex model, qiskit_optimization.translators.from_docplex_mp() raises an UserWarning and converts it into a constraint of qiskit_optimization.problems.QuadraticProgram as is.

- If a trivial constraint is included in qiskit_optimization.problems.QuadraticProgram, qiskit_optimization.translators.to_docplex_mp() converts it into a constraint of Docplex without any error.

- Allow Qiskit’s Optimizer classes as input for the optimizer in the VQEProgram and QAOAProgram instead of only dictionaries.

0.2.3

Changelog
=========

Fixed
-----

- Fix qiskit_optimization.converters.IntegerToBinary to convert quadratic terms correctly.
- Fix qiskit_optimization.converters.IntegerToBinary to convert variables with zero range, i.e., the lower bound is equal to the upper bound, without raising any error.

0.2.2

Changelog
=========

Fixed
-----

- Override classmethod supports_aux_operators in VQEProgram (223)

0.2.1

Changelog
=========

Fixed
-----

- Allow Qiskit Optimizers in the runtime programs (214)

0.2.0

0.1.0

First Release

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.