67 lines
1.7 KiB
Plaintext
67 lines
1.7 KiB
Plaintext
---
|
||
title: Trotter
|
||
description: API reference for qiskit.aqua.operators.evolutions.Trotter
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.aqua.operators.evolutions.Trotter
|
||
---
|
||
|
||
# Trotter
|
||
|
||
<Class id="qiskit.aqua.operators.evolutions.Trotter" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/operators/evolutions/trotterizations/trotter.py" signature="Trotter(reps=1)" modifiers="class">
|
||
Bases: `qiskit.aqua.operators.evolutions.trotterizations.suzuki.Suzuki`
|
||
|
||
Simple Trotter expansion, composing the evolution circuits of each Operator in the sum together `reps` times and dividing the evolution time of each by `reps`.
|
||
|
||
**Parameters**
|
||
|
||
**reps** (`int`) – The number of times to repeat the Trotterization circuit.
|
||
|
||
## Methods
|
||
|
||
### convert
|
||
|
||
<Function id="qiskit.aqua.operators.evolutions.Trotter.convert" signature="Trotter.convert(operator)">
|
||
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\_sum’s evolution.
|
||
|
||
**Raises**
|
||
|
||
**TypeError** – A non-SummedOps Operator is passed into `convert`.
|
||
</Function>
|
||
|
||
## Attributes
|
||
|
||
### order
|
||
|
||
<Attribute id="qiskit.aqua.operators.evolutions.Trotter.order">
|
||
returns order
|
||
|
||
**Return type**
|
||
|
||
`int`
|
||
</Attribute>
|
||
|
||
### reps
|
||
|
||
<Attribute id="qiskit.aqua.operators.evolutions.Trotter.reps">
|
||
The number of repetitions to use in the Trotterization, improving the approximation accuracy.
|
||
|
||
**Return type**
|
||
|
||
`int`
|
||
</Attribute>
|
||
</Class>
|
||
|