Gradients (qiskit_machine_learning.gradients
)¶
Algorithms to calculate the gradient of a cost landscape to optimize a given objective function.
Base Classes¶
Base class for an |
|
Base class for a |
|
Result of EstimatorGradient. |
|
Result of SamplerGradient. |
Linear combination of unitaries¶
Compute the gradients of the expectation values. |
|
Compute the gradients of the sampling probability. |
Parameter-shift rules¶
Compute the gradients of the expectation values by the parameter shift rule [1]. |
|
Compute the gradients of the sampling probability by the parameter shift rule [1]. |
Simultaneous Perturbation Stochastic Approximation¶
Compute the gradients of the expectation value by the Simultaneous Perturbation Stochastic Approximation (SPSA) [1]. |
|
Compute the gradients of the sampling probability by the Simultaneous Perturbation Stochastic Approximation (SPSA) [1]. |