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

39 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: Trotter
description: API reference for qiskit.opflow.evolutions.Trotter
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.opflow.evolutions.Trotter
---
# Trotter
<Class id="qiskit.opflow.evolutions.Trotter" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.25/qiskit/opflow/evolutions/trotterizations/trotter.py" signature="qiskit.opflow.evolutions.Trotter(reps=1)" modifiers="class">
Bases: [`Suzuki`](qiskit.opflow.evolutions.Suzuki "qiskit.opflow.evolutions.trotterizations.suzuki.Suzuki")
Deprecated: 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`.
<Admonition title="Deprecated since version 0.24.0" type="danger">
The class `qiskit.opflow.evolutions.trotterizations.trotter.Trotter` is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit [https://qisk.it/opflow\_migration](https://qisk.it/opflow_migration).
</Admonition>
**Parameters**
**reps** ([*int*](https://docs.python.org/3/library/functions.html#int "(in Python v3.12)")) The number of times to repeat the Trotterization circuit.
## Attributes
### order
<Attribute id="qiskit.opflow.evolutions.Trotter.order">
returns order
</Attribute>
### reps
<Attribute id="qiskit.opflow.evolutions.Trotter.reps">
The number of repetitions to use in the Trotterization, improving the approximation accuracy.
</Attribute>
</Class>