qiskit-documentation/docs/api/qiskit/0.31/qiskit.opflow.evolutions.Tr...

55 lines
1.6 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.31)
description: API reference for qiskit.opflow.evolutions.TrotterizationBase in qiskit v0.31
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.opflow.evolutions.TrotterizationBase
---
# TrotterizationBase
<Class id="qiskit.opflow.evolutions.TrotterizationBase" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/opflow/evolutions/trotterizations/trotterization_base.py" signature="TrotterizationBase(reps=1)" modifiers="class">
Bases: `qiskit.opflow.evolutions.evolution_base.EvolutionBase`
A base for Trotterization methods, algorithms for approximating exponentiations of operator sums by compositions of exponentiations.
## Methods Defined Here
<span id="qiskit-opflow-evolutions-trotterizationbase-convert" />
### convert
<Function id="qiskit.opflow.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.opflow.evolutions.TrotterizationBase.reps">
The number of repetitions to use in the Trotterization, improving the approximation accuracy.
**Return type**
`int`
</Attribute>
</Class>