qiskit-documentation/docs/api/qiskit/0.29/qiskit.aqua.operators.evolu...

44 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: TrotterizationFactory (v0.29)
description: API reference for qiskit.aqua.operators.evolutions.TrotterizationFactory in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.aqua.operators.evolutions.TrotterizationFactory
---
# TrotterizationFactory
<Class id="qiskit.aqua.operators.evolutions.TrotterizationFactory" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/operators/evolutions/trotterizations/trotterization_factory.py" signature="TrotterizationFactory" modifiers="class">
Bases: `object`
A factory for conveniently creating TrotterizationBase instances.
## Methods
<span id="qiskit-aqua-operators-evolutions-trotterizationfactory-build" />
### build
<Function id="qiskit.aqua.operators.evolutions.TrotterizationFactory.build" signature="TrotterizationFactory.build(mode='trotter', reps=1)" modifiers="static">
A factory for conveniently creating TrotterizationBase instances.
**Parameters**
* **mode** (`str`) One of trotter, suzuki, qdrift
* **reps** (`int`) The number of times to repeat the Trotterization circuit.
**Return type**
`TrotterizationBase`
**Returns**
The desired TrotterizationBase instance.
**Raises**
**ValueError** A string not in \[trotter, suzuki, qdrift] is given for mode.
</Function>
</Class>