Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

TrotterizationFactory

qiskit.opflow.evolutions.TrotterizationFactory GitHub(opens in a new tab)

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 in the Qiskit 1.0 release. 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?
Report a bug or request content on GitHub.