Skip to main contentIBM Quantum Documentation

TrotterizationFactory

qiskit.opflow.evolutions.TrotterizationFactory

Bases: object (opens in a new tab)

Deprecated: A factory for conveniently creating TrotterizationBase instances.


Methods

build

static build(mode='trotter', reps=1)

A factory for conveniently creating TrotterizationBase instances.

Deprecated since version 0.24.0

The method qiskit.opflow.evolutions.trotterizations.trotterization_factory.TrotterizationFactory.build() 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 (opens in a new tab).

Parameters

Returns

The desired TrotterizationBase instance.

Raises

ValueError (opens in a new tab) – A string not in [‘trotter’, ‘suzuki’, ‘qdrift’] is given for mode.

Return type

TrotterizationBase

Was this page helpful?