About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
CircuitQFI
class qiskit.opflow.gradients.CircuitQFI
Bases: ConverterBase
Deprecated: Circuit to Quantum Fisher Information operator converter.
Converter for changing parameterized circuits into operators whose evaluation yields Quantum Fisher Information metric tensor with respect to the given 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.
CircuitQFI - uses quantum techniques to get the QFI of circuits DerivativeBase - uses classical techniques to differentiate opflow data structures
Deprecated since version 0.24.0
The class qiskit.opflow.gradients.circuit_qfis.circuit_qfi.CircuitQFI
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
convert
abstract convert(operator, params)
Parameters
- operator (OperatorBase) – The operator corresponding to the quantum state for which we compute the QFI.
- params (ParameterExpression |ParameterVector |List[ParameterExpression]) – The parameters with respect to which we are computing the QFI.
Returns
An operator whose evaluation yields the QFI metric tensor.
Raises
ValueError – If params
contains a parameter not present in operator
.
Return type
Was this page helpful?
Report a bug or request content on GitHub.