TrotterizationFactory#

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

Bases: object

Deprecated: A factory for conveniently creating TrotterizationBase instances.

Methods

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

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