44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
---
|
||
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>
|
||
|