Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed Jun 15, 2020
1 parent 016863c commit 285b3c0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions qiskit/optimization/algorithms/minimum_eigen_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"""A wrapper for minimum eigen solvers from Aqua to be used within the optimization module."""

from typing import Optional, Any, Union, Tuple, List, cast
import warnings
import numpy as np

from qiskit.providers import BaseBackend
Expand Down Expand Up @@ -271,10 +270,6 @@ def eval_operator_at_bitstring(operator: Union[OperatorBase, LegacyBaseOperator]
The operator evaluated with the quantum state the bitstring describes.
"""
if isinstance(operator, LegacyBaseOperator):
warnings.warn('Passing a LegacyBaseOperator to eval_operator_at_bitring is deprecated as '
'of 0.9.0 and will be removed no earlier than 3 months after the release. '
'You should pass an OperatorBase object instead.', DeprecationWarning,
stacklevel=2)
operator = operator.to_opflow()

state = StateFn(bitstr[::-1])
Expand Down

0 comments on commit 285b3c0

Please sign in to comment.