German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.gradients.NaturalGradient.convert

NaturalGradient.convert(operator, params=None)[Quellcode]
Parameter
Rückgabe

An operator whose evaluation yields the NaturalGradient.

Verursacht
  • TypeError – If operator does not represent an expectation value or the quantum state is not CircuitStateFn.

  • ValueError – If params contains a parameter not present in operator.

  • ValueError – If operator is not parameterized.

Rückgabetyp

OperatorBase