Added 2.1.2 to caught versions of Qiskit in AdaptVQE #247
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
As per this comment in #244, Qiskit/qiskit#14714 will only be merged in the
2.2.0release of Qiskit. As such, Qiskit/qiskit#14567 is still a problem in the2.1.2release.We thus need to
simplifythecommutatorsourselves inAdaptVQEin this qiskit release. This was already done for the2.1.0and2.1.2releases. This PR adds the2.1.2release to the versions in which to perform this additional operation.This would prevent users from encountering errors when running
AdaptVQE.Note: this doesn't preclude having to pin the qiskit version to be different than
2.1.2inrequirements-dev.txt, since Qiskit/qiskit#14611 is not fixed in the2.1.2release either. However, while the later may not be encountered by users, it's way less certain for this issue, as seen from the fact that even basic unit test fail to pass when usingAdaptVQEwith qiskit2.1.2.