Skip to content

qiskit.opflow is deprecated #1057

@1ucian0

Description

@1ucian0

Describe the bug

The module qiskit.opflow is used by qiskit.opflow was deprecated in Qiskit 0.43 (released on 2023-05-04) and will be removed eventually. The migration guide can be found in https://qisk.it/opflow_migration.

Steps to reproduce

The grep results in two instances of qiskit.opflow usage:

grep -ri '\<opflow\>' qiskit_ibm_runtime test
qiskit_ibm_runtime/estimator.py:from qiskit.opflow import PauliSumOp
test/unit/test_data_serialization.py:from qiskit.opflow import (

Expected behavior

The usage of qiskit.opflow needs to be migrated to quantum_info or removed in order to continue running with coming Qiskit releases.

Suggested solutions

With the help of https://qisk.it/opflow_migration, migrate to qiskit.quantum_info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions