EvolutionFactory#
- class qiskit.opflow.evolutions.EvolutionFactory[소스]#
기반 클래스:
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)[소스]#
A factory method for convenient automatic selection of an Evolution algorithm based on the Operator to be converted.
버전 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.- 매개변수:
operator (OperatorBase) – the Operator being evolved
- 반환:
the
EvolutionBase
best suited to evolve operator.- 반환 형식:
- 예외 발생:
ValueError – If operator is not of a composition for which we know the best Evolution method.