French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

CircuitGradient

class CircuitGradient[source]

Bases : ConverterBase

Deprecated: Circuit to gradient operator converter.

Converter for changing parameterized circuits into operators whose evaluation yields the gradient with respect to the circuit parameters.

This is distinct from DerivativeBase converters which take gradients of composite operators and handle things like differentiating combo_fn’s and enforcing product rules when operator coefficients are parameterized.

CircuitGradient - uses quantum techniques to get derivatives of circuits DerivativeBase - uses classical techniques to differentiate operator flow data structures

Obsolète depuis la version 0.24.0: The class qiskit.opflow.gradients.circuit_gradients.circuit_gradient.CircuitGradient is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.

Methods Defined Here

convert

param operator

The operator we are taking the gradient of