# qiskit.opflow.evolutions.Trotter¶

class Trotter(reps=1)[Quellcode]

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.

Parameter

reps (int) – The number of times to repeat the Trotterization circuit.

__init__(reps=1)[Quellcode]
Parameter

reps (int) – The number of times to repeat the Trotterization circuit.

Methods

 __init__([reps]) type reps int convert(operator) Convert a SummedOp into a ComposedOp or CircuitOp representing an approximation of e^-i*op_sum.

Attributes

 order returns order reps The number of repetitions to use in the Trotterization, improving the approximation accuracy.
convert(operator)

Convert a SummedOp into a ComposedOp or CircuitOp representing an approximation of e^-i*op_sum.

Parameter

operator (OperatorBase) – The SummedOp to evolve.

Rückgabetyp

OperatorBase

Rückgabe

The Operator approximating op_sum’s evolution.

Verursacht

TypeError – A non-SummedOps Operator is passed into convert.

property order

returns order

Rückgabetyp

int

property reps

The number of repetitions to use in the Trotterization, improving the approximation accuracy.

Rückgabetyp

int