Skip to content

qiskit cap on a minor version instead of a major one #622

Open

Description

@1ucian0

Hi Team Graphix,
I saw you really nice presentation in MQSF 26 and I got curious about how do you integrate with Qiskit. While doing that, I noticed that you have a cap on a minor Qiskit release:

"qiskit>=1.0,<2.4",

I wonder why. Is it because 2.5 does not properly work? If this is not the case I suggest:

- "qiskit>=1.0,<2.4",
+ "qiskit>=1.0,<3",

Qiskit follows SemVer and code working with 2.4 should keep working in 2.5 (and so on, until 3.0). If that's not the case, then there is a bug in Qiskit breaking backwards compatibility and I would like to learn more about it so I can report it in their end.

Activity

  1. matulni commented on Oct 18, 2026

    @matulni
    Contributor

    Hi @1ucian0, thank you for your interest in the project and opening this issue!
    The cap in the qiskit version is due to an incompatibility with latest mypy version as reported in python/mypy#21263. You can verify the error by removing the cap and running

    uv run --extra dev --extra typing mypy tests
    

    I noticed that the issue was solved last week, but it's not released yet. I opened #623 with a comment clarifying the problem. We should be able to remove the cap after next mypy release, which will be reported by dependabot.
    Thank you for reporting it!

  2. thierry-martinez commented on Oct 19, 2026

    @thierry-martinez
    Collaborator

    #623 is now merged, but I propose to leave this issue open until the next mypy release, which should allow us to remove qiskit<2.4.

  3. matulni commented on Nov 5, 2026

    @matulni
    Contributor

    Update: mypy 2.4.1 was released and bumped by dependabot in #647. However, the PR #22172 fixing this issue was not incorporated in the mypy 2.4.1 release.

    Removing the 2.4. cap in qiskit still yields an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions