English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.evolutions.EvolutionFactory.build

static EvolutionFactory.build(operator=None)[source]

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

Deprecated since version 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.

Parameters

operator (OperatorBase) – the Operator being evolved

Returns

the EvolutionBase best suited to evolve operator.

Return type

EvolutionBase

Raises

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