EvolutionFactory#

class qiskit.opflow.evolutions.EvolutionFactory[código fonte]#

Bases: object

Deprecated: A factory class for convenient automatic selection of an Evolution algorithm based on the Operator to be converted.

Methods

static build(operator=None)[código fonte]#

A factory method for convenient automatic selection of an Evolution algorithm based on the Operator to be converted.

Obsoleto desde a versão 0.24.0: The method qiskit.opflow.evolutions.evolution_factory.EvolutionFactory.build() 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.

Parâmetros:

operator (OperatorBase) – the Operator being evolved

Retorno:

the EvolutionBase best suited to evolve operator.

Tipo de retorno:

EvolutionBase

Levanta:

ValueError – If operator is not of a composition for which we know the best Evolution method.