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

Revert "Implemented general Quantum Time Evolution Framework interfaces. (#7669)" #7845

Merged
merged 4 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions qiskit/algorithms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,22 +93,6 @@
NumPyEigensolver


Evolvers
--------

Algorithms to evolve quantum states in time. Both real and imaginary time evolution is possible
with algorithms that support them. For machine learning, Quantum Imaginary Time Evolution might be
used to train Quantum Boltzmann Machine Neural Networks for example.

.. autosummary::
:toctree: ../stubs/
:nosignatures:

RealEvolver
ImaginaryEvolver
EvolutionResult
EvolutionProblem

Factorizers
-----------

Expand Down Expand Up @@ -204,9 +188,6 @@
"""

from .algorithm_result import AlgorithmResult
from .evolvers import EvolutionResult, EvolutionProblem
from .evolvers.real.real_evolver import RealEvolver
from .evolvers.imaginary.imaginary_evolver import ImaginaryEvolver
from .variational_algorithm import VariationalAlgorithm, VariationalResult
from .amplitude_amplifiers import Grover, GroverResult, AmplificationProblem, AmplitudeAmplifier
from .amplitude_estimators import (
Expand Down Expand Up @@ -264,10 +245,6 @@
"MaximumLikelihoodAmplitudeEstimationResult",
"EstimationProblem",
"NumPyEigensolver",
"RealEvolver",
"ImaginaryEvolver",
"EvolutionResult",
"EvolutionProblem",
"LinearSolverResult",
"Eigensolver",
"EigensolverResult",
Expand Down
8 changes: 5 additions & 3 deletions qiskit/algorithms/eigen_solvers/eigen_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
"""The Eigensolver interface"""

from abc import ABC, abstractmethod
from typing import Optional, List, Tuple
from typing import Dict, Optional, List, Union, Tuple, TypeVar

import numpy as np

from qiskit.opflow import OperatorBase
from ..algorithm_result import AlgorithmResult
from ..list_or_dict import ListOrDict

# Introduced new type to maintain readability.
_T = TypeVar("_T") # Pylint does not allow single character class names.
ListOrDict = Union[List[Optional[_T]], Dict[str, _T]]


class Eigensolver(ABC):
Expand Down
3 changes: 1 addition & 2 deletions qiskit/algorithms/eigen_solvers/numpy_eigen_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
from qiskit.opflow import I, ListOp, OperatorBase, StateFn
from qiskit.utils.validation import validate_min
from ..exceptions import AlgorithmError
from .eigen_solver import Eigensolver, EigensolverResult
from ..list_or_dict import ListOrDict
from .eigen_solver import Eigensolver, EigensolverResult, ListOrDict

logger = logging.getLogger(__name__)

Expand Down
21 changes: 0 additions & 21 deletions qiskit/algorithms/evolvers/__init__.py

This file was deleted.

58 changes: 0 additions & 58 deletions qiskit/algorithms/evolvers/evolution_problem.py

This file was deleted.

40 changes: 0 additions & 40 deletions qiskit/algorithms/evolvers/evolution_result.py

This file was deleted.

36 changes: 0 additions & 36 deletions qiskit/algorithms/evolvers/evolver.py

This file was deleted.

11 changes: 0 additions & 11 deletions qiskit/algorithms/evolvers/imaginary/__init__.py

This file was deleted.

21 changes: 0 additions & 21 deletions qiskit/algorithms/evolvers/imaginary/imaginary_evolver.py

This file was deleted.

11 changes: 0 additions & 11 deletions qiskit/algorithms/evolvers/real/__init__.py

This file was deleted.

21 changes: 0 additions & 21 deletions qiskit/algorithms/evolvers/real/real_evolver.py

This file was deleted.

18 changes: 0 additions & 18 deletions qiskit/algorithms/list_or_dict.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
"""The Minimum Eigensolver interface"""

from abc import ABC, abstractmethod
from typing import Optional, Tuple
from typing import Dict, Optional, List, Union, Tuple, TypeVar

import numpy as np

from qiskit.opflow import OperatorBase
from ..algorithm_result import AlgorithmResult
from ..list_or_dict import ListOrDict

# Introduced new type to maintain readability.
_T = TypeVar("_T") # Pylint does not allow single character class names.
ListOrDict = Union[List[Optional[_T]], Dict[str, _T]]


class MinimumEigensolver(ABC):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

from qiskit.opflow import OperatorBase
from ..eigen_solvers.numpy_eigen_solver import NumPyEigensolver
from .minimum_eigen_solver import MinimumEigensolver, MinimumEigensolverResult
from ..list_or_dict import ListOrDict
from .minimum_eigen_solver import MinimumEigensolver, MinimumEigensolverResult, ListOrDict

logger = logging.getLogger(__name__)

Expand Down
3 changes: 1 addition & 2 deletions qiskit/algorithms/minimum_eigen_solvers/vqe.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@
from qiskit.utils.validation import validate_min
from qiskit.utils.backend_utils import is_aer_provider
from qiskit.utils import QuantumInstance, algorithm_globals
from ..list_or_dict import ListOrDict
from ..optimizers import Optimizer, SLSQP, OptimizerResult
from ..variational_algorithm import VariationalAlgorithm, VariationalResult
from .minimum_eigen_solver import MinimumEigensolver, MinimumEigensolverResult
from .minimum_eigen_solver import MinimumEigensolver, MinimumEigensolverResult, ListOrDict
from ..exceptions import AlgorithmError
from ..aux_ops_evaluator import eval_observables

Expand Down
13 changes: 0 additions & 13 deletions releasenotes/notes/time-evo-framework-9d58827bdbbebd62.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions test/python/algorithms/evolvers/__init__.py

This file was deleted.

Loading