Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

TrotterizationFactory

class qiskit.opflow.evolutions.TrotterizationFactory

GitHub

Bases: object

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.

Parameters

  • mode (str) – One of ‘trotter’, ‘suzuki’, ‘qdrift’
  • reps (int) – The number of times to repeat the Trotterization circuit.

Returns

The desired TrotterizationBase instance.

Raises

ValueError – 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.