qiskit-documentation/docs/api/qiskit/0.29/qiskit.opflow.evolutions.Ev...

43 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: EvolutionFactory (v0.29)
description: API reference for qiskit.opflow.evolutions.EvolutionFactory in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.opflow.evolutions.EvolutionFactory
---
# EvolutionFactory
<Class id="qiskit.opflow.evolutions.EvolutionFactory" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/opflow/evolutions/evolution_factory.py" signature="EvolutionFactory" modifiers="class">
Bases: `object`
A factory class for convenient automatic selection of an Evolution algorithm based on the Operator to be converted.
## Methods Defined Here
<span id="qiskit-opflow-evolutions-evolutionfactory-build" />
### build
<Function id="qiskit.opflow.evolutions.EvolutionFactory.build" signature="EvolutionFactory.build(operator=None)" modifiers="static">
A factory method for convenient automatic selection of an Evolution algorithm based on the Operator to be converted.
**Parameters**
**operator** (`Optional`\[`OperatorBase`]) the Operator being evolved
**Returns**
the `EvolutionBase` best suited to evolve operator.
**Return type**
[EvolutionBase](qiskit.aqua.operators.evolutions.EvolutionBase "qiskit.aqua.operators.evolutions.EvolutionBase")
**Raises**
**ValueError** If operator is not of a composition for which we know the best Evolution method.
</Function>
</Class>