Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken CI #210

Merged
merged 6 commits into from
Apr 11, 2024
Merged

Fix broken CI #210

merged 6 commits into from
Apr 11, 2024

Conversation

arnaucasau
Copy link
Contributor

@arnaucasau arnaucasau commented Apr 3, 2024

CI was broken for four reasons:

  1. pylint was pinned to version 2.16.2 which doesn't support Python 3.12 and 3.11 officially
  2. Python 3.12 removed support for the imp library in favor of importlib and we were using a version of ipykernal that was importing the old library. The PR pins ipykernal to the first version supporting importlib. See this issue.
  3. The 'QuantumCircuit' object has no method 'bind_parameters' in qiskit 1.0 as we can see in #791 . This PR replaces the call to bind_parameters for assign_parameters as explained in the qiskit 1.0 release notes.
  4. The qiskit.execute function is not available in Qiskit 1.0 anymore -> Migration guide

@arnaucasau arnaucasau changed the title Fix CI replacing the bind_parameters() call for assign_parameters() Fix CI replacing the bind_parameters() call for assign_parameters() Apr 3, 2024
@arnaucasau arnaucasau closed this Apr 3, 2024
@arnaucasau arnaucasau reopened this Apr 4, 2024
@arnaucasau arnaucasau marked this pull request as draft April 4, 2024 07:23
@arnaucasau arnaucasau changed the title Fix CI replacing the bind_parameters() call for assign_parameters() [WIP] Fix CI Apr 4, 2024
@arnaucasau arnaucasau changed the title [WIP] Fix CI Fix broken CI Apr 4, 2024
@arnaucasau arnaucasau marked this pull request as ready for review April 4, 2024 10:43
@arnaucasau arnaucasau marked this pull request as draft April 4, 2024 14:03
@arnaucasau arnaucasau marked this pull request as ready for review April 4, 2024 14:50
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing this

@@ -1,6 +1,6 @@
qiskit-aer>=0.13
pytest
pylint==2.16.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I worry this might be too loose for pylint which notoriously has had issues with rule stability between even on bugfix releases. But lets give it a try and we can do an exact version pin if needed

@mtreinish mtreinish merged commit 512036f into Qiskit:main Apr 11, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants