Skip to content

Qiskit Nature does not work with Qiskit 2 #1385

@ziechys

Description

@ziechys

Environment

  • Qiskit Nature version: 0.7.2
  • Python version: 3.12.3
  • Operating system: Ubuntu 24.04.2 LTS

What is happening?

Qiskit Nature does not work with Qiskit 2 as it uses deprecated import
from qiskit.primitives import BaseSampler

It seems to be related to its use of qiskit_algorithms.

Image

How can we reproduce the issue?

import qiskit_nature

with qiskit version 2

What should happen?

Successful import

Any suggestions?

BaseSampler -> BaseSamplerV2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions