TrotterizationFactory
class qiskit.opflow.evolutions.TrotterizationFactory
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 in the Qiskit 1.0 release. 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
Was this page helpful?
Report a bug or request content on GitHub.