qiskit.opflow.gradients.QFI.convert¶
-
QFI.
convert
(operator, params=None)[source]¶ - Parameters
operator (
CircuitStateFn
) – The operator corresponding to the quantum state |ψ(ω)〉for which we compute the QFIparams (
Union
[ParameterVector
,ParameterExpression
,List
[ParameterExpression
],None
]) – The parameters we are computing the QFI wrt: ω If not explicitly passed, they are inferred from the operator and sorted by name.
- Return type
ListOp
- Returns
ListOp[ListOp] where the operator at position k,l corresponds to QFI_kl
- Raises
ValueError – If operator is not parameterized.