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

68 lines
3.5 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: TrotterizationBase (v0.26)
description: API reference for qiskit.aqua.operators.evolutions.TrotterizationBase in qiskit v0.26
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.aqua.operators.evolutions.TrotterizationBase
---
<span id="qiskit-aqua-operators-evolutions-trotterizationbase" />
# qiskit.aqua.operators.evolutions.TrotterizationBase
<Class id="qiskit.aqua.operators.evolutions.TrotterizationBase" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/operators/evolutions/trotterizations/trotterization_base.py" signature="TrotterizationBase(reps=1)" modifiers="class">
A base for Trotterization methods, algorithms for approximating exponentiations of operator sums by compositions of exponentiations.
### \_\_init\_\_
<Function id="qiskit.aqua.operators.evolutions.TrotterizationBase.__init__" signature="__init__(reps=1)">
Initialize self. See help(type(self)) for accurate signature.
</Function>
## Methods
| | |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [`__init__`](#qiskit.aqua.operators.evolutions.TrotterizationBase.__init__ "qiskit.aqua.operators.evolutions.TrotterizationBase.__init__")(\[reps]) | Initialize self. |
| [`convert`](#qiskit.aqua.operators.evolutions.TrotterizationBase.convert "qiskit.aqua.operators.evolutions.TrotterizationBase.convert")(operator) | Convert a `SummedOp` into a `ComposedOp` or `CircuitOp` representing an approximation of e^-i\*\`\`op\_sum\`\`. |
## Attributes
| | |
| ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------- |
| [`reps`](#qiskit.aqua.operators.evolutions.TrotterizationBase.reps "qiskit.aqua.operators.evolutions.TrotterizationBase.reps") | The number of repetitions to use in the Trotterization, improving the approximation accuracy. |
### convert
<Function id="qiskit.aqua.operators.evolutions.TrotterizationBase.convert" signature="convert(operator)" modifiers="abstract">
Convert a `SummedOp` into a `ComposedOp` or `CircuitOp` representing an approximation of e^-i\*\`\`op\_sum\`\`.
**Parameters**
**operator** (`OperatorBase`) The `SummedOp` to evolve.
**Return type**
`OperatorBase`
**Returns**
The Operator approximating op\_sums evolution.
**Raises**
**TypeError** A non-SummedOps Operator is passed into `convert`.
</Function>
### reps
<Attribute id="qiskit.aqua.operators.evolutions.TrotterizationBase.reps">
The number of repetitions to use in the Trotterization, improving the approximation accuracy.
**Return type**
`int`
</Attribute>
</Class>