TrotterizationFactory#

class qiskit.opflow.evolutions.TrotterizationFactory[Quellcode]#

Bases: object

Deprecated: A factory for conveniently creating TrotterizationBase instances.

Methods

static build(mode='trotter', reps=1)[Quellcode]#

A factory for conveniently creating TrotterizationBase instances.

Veraltet ab 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.

Parameter:
  • mode (str) – One of ‚trotter‘, ‚suzuki‘, ‚qdrift‘

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

Rückgabe:

The desired TrotterizationBase instance.

Verursacht:

ValueError – A string not in [‚trotter‘, ‚suzuki‘, ‚qdrift‘] is given for mode.

Rückgabetyp:

TrotterizationBase