TrotterizationFactory#

class qiskit.opflow.evolutions.TrotterizationFactory[소스]#

기반 클래스: object

Deprecated: A factory for conveniently creating TrotterizationBase instances.

Methods

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

A factory for conveniently creating TrotterizationBase instances.

버전 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.

매개변수:
  • mode (str) – One of ‘trotter’, ‘suzuki’, ‘qdrift’

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

반환:

The desired TrotterizationBase instance.

예외 발생:

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

반환 형식:

TrotterizationBase