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

55 lines
1.7 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.29)
description: API reference for qiskit.aqua.operators.evolutions.TrotterizationBase in qiskit v0.29
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.aqua.operators.evolutions.TrotterizationBase
---
# 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">
Bases: `qiskit.aqua.operators.evolutions.evolution_base.EvolutionBase`
A base for Trotterization methods, algorithms for approximating exponentiations of operator sums by compositions of exponentiations.
## Methods
<span id="qiskit-aqua-operators-evolutions-trotterizationbase-convert" />
### convert
<Function id="qiskit.aqua.operators.evolutions.TrotterizationBase.convert" signature="TrotterizationBase.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>
## Attributes
### 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>