-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Ikko Hamamura <[email protected]> Co-authored-by: Takashi Imamichi <[email protected]>
- Loading branch information
1 parent
c1423bb
commit 7ee8f28
Showing
13 changed files
with
901 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2022. | ||
# | ||
# This code is licensed under the Apache License, Version 2.0. You may | ||
# obtain a copy of this license in the LICENSE.txt file in the root directory | ||
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Any modifications or derivative works of this code must retain this | ||
# copyright notice, and modified files need to carry a notice indicating | ||
# that they have been altered from the originals. | ||
|
||
""" | ||
===================================== | ||
Gradients (:mod:`qiskit.algorithms.gradients`) | ||
===================================== | ||
.. currentmodule:: qiskit.algorithms.gradients | ||
Base Classes | ||
============ | ||
.. autosummary:: | ||
:toctree: ../stubs/ | ||
BaseSamplerGradient | ||
BaseEstimatorGradient | ||
Gradients | ||
========= | ||
.. autosummary:: | ||
:toctree: ../stubs/ | ||
FiniteDiffEstimatorGradient | ||
FiniteDiffSamplerGradient | ||
LinCombEstimatorGradient | ||
LinCombSamplerGradient | ||
ParamShiftEstimatorGradient | ||
ParamShiftSamplerGradient | ||
Results | ||
======= | ||
.. autosummary:: | ||
:toctree: ../stubs/ | ||
EstimatorResult | ||
SamplerResult | ||
""" | ||
|
||
from .base_estimator_gradient import BaseEstimatorGradient | ||
from .base_sampler_gradient import BaseSamplerGradient | ||
from .estimator_gradient_result import EstimatorGradientResult | ||
from .finite_diff_estimator_gradient import FiniteDiffEstimatorGradient | ||
from .finite_diff_sampler_gradient import FiniteDiffSamplerGradient | ||
from .lin_comb_estimator_gradient import LinCombEstimatorGradient | ||
from .lin_comb_sampler_gradient import LinCombSamplerGradient | ||
from .param_shift_estimator_gradient import ParamShiftEstimatorGradient | ||
from .param_shift_sampler_gradient import ParamShiftSamplerGradient | ||
from .sampler_gradient_result import SamplerGradientResult | ||
|
||
__all__ = [ | ||
"BaseEstimatorGradient", | ||
"BaseSamplerGradient", | ||
"EstimatorGradientResult", | ||
"FiniteDiffEstimatorGradient", | ||
"FiniteDiffSamplerGradient", | ||
"LinCombEstimatorGradient", | ||
"LinCombSamplerGradient", | ||
"ParamShiftEstimatorGradient", | ||
"ParamShiftSamplerGradient", | ||
"SamplerGradientResult", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.