52 lines
2.5 KiB
Plaintext
52 lines
2.5 KiB
Plaintext
---
|
||
title: EvolutionFactory (v0.26)
|
||
description: API reference for qiskit.opflow.evolutions.EvolutionFactory in qiskit v0.26
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.opflow.evolutions.EvolutionFactory
|
||
---
|
||
|
||
<span id="qiskit-opflow-evolutions-evolutionfactory" />
|
||
|
||
# qiskit.opflow\.evolutions.EvolutionFactory
|
||
|
||
<Class id="qiskit.opflow.evolutions.EvolutionFactory" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/opflow/evolutions/evolution_factory.py" signature="EvolutionFactory" modifiers="class">
|
||
A factory class for convenient automatic selection of an Evolution algorithm based on the Operator to be converted.
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.opflow.evolutions.EvolutionFactory.__init__" signature="__init__()">
|
||
Initialize self. See help(type(self)) for accurate signature.
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
||
| [`__init__`](#qiskit.opflow.evolutions.EvolutionFactory.__init__ "qiskit.opflow.evolutions.EvolutionFactory.__init__")() | Initialize self. |
|
||
| [`build`](#qiskit.opflow.evolutions.EvolutionFactory.build "qiskit.opflow.evolutions.EvolutionFactory.build")(\[operator]) | A factory method for convenient automatic selection of an Evolution algorithm based on the Operator to be converted. |
|
||
|
||
### build
|
||
|
||
<Function id="qiskit.opflow.evolutions.EvolutionFactory.build" signature="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>
|
||
|